Sign inSign up

epicmorg/teamcity-agent

By epicmorg

•Updated 5 days ago

TeamCity build agents on Debian 13 trixie: JDK 21, docker/buildah, php, node, SDKs

Image
1

10K+

epicmorg/teamcity-agent repository overview

⁠epicmorg/teamcity-agent

JetBrains TeamCity⁠ build agents built by EpicMorg on our own epicmorg/debian:trixie-develop⁠ base (full build toolchain, prebuilt OpenSSL / ICU / curl / libpq under /usr/local/share/epicmorg). These are not the JetBrains teamcity-agent / teamcity-minimal-agent images: one family of tags on one base, every runtime taken from our own prebuilt images.

⁠What's inside

TagBuilt fromAdds
minimalepicmorg/debian:trixie-developTeamCity agent (buildAgent.zip from teamcity.jetbrains.com), supervisord; JDK 21 + Maven, Gradle, Kotlin copied from epicmorg/jdk:21⁠
latestminimalDocker CE (docker-ce, containerd.io, buildx and compose plugins) from the trixie Docker repo, buildah, podman, podman-compose, fuse-overlayfs, buildah-wrapper / kaniko-wrapper; .NET SDK (STS channel); Debian mono-complete
php56 … php85minimalPHP from epicmorg/php:<ver>⁠ via COPY --from (php, php-fpm, php-cgi, composer, the baked OpenSSL / curl / libpq / ICU it links)
node0.12 … node26minimalNode.js from epicmorg/nodejs:<ver>⁠ via COPY --from (node, npm, npx, plus pnpm / yarn where that image has them)
android-sdkminimalJDK 17 (from epicmorg/jdk:17, set as JAVA_HOME), Debian android-sdk + sdkmanager, platform 35, build-tools 35.0.0, cmake 3.22.1
atlassian-sdkminimalAtlassian Plugin SDK⁠ (atlas-* on PATH)
amxx-sdk, amxx-sdk-rcminimalAMX Mod X⁠ 1.9 / 1.10 compiler (amxxpc, compile.sh, includes)

Every runtime is checked while the image is built: the PHP agents re-run the linkage assertions of the php image (no unresolved libraries, one SONAME per library, libssl / libcrypto only from the baked OpenSSL, php -m identical to the php image) and the node agents fail the build if node on PATH is not the copied one. Everything the project builds lives under /usr/local/share/epicmorg (the agent itself in /usr/local/share/epicmorg/teamcity/agent).

⁠Tags

TagsDockerfile
amxx-sdkamxx-sdk/1.9⁠
amxx-sdk-rcamxx-sdk/1.10⁠
android-sdkandroid-sdk⁠
ansible-2.11, ansible-2.11.12ansible/2.11⁠
ansible-2.12, ansible-2.12.10ansible/2.12⁠
ansible-2.13, ansible-2.13.13ansible/2.13⁠
ansible-2.14, ansible-2.14.18ansible/2.14⁠
ansible-2.15, ansible-2.15.13ansible/2.15⁠
ansible-2.16, ansible-2.16.19ansible/2.16⁠
ansible-2.17, ansible-2.17.14ansible/2.17⁠
ansible-2.18, ansible-2.18.19ansible/2.18⁠
ansible-2.19, ansible-2.19.14ansible/2.19⁠
ansible-2.20, ansible-2.20.10ansible/2.20⁠
ansible-2.21, ansible-2.21.5, ansibleansible/2.21⁠
atlassian-sdkatlassian-sdk⁠
latestlatest⁠
minimalminimal⁠
node0.12node0.12⁠
node4node4⁠
node5node5⁠
node6node6⁠
node7node7⁠
node8node8⁠
node9node9⁠
node10node10⁠
node11node11⁠
node12node12⁠
node13node13⁠
node14node14⁠
node15node15⁠
node16node16⁠
node17node17⁠
node18node18⁠
node19node19⁠
node20node20⁠
node21node21⁠
node22node22⁠
node23node23⁠
node24node24⁠
node25node25⁠
node26node26⁠
php5.6php56⁠
php7.0php70⁠
php7.1php71⁠
php7.2php72⁠
php7.3php73⁠
php7.4php74⁠
php8.0php80⁠
php8.1php81⁠
php8.2php82⁠
php8.3php83⁠
php8.4php84⁠
php8.5php85⁠

Every tag is pushed to docker.io, quay.io and ghcr.io (epicmorg/teamcity-agent:<tag> on each) - same digest everywhere.

⁠Usage

The agent runs under supervisord as root. On the first start it creates buildAgent.properties from the environment; later starts reuse the file from the conf volume.

VariableMeaning
SERVER_URLTeamCity server URL - required on the first start
AGENT_TOKENagent authentication token (--auth-token)
AGENT_NAMEagent name
OWN_ADDRESS, OWN_PORTaddress / port the server uses to reach the agent
AGENT_OPTSspace-separated key=value lines appended to buildAgent.properties
services:
  teamcity-agent:
    image: epicmorg/teamcity-agent:minimal
    restart: unless-stopped
    environment:
      SERVER_URL: "https://teamcity.example.com"
      AGENT_NAME: "agent-01"
    volumes:
      - agent-conf:/usr/local/share/epicmorg/teamcity/agent/conf
      - agent-work:/usr/local/share/epicmorg/teamcity/agent/work
      - agent-logs:/usr/local/share/epicmorg/teamcity/agent/logs
volumes:
  agent-conf:
  agent-work:
  agent-logs:

Volumes declared by the image: .../teamcity/agent/conf, .../work, .../logs and /var/log/supervisor.

⁠latest: building containers inside the agent

latest starts its own dockerd under supervisord (unix:///var/run/docker.sock, --iptables=false --bridge=none) and ships buildah / podman configured for fuse-overlayfs (BUILDAH_FORMAT=docker, BUILDAH_ISOLATION=docker). It needs a privileged container; the storage directories are declared as volumes:

docker run -d --privileged \
  -e SERVER_URL=https://teamcity.example.com -e AGENT_NAME=agent-oci \
  -v agent-conf:/usr/local/share/epicmorg/teamcity/agent/conf \
  -v agent-docker:/var/lib/docker -v agent-containers:/var/lib/containers \
  epicmorg/teamcity-agent:latest
⁠Extending

Use a tag as a base and add what your builds need:

FROM epicmorg/teamcity-agent:php83
RUN php-ext-install -j"$(nproc)" ldap

⁠Notes

Tag summary

Content type

Image

Digest

sha256:03e011606…

Size

8.2 GB

Last updated

5 days ago

docker pull epicmorg/teamcity-agent