2017-08-23 17:04:33 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -o nounset
|
2017-09-21 19:09:00 +00:00
|
|
|
set -x
|
2017-08-23 17:04:33 +00:00
|
|
|
|
2017-09-20 10:37:57 +00:00
|
|
|
SING_EXEC="singularity exec --pwd /opt/ExtensionCrawler -B $TMPDIR:/tmp $SING_IMG"
|
2017-08-23 22:23:21 +00:00
|
|
|
|
2017-09-20 10:37:57 +00:00
|
|
|
printenv
|
2017-09-02 16:52:51 +00:00
|
|
|
echo "The following parameter were passed: $*"
|
2017-09-20 10:37:57 +00:00
|
|
|
echo "Printing the content of $ARCHIVE to force mounting:"
|
|
|
|
ls "$ARCHIVE"
|
2017-09-02 16:52:51 +00:00
|
|
|
|
2017-09-21 19:09:00 +00:00
|
|
|
if [ -f "$BASEDIR/ids" ]; then
|
|
|
|
EXT_SELECT="-e $BASEDIR/ids"
|
|
|
|
else
|
|
|
|
EXT_SELECT=
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
/usr/bin/time $SING_EXEC ./create-db -t 1 -a "$ARCHIVE" -n $SGE_TASK_ID -N $MAX_SGE_TASK_ID $EXT_SELECT $*
|