Based on the official TeamCity Agent image with Nodejs LTS (10.x) added on top.
This image will automatically be updated when the official base image gets updated.
Based on: https://hub.docker.com/r/jetbrains/teamcity-agent/
docker build -t tc-agent-nodejs .
This will start it up with docker build support and remove the container when you exit.
Remember to replace Server address that will point it to your TeamCity server.
docker run -it -e SERVER_URL="<Server address>" --privileged -e DOCKER_IN_DOCKER=start -e DOCKER_OPTS="--insecure-registry 10.0.0.10:5000 --insecure-registry http://10.0.0.10:5000" -e AGENT_NAME="DockerNodejs-Agent" --name tc-agent-nodejs --rm tc-agent-nodejs
Note:
The two --insecure-registry
Is only needed if communicating with a insecure registry.
a Linux container:
docker run -it -e SERVER_URL="<url>" \
-v <path>:/data/teamcity_agent/conf \
fluid/teamcity-agent-nodejs
or a Windows container:
docker run -it -e SERVER_URL="<url>"
-v <path>:C:/BuildAgent/conf
fluid/teamcity-agent-nodejs