Commit 0b6ae203 authored by ulrich_y's avatar ulrich_y
Browse files

UDocker: added self-documentation

parent 86787c31
......@@ -243,6 +243,13 @@ do
echo "Using Docker image $img"
containerid=$(udocker create $img)
echo "Created container $containerid"
userpath=`dirname $this`/user-$img-${SLURM_JOB_ID}.f95.gz
echo udocker run $containerid cat /monte-carlo/src/user.f95
udocker run $containerid cat /monte-carlo/src/user.f95 | gzip > $userpath
patchpath=`dirname $this`/diff-$img-${SLURM_JOB_ID}.patch.gz
echo udocker run $containerid sh -c "cd /monte-carlo && git diff"
udocker run $containerid sh -c "cd /monte-carlo && git diff" | gzip > $patchpath
;;
run)
echo "running with $args"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment