-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User buildagent has inadequate permissions #39
Comments
Same issues here. It's desiderable to work with the principe of least-privilege. But to prepare the agent for real work we will need to install aditional software that will require root access. |
OK. Found the solution to my problem here: The trick is to set |
That was actually the first thing I did as well. And that did fix the issue with building the image. But then the issue appeared which I described above. When I boot up a container with my custom image, which is based on this one, the user buildagent would still lack the appropriate rights to create the config folder. |
Hi JB
For a good while now I make use of the dockerimage generated by the Ubuntu Dockerfile to setup build agents. However, since commit 5194c8c9764cebc93d2e74f954cbc0fbccf7d59a the default user has been changed from root to buildagent. This has given me several issues.
While trying to run a container using the jetbrains/teamcity-minimal-agent image I hit all sorts of file permission errors. As in, the user builduser is not allowed to write files to the config folder which is mapped to a folder on my host machine, which is a Ubuntu Server 20.04. By modifying my own dockerfile (which uses your image as base) to switch back to user root all the issues were gone.
So my question to you is, why you changed the default user. And also, am I doing something wrong? And is this even related to JetBrains, or is this issue related to Docker in general? Any help would be highly appreciated. Thanks!
With kind regards,
TheBoneJarmer
The text was updated successfully, but these errors were encountered: