Skip to content

Commit

Permalink
download new singularity image
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkenburg committed Jun 2, 2022
1 parent 5916e20 commit 54596ef
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions updatebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "--------------------------------------------------------"
Expand Down Expand Up @@ -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/"
Expand Down

0 comments on commit 54596ef

Please sign in to comment.