File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -140,15 +140,14 @@ rm -rf $TMPDIR
140140# ###############################################################################
141141# ## Permissions ################################################################
142142# ###############################################################################
143+ echo " (6/9) Adding mount points..."
144+ singularity exec --writable --contain $new_container_name /bin/sh -c " mkdir -p mkdir /oasis /projects /scratch /local-scratch /work /home1 /corral-repl"
143145
144146# making sure that any user can read and execute everything in the container
145- echo " (6 /9) Fixing permissions..."
147+ echo " (7 /9) Fixing permissions..."
146148singularity exec --writable --contain $new_container_name /bin/sh -c " find /* -maxdepth 0 -not -path '/dev*' -not -path '/proc*' -not -path '/sys*' -exec chmod a+r -R '{}' \;"
147149singularity exec --writable --contain $new_container_name /bin/sh -c " find / -executable -perm -u+x,o-x -not -path '/dev*' -not -path '/proc*' -not -path '/sys*' -exec chmod a+x '{}' \;"
148150
149- echo " (7/9) Adding mount points..."
150- singularity exec --writable --contain $new_container_name /bin/sh -c " mkdir -p mkdir /oasis /projects /scratch /local-scratch"
151-
152151echo " (8/9) Stopping and removing the container..."
153152docker stop $container_id
154153docker rm $container_id
You can’t perform that action at this time.
0 commit comments