Skip to content

Commit

Permalink
correctly set optional ulimit
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenhaute committed Jul 28, 2024
1 parent cf25b07 commit 60b7bc7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile.cp2k
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ export OMP_STACKSIZE=16M\n\
export OMP_NUM_THREADS=1\n\
export PATH=/opt/cp2k/exe/local:\${PATH}\n\
source /opt/cp2k/tools/toolchain/install/setup\n\
\"\$@\"" \
if [ -n "\${MEMORY_LIMIT}" ]; then\n\
ulimit -v \${MEMORY_LIMIT}\n\
fi\n\
\n\
\"\$@\"\n" \
>/opt/entry.sh && chmod 755 /opt/entry.sh

# Create shortcut for regression test
Expand Down

0 comments on commit 60b7bc7

Please sign in to comment.