Closed akamalov closed 9 years ago
The --env-file
file parameter is part of docker run
, not Bamboo itself. It just expects a list of environment variables and passes it to the Docker container.
The Bamboo dockerfile starts via the config/run.sh
and processes a CONFIG_FILE
environment variable. This is the variable you want to specify, most simply via an -e
flag. Note that it defaults to the production example file that comes with Bamboo.
Hope this helps!
Thanks Timo. Will re-try it and keep you posted.
I Belive its CONFIG_PATH not CONFIG_FILE.
Yep. Got it to work.
/var/lib/bamboo/etc
with two configuration files:bamboo.json
haproxy_template.cfg
docker run -d -P --name bamboo -v /var/lib/bamboo/etc:/var/lib/bamboo/etc -e CONFIG_PATH=/var/lib/bamboo/etc/bamboo.json -e BAMBOO_DOCKER_AUTO_HOST=true akamalov/qubit_bamboo
Thanks so much for everyone responded.
Alex
Greetings
I am trying to run bamboo in a docker container. Built bamboo as per instructions in 'readme' file. Build has gone fine without errors. However, trying to run it in a container, passing a configuration to json file and container erroring out. Here is my configuration file:
production.example.json
Attempting to run bamboo in a docker container:
Display docker logs for bamboo:
If you see about 12 lines down, there is a message:
I thought I was passing a parameter with
-env-file=
but for some reason it is not reading? Any thoughts ?Thanks!!!!
Alex