Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
MBueschelberger committed Aug 26, 2023
1 parent 69ca754 commit 526f3a1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,19 @@ ARG EIGEN_REPO
ARG CATALYTIC_FOAM_REPO
ARG INSTALL_SLURM

RUN if [[ "$INSTALL_SLURM" = "yes" ]] ; then apt install -y slurm-wlm ; else echo 'Slurm will not be installed.' ; fi
WORKDIR /tmp
RUN if [[ "$INSTALL_SLURM" = "yes" ]] ; \
then \
apt install -y munge \
wget https://download.schedmd.com/slurm/slurm-23.02.4.tar.bz2 -o slurm.tar.bz2 \
tar --bzip -x -f slurm.tar.bz2 \
cd slurm.tar.bz2 \
./configure \
make \
make install ;\
else \
echo 'Slurm will not be installed.' ; \
fi

# make code base in homedir read-/write-/executable to USER
RUN chmod -R 0777 /home/openfoam
Expand Down

0 comments on commit 526f3a1

Please sign in to comment.