Comments (7)
I think this occurs because the teamcity agent runs under buildagent user and the folders and files created during agent instalation (/opt, /tmp) are rw only for root:root.
I tried to add root to group docker and set chown those directories to root:docker but to no avail. New folders generated when the any "dotnet" command starts are owned and rw by root.
from teamcity-docker-agent.
I have the same issue. Any ideas?
from teamcity-docker-agent.
One workaround is to set the environment variable COMPlus_EnableDiagnostics=0 in all the containers where dotnet runs.
The variable is used to determine whether the clr will write some debug information in /tmp.
You can search for more details about that variable in the .NET Core GitHub issues log.
from teamcity-docker-agent.
@bdaniel7 Thank you. It`s helped
from teamcity-docker-agent.
@bdaniel7 could you share commands which are used to run TeamCity server and agent in docker?
from teamcity-docker-agent.
They are run using docker-compose:
teamcity-server:
restart: always
image: jetbrains/teamcity-server:latest
container_name: teamcity
hostname: 'teamcity'
depends_on:
- "db"
environment:
- COMPlus_EnableDiagnostics=0
ports:
- 8111:8111
volumes:
- /docker/teamcity/data:/data/teamcity_server/datadir
- /docker/teamcity/logs:/opt/teamcity/logs
labels:
- 'traefik.frontend.rule=Host:teamcity.my.domain'
- 'traefik.backend=teamcity-backend'
- 'traefik.domain=my.domain'
- 'traefik.port=8111'
networks:
- trains-backend
teamcity-agent1:
restart: always
image: bdaniel7/teamcity-docker-agent-with-node:latest
container_name: teamcity-agent1
hostname: 'teamcity-agent1'
environment:
- 'SERVER_URL=http://teamcity:8111'
- 'AGENT_NAME=zozo'
- 'TMPDIR=/tmp'
- COMPlus_EnableDiagnostics=0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- '/docker/teamcity_agent1/conf:/data/teamcity_agent/conf'
- '/docker/teamcity_agent1/work:/opt/buildagent/work'
- '/docker/teamcity_agent1/temp:/opt/buildagent/temp'
- '/docker/teamcity_agent1/tools:/opt/buildagent/tools'
- '/docker/teamcity_agent1/plugins:/opt/buildagent/plugins'
- '/docker/teamcity_agent1/system:/opt/buildagent/system'
- '/docker/teamcity_agent1/logs:/opt/buildagent/logs'
networks:
- trains-backend
from teamcity-docker-agent.
@bdaniel7 by default TeamCity agent uses this TEMP directory TMPDIR=/opt/buildagent/temp/buildTmp
. Try using the same.
from teamcity-docker-agent.
Related Issues (20)
- Can we run tests on containers in build agent by installing Docker in teamcity build agent HOT 2
- Missing fontconfig package in linux HOT 1
- DOCKER_OPTS insecure-registry setting not working HOT 5
- Support for .net sdk 3.0 HOT 8
- Unable to build docker image HOT 1
- Question: official php support? HOT 1
- windows docker image doesn't contain powershell HOT 4
- Document options that can be set in environment variables HOT 3
- Issue with apt installer HOT 4
- Docker does not start anymore with version 2020.1 HOT 7
- Windows Docker Agent Building Windows Docker Images HOT 1
- teamcity-agent docker image latest version jetbrains/teamcity-agent:2020.1 prevents installations as root HOT 2
- How to import GnuPG keys? HOT 2
- agent container downloads update in loop HOT 7
- Mercurial missing in 2020.1.2 images HOT 6
- Permission issue when attempting to run in docker swarm HOT 11
- Docker service fails to set ulimit HOT 1
- Generating Self Singed Certificated for TeamCity Agent & Connection to Teamcity Server in Docker HOT 2
- cgroups: cgroup mountpoint does not exist: unknown HOT 3
- Kubernetes no longer supports Dockershim and it breaks TeamCity agent on EKS 1.24 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teamcity-docker-agent.