-
Notifications
You must be signed in to change notification settings - Fork 9
/
build-noCache.sh
62 lines (48 loc) · 1.71 KB
/
build-noCache.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env bash
IMAGE_REPOSITORY="${1:-ghcr.io/tum-gis}"
IMAGE_TAG="${2:-devel}"
printf "\n\nIMAGE_REPOSITORY=$IMAGE_REPOSITORY\nIMAGE_TAG=${IMAGE_TAG}\n\n"
# sddi-base ###################################################################
cd sddi-base
# sddi-base:TAG
docker build . \
--no-cache \
-t "$IMAGE_REPOSITORY/ckan-sddi-base:${IMAGE_TAG}"
# sddi-base:TAG-debug
docker build . -f Dockerfile.debug \
--no-cache \
--build-arg "BASEIMAGE_REPOSITORY=$IMAGE_REPOSITORY/ckan-sddi-base" \
--build-arg BASEIMAGE_VERSION=${IMAGE_TAG} \
-t "$IMAGE_REPOSITORY/ckan-sddi-base:${IMAGE_TAG}-debug"
printf "\n\n"
# sddi ########################################################################
cd ../sddi
# sddi:TAG
docker build . \
--no-cache \
--build-arg "BASEIMAGE_REPOSITORY=$IMAGE_REPOSITORY/ckan-sddi-base" \
--build-arg BASEIMAGE_VERSION=${IMAGE_TAG} \
-t "$IMAGE_REPOSITORY/ckan-sddi:${IMAGE_TAG}"
# sddi:TAG-debug
docker build . \
--no-cache \
--build-arg "BASEIMAGE_REPOSITORY=$IMAGE_REPOSITORY/ckan-sddi-base" \
--build-arg BASEIMAGE_VERSION=${IMAGE_TAG}-debug \
-t "$IMAGE_REPOSITORY/ckan-sddi:${IMAGE_TAG}-debug"
printf "\n\n"
# sddi-social #################################################################
cd ../sddi-social
# sddi-social:TAG
docker build . \
--no-cache \
--build-arg "BASEIMAGE_REPOSITORY=$IMAGE_REPOSITORY/ckan-sddi" \
--build-arg BASEIMAGE_VERSION=${IMAGE_TAG} \
-t "$IMAGE_REPOSITORY/ckan-sddi-social:${IMAGE_TAG}"
# sddi-social:TAG-debug
docker build . \
--no-cache \
--build-arg "BASEIMAGE_REPOSITORY=$IMAGE_REPOSITORY/ckan-sddi" \
--build-arg BASEIMAGE_VERSION=${IMAGE_TAG}-debug \
-t "$IMAGE_REPOSITORY/ckan-sddi-social:${IMAGE_TAG}-debug"
cd ..
printf "\n\n"