-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
validations and fixes for singularity setup
- Loading branch information
1 parent
8b237ed
commit 84922e4
Showing
3 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
grep "withLabel:" $1 | cut -f2 -d "'" > .container_list.tmp | ||
grep "withLabel:" $1 | cut -f2 -d "'" > .container_list.tmp | ||
cachedir="$2" | ||
|
||
while read container; do | ||
singularity pull --dir $cachedir docker://${container} | ||
name=${container//[\:\/]/-} | ||
|
||
if [ -e ${cachedir}/${name}.img ] | ||
then | ||
echo "${name}.img image exists" | ||
else | ||
singularity pull --name ${name}.img --dir "${cachedir}" "docker://${container}" | ||
fi | ||
|
||
done < ".container_list.tmp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters