File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,7 @@ From: containers/basic/ubuntu-{{ OS_VERSION }}-ompi-{{ OPENMPI_VERSION }}.sif
21
21
%post
22
22
curl https://dl.openfoam.com/add-debian-repo.sh | bash
23
23
DEBIAN_FRONTEND=noninteractive
24
- apt-get -y install --no-install-recommends openfoam{{ OPENFOAM_VERSION }}-default python3
25
- rm -rf /usr/lib/openfoam/openfoam{{ OPENFOAM_VERSION }}/tutorials/*
24
+ apt-get -y install --no-install-recommends openfoam{{ OPENFOAM_VERSION }}-dev python3
26
25
dpkg --remove --force-depends libopenmpi-dev openmpi-bin openmpi-common
27
26
jq --arg app openfoam --arg commit {{ OPENFOAM_GIT_REF }} \
28
27
--arg branch {{ OPENFOAM_GIT_REF }} \
@@ -45,9 +44,9 @@ From: containers/basic/ubuntu-{{ OS_VERSION }}-ompi-{{ OPENMPI_VERSION }}.sif
45
44
%runscript
46
45
/bin/bash -c 'cd /usr/lib/openfoam/openfoam{{ OPENFOAM_VERSION }} && source etc/bashrc && mkdir -p $FOAM_USER_LIBBIN && mkdir -p $FOAM_USER_APPBIN'
47
46
if [ $# -eq 0 ]; then
48
- /bin/bash -c "source / usr/lib /openfoam/openfoam {{ OPENFOAM_VERSION }}/etc/bashrc && /bin/bash --login"
47
+ /usr/bin /openfoam{{ OPENFOAM_VERSION }}
49
48
else
50
- /bin/bash -c "source / usr/lib /openfoam/openfoam {{ OPENFOAM_VERSION }}/etc/bashrc && $@"
49
+ /usr/bin /openfoam{{ OPENFOAM_VERSION }} $@
51
50
fi
52
51
53
52
%labels
You can’t perform that action at this time.
0 commit comments