Build GoCD agent images for several linux versions and distributions.
Start the container with this:
docker run -p8153:8153 -p8154:8154 gocd/gocd-server
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 gocd/gocd-server
JVM options can be tweaked using the environment variable GO_SERVER_SYSTEM_PROPERTIES
.
docker run -e GO_SERVER_SYSTEM_PROPERTIES="-Xmx4096mb -Dfoo=bar" gocd/gocd-server
The GoCD server runs as the go
user, the location of the various directories is:
Directory | Description |
---|---|
/godata/addons |
the directory where GoCD addons are stored |
/godata/artifacts |
the directory where GoCD artifacts are stored |
/godata/config |
the directory where the GoCD configuration is store |
/godata/db |
the directory where the GoCD database and configuration change history is stored |
/godata/logs |
the directory where GoCD logs will be written out to |
/godata/plugins |
the directory containing GoCD plugins |
/home/go |
the home directory for the GoCD server |
- Check if the docker container is running
docker ps -a
- Check the STDOUT to see if there is any output that indicates failures
docker logs CONTAINER_ID
- Check the server logs
docker exec -it CONTAINER_ID tail -f /godata/logs/go-server.log
(or check the log file in the volume mount, if you're using one)
Copyright 2017 ThoughtWorks, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.