Skip to content

tw-leansw/leansw-gocd-agent-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

GoCD agent base on alpine image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages