Include default archive directory (or link to external archive directory).
This commit is contained in:
parent
b8381fc879
commit
82a6472bc4
|
@ -93,21 +93,22 @@ chmod -R go+u-w /usr/local/bin/
|
||||||
###################################################################
|
###################################################################
|
||||||
|
|
||||||
###################################################################
|
###################################################################
|
||||||
# Clone cdnjs repository
|
# Clone cdnjs repository or crate link to external archive dir
|
||||||
case ${SINGULARITY_IMAGE} in *-cdnjs.img)
|
ARCHIVE=/shared/brucker_research1/Shared/BrowserExtensions/archive/
|
||||||
rm -f /cdnjs
|
case ${SINGULARITY_IMAGE} in
|
||||||
mkdir -p /opt/Shared/BrowserExtensions/archive/filedb
|
*-cdnjs.img)
|
||||||
cd /opt/Shared/BrowserExtensions/archive/filedb
|
mkdir -p /opt/archive/filedb
|
||||||
|
cd /opt/archive/filedb
|
||||||
git clone https://github.com/cdnjs/cdnjs.git cdnjs-git
|
git clone https://github.com/cdnjs/cdnjs.git cdnjs-git
|
||||||
cd cdnjs-git
|
cd cdnjs-git
|
||||||
git pull
|
git pull
|
||||||
cd /opt/Shared/BrowserExtensions/archive/
|
cd /opt/archive/
|
||||||
ln -s /opt/Shared/BrowserExtensions/archive/conf .
|
ln -s ${ARCHIVE}/* . > /dev/null
|
||||||
ln -s /opt/Shared/BrowserExtensions/archive/data .
|
chmod -R go+u-w /opt/archive
|
||||||
ln -s /opt/Shared/BrowserExtensions/archive/log .
|
;;
|
||||||
cd /opt
|
*)
|
||||||
ln -s /opt/Shared/BrowserExtensions/archive .
|
cd /opt/
|
||||||
chmod -R go+u-w Shared
|
ln -s ${ARCHIVE} .
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
###################################################################
|
###################################################################
|
||||||
|
@ -130,7 +131,10 @@ chmod go+u-w /scratch /fastdata /data /shared
|
||||||
|
|
||||||
%environment
|
%environment
|
||||||
|
|
||||||
|
EXTENSION_ARCHIVE=/opt/archive
|
||||||
|
|
||||||
# We install all python modules into the container, so we do not want
|
# We install all python modules into the container, so we do not want
|
||||||
# to use any packages that the user might have installed in their home
|
# to use any packages that the user might have installed in their home
|
||||||
# directory.
|
# directory.
|
||||||
export PYTHONNOUSERSITE=1
|
export PYTHONNOUSERSITE=1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue