Open jedmccaleb opened 9 years ago
Tried to overwrite stellar-core.cfg
, here are few problems:
/start
there are various places stellar-core is executed but only one takes overriden configconfd[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
I succeeded to override config with building a new Dockerfile like this:
stellar-core.cfg
instead of stellar-core-override.cfg
/start
Seems it is already fixed
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
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 https://github.com/stellar/docker-stellar-core/commit/ef50c2225432d3486d3bbdc49a35b897e8c240b2 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