bdaniel7 / teamcity-docker-agent

TeamCity agent docker image sources

Home Page:https://hub.docker.com/r/jetbrains/teamcity-agent/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

official JetBrains project jetbrains/teamcity-agent

TeamCity Agent Image Dockerfile

This project contains the Dockerfiles and all necessary scripts to build the Linux and Windows Docker images and run a TeamCity Build Agent inside the container.

You can pull the ready-to-use image from the Docker Hub repository

docker pull jetbrains/teamcity-agent

If you need to build your own image, you need to perform the following:

  1. Pull our minimal agent image and re-tag it
docker pull jetbrains/teamcity-minimal-agent
docker tag jetbrains/teamcity-minimal-agent teamcity-minimal-agent

If you want to start with your own base agent image, see our instructions on how to build it. If you change the operation system, update the following line in the in Dockerfile appropriately:

apt-get install -y docker-engine=1.13.0-0~ubuntu-xenial
  1. Run the docker build command:
docker build -t teamcity-agent

See our detailed instructions on how to use the image in the Docker Hub repository.

Expose docker engine to container

Common way:

  • docker run ... -e DOCKER_HOST=tcp://%docker-host%:%port%

Linux hosts:

  • docker run ... -v /var/run/docker.sock:/var/run/docker.sock
  • docker run ... --privileged -e DOCKER_IN_DOCKER=start

Windows hosts:

  • docker run ... -v //var/run/docker.sock:/var/run/docker.sock (In Linux containers mode)
  • docker run ... -v \\.\pipe\docker_engine:\\.\pipe\docker_engine (For Windows Containers 1709+)
  • docker run ... -v /var/run/docker.sock:/var/run/docker.sock (via WSL & npiperelay in LCOW mode on Windows 1803+)

About

TeamCity agent docker image sources

https://hub.docker.com/r/jetbrains/teamcity-agent/


Languages

Language:Dockerfile 93.8%Language:PowerShell 5.1%Language:Shell 1.1%