You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
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.
@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.
Build files created in the Docker container are owned by
root
, while the build server instances run under thebuild
user.The text was updated successfully, but these errors were encountered: