GoCD Server based on alpine, with pre installed yaml config.
https://github.com/gocd/docker-gocd-server
Start the container with this:
docker run -d -p8153:8153 -p8154:8154 stakater/gocd-server:v17.3.0
This will expose container ports 8153(http) and 8154(https) onto your server.
You can now open http://localhost:8153
and https://localhost:8154
The GoCD server will store all configuration, pipeline history database,
artifacts, plugins, and logs into /godata
. If you'd like to provide secure
credentials like SSH private keys among other things, you can mount /home/go
docker run -v /path/to/godata:/godata -v /path/to/home-dir:/home/go stakater/gocd-server
Note: Ensure that
/path/to/home-dir
and/path/to/godata
is accessible by thego
user in container (go
user - uid 1000).
All plugins can be installed under /godata
.
mkdir -p /path/to/godata/plugins/external
curl --location --fail https://example.com/plugin.jar > /path/to/godata/plugins/external/plugin.jar
chown -R 1000 /path/to/godata/plugins
All addons can be installed under /godata
.
mkdir -p /path/to/godata/addons
curl --location --fail https://example.com/addon.jar > /path/to/godata/addons/plugin.jar
chown -R 1000 /path/to/godata/addons
JVM options can be tweaked using the environment variable GO_SERVER_SYSTEM_PROPERTIES
.
docker run -e GO_SERVER_SYSTEM_PROPERTIES="-Xmx4096mb -Dfoo=bar" stakater/gocd-server