From 54596efc09794905c2386c19dc05e442eca60e9d Mon Sep 17 00:00:00 2001 From: Chris Pinkenburg Date: Thu, 2 Jun 2022 17:10:54 -0400 Subject: [PATCH] download new singularity image --- updatebuild.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/updatebuild.sh b/updatebuild.sh index 59279cc..eefe601 100755 --- a/updatebuild.sh +++ b/updatebuild.sh @@ -87,19 +87,19 @@ fi echo "--------------------------------------------------------" echo "Singularity image" echo "--------------------------------------------------------" -#echo "${URLBase}/rhic_sl7_ext.simg -> ${DownloadBase}/singularity/" +#echo "${URLBase}/rhic_sl7_ext.sif -> ${DownloadBase}/singularity/" mkdir -p ${DownloadBase}/singularity -md5_check ${URLBase}/rhic_sl7_ext.simg.md5 ${DownloadBase}/singularity/rhic_sl7_ext.simg.md5 +md5_check ${URLBase}/rhic_sl7_ext.sif.md5 ${DownloadBase}/singularity/rhic_sl7_ext.sif.md5 if [ $? != 0 ]; then - echo "Downloading ${URLBase}/rhic_sl7_ext.simg -> ${DownloadBase}/singularity/ ..." - curl -H 'Cache-Control: no-cache' -k ${URLBase}/rhic_sl7_ext.simg > ${DownloadBase}/singularity/rhic_sl7_ext.simg - curl -H 'Cache-Control: no-cache' -ks ${URLBase}/rhic_sl7_ext.simg.md5 > ${DownloadBase}/singularity/rhic_sl7_ext.simg.md5 + echo "Downloading ${URLBase}/rhic_sl7_ext.sif -> ${DownloadBase}/singularity/ ..." + curl -H 'Cache-Control: no-cache' -k ${URLBase}/rhic_sl7_ext.sif > ${DownloadBase}/singularity/rhic_sl7_ext.sif + curl -H 'Cache-Control: no-cache' -ks ${URLBase}/rhic_sl7_ext.sif.md5 > ${DownloadBase}/singularity/rhic_sl7_ext.sif.md5 else - echo "${URLBase}/rhic_sl7_ext.simg has not changed since the last download" - echo "- Its md5 sum is ${DownloadBase}/singularity/rhic_sl7_ext.simg.md5 : " `cat ${DownloadBase}/singularity/rhic_sl7_ext.simg.md5` + echo "${URLBase}/rhic_sl7_ext.sif has not changed since the last download" + echo "- Its md5 sum is ${DownloadBase}/singularity/rhic_sl7_ext.sif.md5 : " `cat ${DownloadBase}/singularity/rhic_sl7_ext.sif.md5` fi echo "--------------------------------------------------------" @@ -168,7 +168,7 @@ done echo "--------------------------------------------------------" echo "Done! To run the ECCE container in shell mode:" echo "" -echo "singularity shell -B cvmfs:/cvmfs cvmfs/eic.opensciencegrid.org/singularity/rhic_sl7_ext.simg" +echo "singularity shell -B cvmfs:/cvmfs cvmfs/eic.opensciencegrid.org/singularity/rhic_sl7_ext.sif" echo "source /cvmfs/eic.opensciencegrid.org/ecce/$sysname/opt/fun4all/core/bin/ecce_setup.sh -n $build" echo "" echo "More on singularity tutorials: https://www.sylabs.io/docs/"