Skip to content
Snippets Groups Projects
Commit 772f0dad authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Update user uid and gid to match LDAP user

JIRA INFRA-1646 #action In Progress
parent 6ef389fa
No related branches found
No related tags found
No related merge requests found
......@@ -54,9 +54,10 @@ RUN wget -O /usr/local/bin/repo https://storage.googleapis.com/git-repo-download
# Add user that will be used by gitlab-ci to compile
# This user shall have the proper uid to have write access on E3 NFS share
# It shall match the uid and gid of the user defined in LDAP
ENV USERNAME gitlab-ci
RUN groupadd -r -g 10000 ${USERNAME} \
&& useradd --no-log-init -r -m -g ${USERNAME} -u 10000 ${USERNAME}
RUN groupadd -r -g 100000 ${USERNAME} \
&& useradd --no-log-init -r -m -g ${USERNAME} -u 10043 ${USERNAME}
USER ${USERNAME}
WORKDIR /home/${USERNAME}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment