Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jetbrains/teamcity-docker-agent
TeamCity agent docker image sources
https://github.com/jetbrains/teamcity-docker-agent
docker-image teamcity teamcity-agent
Last synced: 3 months ago
JSON representation
TeamCity agent docker image sources
- Host: GitHub
- URL: https://github.com/jetbrains/teamcity-docker-agent
- Owner: JetBrains
- License: apache-2.0
- Created: 2016-09-28T12:48:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-17T17:15:45.000Z (almost 2 years ago)
- Last Synced: 2024-04-13T12:06:58.552Z (9 months ago)
- Topics: docker-image, teamcity, teamcity-agent
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/jetbrains/teamcity-agent/
- Size: 66.4 KB
- Stars: 76
- Watchers: 20
- Forks: 64
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![official JetBrains project](http://jb.gg/badges/official-plastic.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
[![jetbrains/teamcity-agent](https://img.shields.io/docker/pulls/jetbrains/teamcity-agent.svg)](https://hub.docker.com/r/jetbrains/teamcity-agent/)## DEPRECATED TeamCity Agent Image Dockerfile
### :no_entry: This repository is no longer supported, please consider using [teamcity-docker-images](https://github.com/JetBrains/teamcity-docker-images) instead.
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](https://github.com/JetBrains/teamcity-docker-minimal-agent) 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
```3) Run the `docker build` command:
```
docker build -t teamcity-agent
```See our [detailed instructions](https://hub.docker.com/r/jetbrains/teamcity-agent/) 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](https://blogs.technet.microsoft.com/virtualization/2017/12/08/wsl-interoperability-with-docker/) in LCOW mode on Windows 1803+)