Commit a3fc4de2 authored by Sebastian Achilles's avatar Sebastian Achilles
Browse files
parents bfd90373 d97baa14
Pipeline #90168 passed with stages
in 8 minutes and 58 seconds
......@@ -36,11 +36,16 @@ RUN ml --version \
# --build-arg USER_ID=$(id -u ${USER}) \
# --build-arg GROUP_ID=$(id -g ${USER})
USER root
RUN groupadd amber &&\
groupadd cpmd &&\
groupadd namd &&\
usermod -a -G amber,cpmd,namd easybuild
RUN if [ ${USER_ID:-0} -ne 0 ] && [ ${GROUP_ID:-0} -ne 0 ]; then \
userdel -f easybuild &&\
if getent group easybuild ; then groupdel easybuild; fi &&\
groupadd -g ${GROUP_ID} easybuild &&\
useradd -l -u ${USER_ID} -g easybuild easybuild &&\
usermod -a -G amber,cpmd,namd easybuild &&\
install -d -m 0755 -o easybuild -g easybuild /home/easybuild &&\
chown --silent --no-dereference --recursive \
--from=1000:1000 ${USER_ID}:${GROUP_ID} \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment