stellar-deprecated / docker-stellar-core

DEPRECATED
https://github.com/stellar/stellar-core
Apache License 2.0
92 stars 47 forks source link

Allow the .cfg to be overridden #24

Open jedmccaleb opened 9 years ago

jedmccaleb commented 9 years ago

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

Akuukis commented 7 years ago

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

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

vogel commented 6 years ago

Seems it is already fixed

kiahmed commented 6 years ago

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