-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_all.sh
38 lines (28 loc) · 983 Bytes
/
build_all.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
#!/bin/sh
set -e
echo 'this will take a while, go grab a coffee ...'
# opts=--no-cache
opts=''
# build Dockerfile.worker dependencies
if [ "$#" -ne 1 ] || [ "$1" = "base" ]; then
docker build $opts -t vcc:base -f ./docker/Dockerfile.base ./docker
fi
if [ "$#" -ne 1 ] || [ "$1" = "HM" ]; then
docker build $opts -t vcc:hm -f ./docker/Dockerfile.HM ./docker
fi
if [ "$#" -ne 1 ] || [ "$1" = "JM" ]; then
docker build $opts -t vcc:jm -f ./docker/Dockerfile.JM ./docker
fi
if [ "$#" -ne 1 ] || [ "$1" = "VTM" ]; then
docker build $opts -t vcc:vtm -f ./docker/Dockerfile.VTM ./docker
fi
if [ "$#" -ne 1 ] || [ "$1" = "ETM" ]; then
docker build $opts -t vcc:etm -f ./docker/Dockerfile.ETM ./docker
fi
if [ "$#" -ne 1 ] || [ "$1" = "AOM" ]; then
docker build $opts -t vcc:aom -f ./docker/Dockerfile.AOM ./docker
fi
if [ "$#" -ne 1 ] || [ "$1" = "worker" ]; then
docker build $opts -t vcc:worker -f ./docker/Dockerfile.worker ./
fi
docker-compose build