-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sh
40 lines (34 loc) · 866 Bytes
/
build.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
33
34
35
36
37
38
39
40
#!/bin/bash
set -euo pipefail
source='git@github.com:MRCIEU/'
# ensure we're up to date
git pull
function setup {
cd ../
echo $1
container=$1
if [ -d "$container" ]; then
cd $container
git pull
else
git clone --recurse-submodules $source$container.git
cd $container
fi
hash=$(git rev-parse HEAD)
echo "$hash"
if [ "$container" == "mrbase-report-module" ]; then
docker build --no-cache -f ./env/Dockerfile -t "$container":"$hash" .
else
docker build --no-cache -t "$container":"$hash" .
fi
cd ../igd-api
}
# build latest api image
docker build --no-cache -t mr-base-api-v3:latest .
# build cromwell container with Docker exec
docker build --no-cache -t cromwell-docker ./app/resources/workflow
# build pipeline components
for container in "igd-elasticsearch" "gwas2vcf" "gwas_processing" "mrbase-report-module"
do
setup $container
done