-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path00_start_docker.sh
32 lines (25 loc) · 1 KB
/
00_start_docker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Launch docker environment before running cq or other queries.
# using WUdocker to start image: https://github.com/ding-lab/WUDocker.git
# * as a result, docker/start_docker.*.sh are deprecated
# * these are kept for now for reference
# It is expected that cromwell jobs will be launched with bsub rather than parallel
source Project.config.sh
START_DOCKERD="docker/WUDocker"
IMAGE="mwyczalkowski/cromwell-runner:v78" # mammoth server
# IMAGE="mwyczalkowski/cromwell-runner" # MGI server
MEM=4
ARG="-q dinglab-interactive -r"
GROUP="-G compute-dinglab"
# Common error - CWL directory does not exist
if [ -z $CWL_ROOT_H ]; then
>&2 echo ERROR: CWL root directory not defined \(does $CWL_ROOT_H_LOC exist?\)
exit 1
fi
if [ ! -d $CWL_ROOT_H ]; then
>&2 echo ERROR: CWL root directory does not exist: $CWL_ROOT_H
exit 1
fi
>&2 echo Launching $IMAGE on $SYSTEM
CMD="bash $START_DOCKERD/start_docker.sh $ARG -g \"$GROUP\" -I $IMAGE -M $SYSTEM -m $MEM $@ $VOLUME_MAPPING"
echo Running: $CMD
eval $CMD