Skip to content

Commit acba6bd

Browse files
committed
added corral-tacc
1 parent 37df721 commit acba6bd

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

docker2singularity.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ $# == 0 ] ; then
2020
echo $USAGE
2121
exit 1;
2222
fi
23-
mount_points="/oasis /projects /scratch /local-scratch /work /home1 /corral-repl /beegfs /share/PI /extra /data /oak"
23+
mount_points="/oasis /projects /scratch /local-scratch /work /home1 /corral-repl /corral-tacc /beegfs /share/PI /extra /data /oak"
2424
while getopts ':hm:' option; do
2525
case "$option" in
2626
h) echo "$USAGE"
@@ -174,14 +174,7 @@ fi
174174
# making sure that any user can read and execute everything in the container
175175
echo "(7/9) Fixing permissions..."
176176
singularity 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 '{}' \;"
177-
if grep -q Buildroot /etc/issue ; then
178-
# we're running on a Builroot container and need to use Busybox's find
179-
echo "We're running on BusyBox/Buildroot"
180-
singularity exec --writable --contain $new_container_name /bin/sh -c "find / -type f -or -type d -perm -u+x,o-x -not -path '/dev*' -not -path '/proc*' -not -path '/sys*' -exec chmod a+x '{}' \;"
181-
else
182-
echo "We're not running on BusyBox/Buildroot"
183-
singularity 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 '{}' \;"
184-
fi
177+
singularity exec --writable --contain $new_container_name /bin/sh -c "find /* (-type f -or -type d) -perm -u+x,o-x -not -path '/dev*' -not -path '/proc*' -not -path '/sys*' -exec chmod a+x '{}' \;"
185178

186179
echo "(8/9) Stopping and removing the container..."
187180
docker stop $container_id

0 commit comments

Comments
 (0)