concourse / concourse-bosh-release

Concourse BOSH release
Apache License 2.0
28 stars 49 forks source link

Support setting garden config.ini #94

Closed rob-greene closed 4 years ago

rob-greene commented 4 years ago

This enables configuration of the garden config.ini as documented here: https://concourse-ci.org/concourse-worker.html#configuring-gdn-server

Sample results after configuration:

# cat config/env.sh
<...snip...>
export CONCOURSE_GARDEN_CONFIG=/var/vcap/jobs/worker/config/garden.ini
<...snip...>
# cat /var/vcap/jobs/worker/config/garden.ini
[server]
...garden settings here...
# ps -ef f
<...snip...>
root        4355       1  0 18:37 ?        Ss     0:00 /bin/bash /var/vcap/jobs/worker/bin/concourse_start
root        4380    4355  0 18:37 ?        Sl     0:00  \_ /var/vcap/packages/concourse/bin/concourse worker
root        4496    4380  0 18:37 ?        Sl     0:01      \_ gdn --config /var/vcap/jobs/worker/config/garden.ini server --bind-ip 127.0.0.1 --bind-port 7777 --depot /var/vcap/data/worker/work/depot --properties-path /var/vcap/data/worker/work/garde
<...snip...>

Note gdn --config /var/vcap/jobs/worker/config/garden.ini ... is now present in the execution.