Giter Site home page Giter Site logo

Comments (7)

bdaniel7 avatar bdaniel7 commented on June 2, 2024

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.

1scrooge avatar 1scrooge commented on June 2, 2024

I have the same issue. Any ideas?

from teamcity-docker-agent.

bdaniel7 avatar bdaniel7 commented on June 2, 2024

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.

1scrooge avatar 1scrooge commented on June 2, 2024

@bdaniel7 Thank you. It`s helped

from teamcity-docker-agent.

NikolayPianikov avatar NikolayPianikov commented on June 2, 2024

@bdaniel7 could you share commands which are used to run TeamCity server and agent in docker?

from teamcity-docker-agent.

bdaniel7 avatar bdaniel7 commented on June 2, 2024

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.

NikolayPianikov avatar NikolayPianikov commented on June 2, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.