Skip to content

Commit

Permalink
make slurm installation optional
Browse files Browse the repository at this point in the history
  • Loading branch information
MBueschelberger committed Aug 26, 2023
1 parent ed61600 commit c027c83
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ EIGEN_REPO=https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.gz
REAXPRO_MINIO_USER=rootname
REAXPRO_MINIO_PASSWORD=rootname123
DOCKER_BUILD_TARGET=develop
INSTALL_SLURM=no
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ RUN apt-get update && apt-get install -y \
g++ apt-transport-https ca-certificates gnupg \
software-properties-common build-essential \
libboost-all-dev librapidxml-dev libeigen3-dev \
gfortran nodejs slurm-wlm
gfortran nodejs

# retrieve build args
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

# 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 @@ -11,6 +11,7 @@ services:
- EIGEN_REPO=$EIGEN_REPO
- WRAPPER_DEPS_EXTRA=$WRAPPER_DEPS_EXTRA
- WRAPPER_DEPS_INSTALL=$WRAPPER_DEPS_INSTALL
- INSTALL_SLURM=$INSTALL_SLURM
target: "${DOCKER_BUILD_TARGET:-develop}"
tty: True
entrypoint: /bin/bash
Expand Down

0 comments on commit c027c83

Please sign in to comment.