https://github.com/sidpatchy/teamcity-agent-jdk-lts
A TeamCity docker container with various JDK LTS versions installed.
https://github.com/sidpatchy/teamcity-agent-jdk-lts
Last synced: 5 months ago
JSON representation
A TeamCity docker container with various JDK LTS versions installed.
- Host: GitHub
- URL: https://github.com/sidpatchy/teamcity-agent-jdk-lts
- Owner: Sidpatchy
- License: mit
- Created: 2025-04-25T17:16:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-14T15:23:05.000Z (8 months ago)
- Last Synced: 2025-10-14T22:18:04.570Z (8 months ago)
- Language: Dockerfile
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TeamCity Agent with JDK LTS
This is a Docker image building on top of Jetbrains' upstream image. It adds the following:
- Adoptium Temurin JDK 8
- Adoptium Temurin JDK 11
- Adoptium Temurin JDK 17
- Adoptium Temurin JDK 21
- Adoptium Temurin JDK 25
Addtionally, it overrides the default Java distribution that Jetbrains ships and replaces it with Adoptium Temurin 21.
## Usage
This image retains all upstream environment variables. At the time of writing this readme this includes the following:
| Variable | Description |
|----------|-------------|
| `SERVER_URL` | URL of the TeamCity server agent will connect to |
| `AGENT_NAME` | (optional) Name of the agent in TeamCity UI, autogenerated if omitted |
| `AGENT_TOKEN` | (optional) Agent authorization token, if unset, the agent should be authorized via TeamCity UI |
| `OWN_ADDRESS` | (optional, Linux-only) IP address build agent binds to, autodetected |
| `OWN_PORT` | (optional, Linux-only) Port build agent binds to, 9090 by default |
| `DOCKER_IN_DOCKER` | (optional, Linux-only) Run Docker within Docker |
*These are subject to change at any time. Please verify upstream for any changes: https://hub.docker.com/r/jetbrains/teamcity-agent*
This repo includes a Docker Compose file for ease of use [here](https://github.com/Sidpatchy/TeamCity-Agent-JDK-LTS/blob/main/docker-compose.yml). This is an absolute bare-minimum configuration.
To start from the commandline you can execute the following command:
```bash
docker run -e SERVER_URL="" \
-v :/data/teamcity_agent/conf \
ghcr.io/sidpatchy/teamcity-agent-jdk-lts:main
```