Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 938 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 938 Bytes

TW Leansw GoCD Agent Dockerfile

Before you build the image, please put your ssh key (e.g. id_rsa and id_rsa.pub, for pulling code private git repository) into below folder:

  • go-agent-dind/ssh/
  • go-agent-docker/ssh/

go-agent-dind

This container will run another docker instance inside itself, which is considered as dind (docker in docker).

Command to run an agent:

docker run -d --privileged --restart=always --name=gocd-agent-dind -l io.rancher.container.network=true -e GO_SERVER=<GoCD-Service-IP> reg.dev.twleansw.com/leansw/gocd-agent-dind:16.11.0

go-agent-docker

This container should run with the host docker sock file mounted inside.

Command to run an agent:

docker run -d --restart=always --name=gocd-agent-docker -v /var/run/docker.sock:/var/run/docker.sock -l io.rancher.container.network=true -e GO_SERVER=<GoCD-Service-IP> registry.cn-hangzhou.aliyuncs.com/leansw/go_agent_docker:16.9.0-3