examples icon indicating copy to clipboard operation
examples copied to clipboard

Per PR 331, templatize config files, use env var & makefile to generate

Open joewxboy opened this issue 5 years ago • 6 comments

Is there an issue open for this TODO?

Originally posted by @dabooz in https://github.com/open-horizon/examples/pull/331

There is now!

In each of the three services (volantmq, fft_server, fft_client) there are configuration files in the horizon folder that require manual editing per the INSTALL.md instructions.

Please create templates for those files so that they do not need to be modified by hand. Then use the Makefiles to perform an envsubst on the templates to auto-generate the files. This will require the creation and use of a few new environment variables, but some already exist that can be used here.

Once this change is made, please update the INSTALL.md documentation accordingly to remove the sections about manually editing the config files, and instead add a section about pre-populating the environment variables.

joewxboy avatar Aug 06 '20 18:08 joewxboy

Example standard (de facto) variables : https://github.com/dcmartin/open-horizon/blob/master/docs/MAKEVARS.md

dcmartin avatar Sep 01 '20 15:09 dcmartin

@joewxboy I would like to take this issue

rajpratyush avatar Mar 02 '21 16:03 rajpratyush

@rajpratyush Let me know if you have any questions.

joewxboy avatar Mar 03 '21 14:03 joewxboy

@joewxboy Cannot find these volantmq, fft_server, fft_client folders in the services is it on a different branch?

rajpratyush avatar Mar 03 '21 15:03 rajpratyush

@rajpratyush It looks like the PR has not yet been merged. I'll see if David Booz and Troy Fine will approve merging it.

joewxboy avatar Mar 03 '21 16:03 joewxboy

@joewxboy ok sir

rajpratyush avatar Mar 03 '21 16:03 rajpratyush