Sign inSign up

ckulka/gocd-agent

By ckulka

Updated about 11 years ago

Provides a service script for /etc/init.d, extends GoCD agent image with JDK 8, mvn, svn & hg

Image
1

2.4K

ckulka/gocd-agent repository overview

See https://github.com/ckulka/gocd-server

Supported Tags

I follow the same naming scheme for the images as gocd themselves:

  • latest (corresponds to 15.1.0)
  • 15.1.0
Image Details

GoCD Agent based on gocd/gocd-agent

  • Replaced Java 7 JRE with Java 8 JDK
  • Added subversion & mercurial
  • Added Maven 3
Service Script (see ckulka/gocd-docker on GitHub)

The service script's intended use is for /etc/init.d and provides the usual commands:

# Shell working directory is where this README.md is
gocd-server/gocd-server.sh {start | stop | restart | status}
gocd-agent/gocd-agent.sh {start | stop | restart | status}

The gocd-agent.sh script assumes that the GoCD Server is running on the same host and that its ports are exposed.

For further configuration, e.g. the server address or volumes, check the shell scripts.

The Manual Way

Note that both docker run commands are running in the foreground, due to the conflicting -d and --rm flags.

# Create GoCD Server volume container with the name “gocd-server-data”
docker create --name gocd-server-data ckulka/gocd-server /bin/true

# Create GoCD Server container with the name “gocd-server”
docker run -p 8153:8153 --rm --name gocd-server --volumes-from go-server-data ckulka/gocd-server

# Create GoCD Agent container linked to our "gocd-server"
docker run -link gocd-server:go-server --rm ckulka/gocd-agent

Tag summary

Content type

Image

Digest

sha256:d7c41cfac

Size

-

Last updated

almost 11 years ago

docker pull ckulka/gocd-agent