-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
64 lines (60 loc) · 2.15 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env bash
unset -f build__coq
build__coq() {
local IMAGE="coq"
local BASE_TAG=$1
local SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
docker build \
--no-cache \
-f "${SCRIPT_DIR}/${IMAGE}/Dockerfile" \
--build-arg BASE_TAG="${BASE_TAG}" \
-t "appliedfm/${IMAGE}:${BASE_TAG}" \
${IMAGE}
}
unset -f build__coq_compcert
build__coq_compcert() {
local IMAGE="coq-compcert"
local BASE_TAG=$1
local COMPCERT_VERSION=$2
local SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
docker build \
--no-cache \
-f "${SCRIPT_DIR}/${IMAGE}/Dockerfile" \
--build-arg BASE_TAG="${BASE_TAG}" \
--build-arg COMPCERT_VERSION="${COMPCERT_VERSION}" \
-t "appliedfm/${IMAGE}:${BASE_TAG}--compcert-${COMPCERT_VERSION}" \
${IMAGE}
}
unset -f build__coq_vst
build__coq_vst() {
local IMAGE="coq-vst"
local BASE_TAG=$1
local COMPCERT_VERSION=$2
local VST_VERSION=$3
local SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
docker build \
--no-cache \
-f "${SCRIPT_DIR}/${IMAGE}/Dockerfile" \
--build-arg BASE_TAG="${BASE_TAG}" \
--build-arg COMPCERT_VERSION="${COMPCERT_VERSION}" \
--build-arg VST_VERSION="${VST_VERSION}" \
-t "appliedfm/${IMAGE}:${BASE_TAG}--vst-${VST_VERSION}--compcert-${COMPCERT_VERSION}" \
${IMAGE}
}
unset -f build__coq_vst_certigraph
build__coq_vst_certigraph() {
local IMAGE="coq-vst-certigraph"
local BASE_TAG=$1
local COMPCERT_VERSION=$2
local VST_VERSION=$3
local CERTIGRAPH_VERSION=$3
local SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
docker build \
--no-cache \
-f "${SCRIPT_DIR}/${IMAGE}/Dockerfile" \
--build-arg BASE_TAG="${BASE_TAG}" \
--build-arg COMPCERT_VERSION="${COMPCERT_VERSION}" \
--build-arg VST_VERSION="${VST_VERSION}" \
-t "appliedfm/${IMAGE}:${BASE_TAG}--certigraph-${CERTIGRAPH_VERSION}--vst-${VST_VERSION}--compcert-${COMPCERT_VERSION}" \
${IMAGE}
}