Minimal GoCD Server and Agent for Docker
These Docker images were created following the Best practices for writing Dockerfiles and some others collected by looking Dockerfiles from Docker official repositories.
Here's a summary of the practices followed by these images:
--no-install-recommends for apt-get so only the main dependencies are installed.RUN commands) and the commands are done in a way to minimize the number of things that are added to the layers, e.g. we don't add temporary files - they are downloaded, used and removed in the same RUN.The docker-compose.yml at the root will start the server and one agent (if just running docker-compose up) but the agent won't auto-register because the server doesn't have the same agent key defined in its configuration.
To define the auto-register agent key in the server you will need to use docker exec -it <server container id> /set-agent-key.sh <key>.
Until docker-compose doesn't provide a way to hook scripts into Docker events you'll need to coordinate that by using some script, Makefile, etc.
Any feedback is welcome! Please open an issue or send a pull request :-)
Content type
Image
Digest
Size
253.9 MB
Last updated
about 10 years ago
docker pull tanob/gocd-server