Skip to content
Snippets Groups Projects
Commit 145ac83f authored by Florian Dobener's avatar Florian Dobener
Browse files

Merge branch 'add-fhi-local-builds' into 'develop'

Adds FHI local builds

See merge request !138
parents 3d29bd9a 008fe1bd
No related branches found
No related tags found
1 merge request!138Adds FHI local builds
Pipeline #170103 canceled
......@@ -40,6 +40,11 @@ workflow:
DIR: docker/fiji
- IMAGE_NAME: nexus-webtop
DIR: docker/nexus
- IMAGE_NAME: mpes-jupyter-fhi
DIR: docker/mpes/fhi-local
DOCKERFILE: Dockerfile.jupyter
- IMAGE_NAME: mpes-webtop-fhi
DIR: docker/mpes/fhi-local
stages:
- build
......
#!/usr/bin/with-contenv bash
if [ ! -e /lock.file ]; then
# give abc a sudo shell
chsh abc -s /bin/bash
sed -e 's/%sudo ALL=(ALL:ALL) ALL/%sudo ALL=(ALL:ALL) NOPASSWD: ALL/g' \
-i /etc/sudoers
sed -e 's/^wheel:\(.*\)/wheel:\1,abc/g' -i /etc/group
fi
# create lock file after first run
touch /lock.file
# default file copies first run
[[ ! -d /config/.config ]] && \
mkdir -p /config/.config && \
cp /defaults/bashrc /config/.bashrc && \
cp /defaults/startwm.sh /config/startwm.sh
# permissions
PERM=$(stat -c '%U' /config/.config)
[[ "${PERM}" != "abc" ]] && \
chown -R abc:abc $(ls -a /config | awk '{if($1 != "." && $1 != ".." && $1 != "pcshare" && $1 != "localDataStore"){ print "/config/$1" }}')
FROM gitlab-registry.mpcdf.mpg.de/nomad-lab/nomad-remote-tools-hub/mpes-webtop:v0.0.1
ENV PGID=5050
COPY 30-config /etc/cont-init.d/30-config
WORKDIR /config
FROM gitlab-registry.mpcdf.mpg.de/nomad-lab/nomad-remote-tools-hub/mpes-jupyter:v0.0.1
USER root
RUN groupadd -r metis -g 5050 && usermod -aG metis $NB_USER
RUN usermod -g metis $NB_USER
USER $NB_UID
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment