This is a base image for a go cd agent. It only offers a JDK as resource. For adding other resources, a new agent image may extend this image. See Extending the image.
docker run -tid --name go-cdagent --hostname go-cdagent \
--net go-cd \ (1)
-e AGENT_RESOURCES=JDK8 \ (2)
softwarecraftsmen/go-cdagent
-
Container is added to the network
go-cd
-
Add a resource
JDK8
. This indicates that the agent is for example able to offer a JDK.
GO_SERVER |
The hostname of the go-cd server that the agent connects to. Default go-cdserver |
AGENT_KEY |
The key used by agents to auto-register |
AGENT_RESOURCES |
The agent resources attached to the agent. |
AGENT_ENVIRONMENT |
The agent environments attached to the agent. |
We could for example offer an agent that is able to provide a Node-js package manager.
FROM softwarecraftsmen/go-cdagent
RUN apt-get install npm
docker run -tid --name go-cdagent-npm --hostname go-cdagent-npm \
--net go-cd \ (1)
-e AGENT_RESOURCES=NPM \ (2)
softwarecraftsmen/go-cdagent-npm
-
Container is added to the network
go-cd
-
Add a resource
npm
. This indicates that the agent is for example able to offer a Node.js package manager.