Skip to content

Commit

Permalink
Enh/specific slurm version (#3)
Browse files Browse the repository at this point in the history
* update Dockerfile

* add slurm version to be installed on demand
  • Loading branch information
MBueschelberger committed Aug 26, 2023
1 parent 69ca754 commit 7c84fe2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ REAXPRO_MINIO_USER=rootname
REAXPRO_MINIO_PASSWORD=rootname123
DOCKER_BUILD_TARGET=develop
INSTALL_SLURM=no
SLURM_VERSION=23.02.4
17 changes: 15 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,21 @@ ARG GITHUB_ACCESS_TOKEN
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
ARG SLURM_VERSION

WORKDIR /tmp
RUN if [ "$INSTALL_SLURM" = "yes" ] ; \
then \
apt install -y munge && \
wget "https://download.schedmd.com/slurm/slurm-${SLURM_VERSION}.tar.bz2" && \
tar --bzip -x -f "slurm-${SLURM_VERSION}.tar.bz2" && \
cd "slurm-${SLURM_VERSION}" && \
./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
1 change: 1 addition & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
- WRAPPER_DEPS_EXTRA=$WRAPPER_DEPS_EXTRA
- WRAPPER_DEPS_INSTALL=$WRAPPER_DEPS_INSTALL
- INSTALL_SLURM=$INSTALL_SLURM
- SLURM_VERSION=$SLURM_VERSION
target: "${DOCKER_BUILD_TARGET:-develop}"
tty: True
entrypoint: /bin/bash
Expand Down

0 comments on commit 7c84fe2

Please sign in to comment.