You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be able to kill and restart the docker container without losing database and configuration and not having to check out all flyweights again.
The first time the docker container runs it creates files in the host directories these volumes are mounted to and it skips it the next time, so they're not overwritten. So that works fine. But it's in the way of doing a quick update from one to the next version by just running a newer docker image.
For example I'd rather just mount /var/lib/go-server/db/h2db instead of /var/lib/go-server/db, but then all the other directories in /var/lib/go-server/db/ aren't created and Go doesn't start properly.
And when mounting the whole /var/lib/go-server/db/ directory as I do now it will not update to the latest h2deltas when running a newer image.
All in all there seems to be quite some work around making the docker image easy to use for upgrading versions and for controlling the full configuration through environment variables.
I mount the following paths when running gocd-server as a docker container
To be able to kill and restart the docker container without losing database and configuration and not having to check out all flyweights again.
The first time the docker container runs it creates files in the host directories these volumes are mounted to and it skips it the next time, so they're not overwritten. So that works fine. But it's in the way of doing a quick update from one to the next version by just running a newer docker image.
For example I'd rather just mount
/var/lib/go-server/db/h2dbinstead of/var/lib/go-server/db, but then all the other directories in/var/lib/go-server/db/aren't created and Go doesn't start properly.And when mounting the whole
/var/lib/go-server/db/directory as I do now it will not update to the latest h2deltas when running a newer image.All in all there seems to be quite some work around making the docker image easy to use for upgrading versions and for controlling the full configuration through environment variables.