Commit 71020f85 authored by Sebastian Achilles's avatar Sebastian Achilles
Browse files

update Ubuntu image

parent e82fafa3
Pipeline #88356 passed with stages
in 8 minutes and 59 seconds
......@@ -27,5 +27,23 @@ RUN ml --version \
&& which -a eb \
&& eb --version \
&& eb --show-system-info
# adjust user and group id accroding to arguments given by
# --build-arg USER_ID=$(id -u ${USER}) \
# --build-arg GROUP_ID=$(id -g ${USER})
USER root
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 &&\
install -d -m 0755 -o easybuild -g easybuild /home/easybuild &&\
chown --changes --silent --no-dereference --recursive \
--from=1000:1000 ${USER_ID}:${GROUP_ID} \
/home/easybuild \
/scratch \
/easybuild \
;fi
# switch to 'easybuild' user
USER easybuild
# make sure we start in /home/easybuild rather than / when shell in started in container
WORKDIR /home/easybuild
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