Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Allow the .cfg to be overridden #24

Open
jedmccaleb opened this issue Oct 1, 2015 · 3 comments
Open

Allow the .cfg to be overridden #24

jedmccaleb opened this issue Oct 1, 2015 · 3 comments

Comments

@jedmccaleb
Copy link

well, it'd always be in the docker file system, so you'd need -v
container can't view the host's fs without that
but if it's something other than /stellar-core.cfg, confd won't touch it
confd will generate it's own /stellar-core.cfg, then we'll just ignore it and use something else

would just be ef50c22 I think

can't test it cause dockerhub is being weird atm

then update /etc/init/stellar-core.conf, /usr/local/bin/stellar-core-setup and /usr/local/bin/stellar-core-shell to use `-v /etc/stellar-core.cfg:/stellar-core-override.cfg

@Akuukis
Copy link

Akuukis commented Jul 13, 2017

Tried to overwrite stellar-core.cfg, here are few problems:

  • in /start there are various places stellar-core is executed but only one takes overriden config
  • if I don't don't pass env file confd errors with error:
confd[10]: ERROR template: stellar-core.cfg.tmpl:95:8: executing "stellar-core.cfg.tmpl" at <jsonArray (getenv "H...>: error calling jsonArray: unexpected end of JSON input
  • if I comment out confd, then postgres env variables isn't set properly

I succeeded to override config with building a new Dockerfile like this:

  • copied my config file as stellar-core.cfg instead of stellar-core-override.cfg
  • commented out confd call in /start
  • passed postgres env variables explicitly

@vogel
Copy link
Contributor

vogel commented Jan 17, 2018

Seems it is already fixed

@kiahmed
Copy link

kiahmed commented Feb 17, 2018

whats fixed? I am curious how other folks ran this image out of the box? It seem not to include any .cfg file . So how you pass any evn file which doesnt exist in the container itself? That makes me wanna rewrite the Dockerfile ..then whats the use of it? These are the all cgg container has
/usr/lib/python2.7/dist-packages/distlib/_backport/sysconfig.cfg, also no .env
/usr/lib/python2.7/dist-packages/pycparser/_c_ast.cfg
/usr/local/lib/python2.7/dist-packages/boto/pyami/copybot.cfg
/usr/local/lib/python2.7/dist-packages/boto/services/sonofmmm.cfg
/etc/dpkg/dpkg.cfg
/etc/perl/Net/libnet.cfg

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants