Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Build server unable to remove some of the build files #189

Closed
jwgmeligmeyling opened this issue May 23, 2015 · 2 comments
Closed

Build server unable to remove some of the build files #189

jwgmeligmeyling opened this issue May 23, 2015 · 2 comments
Assignees

Comments

@jwgmeligmeyling
Copy link
Member

Build files created in the Docker container are owned by root, while the build server instances run under the build user.

@jwgmeligmeyling
Copy link
Member Author

With the run command we can pass the user to use in the container. This user should be added to our build images. In order for the rights to be set properly, the id for this user:group has to be equal across the container and the host, according to this response and this Stackoverflow answer.

@jwgmeligmeyling
Copy link
Member Author

@michaeldejong I found the ID's 1003 and 1004. I think we should add the following command to the Dockerfile:

RUN useradd -u 1003 -g 1004 -ms /bin/bash build

And then set docker.user to build in the config file.
But before I create a new Docker image, which Dockerfile is currently being used? The one in the repository? The one at /etc/build-server/dockerfiles/java-maven, or one somewhere else on the server? Because I remember some modifications being made during SEM for switching to Java 8 and supporting JavaFX.

@jwgmeligmeyling jwgmeligmeyling added this to the Current iteration milestone May 24, 2015
@jwgmeligmeyling jwgmeligmeyling self-assigned this May 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant