-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-bake.hcl
55 lines (48 loc) · 1.14 KB
/
docker-bake.hcl
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
group "default" {
targets = [
"db-virtuoso-deploy",
]
}
variable "REGISTRY" {
default = ""
}
variable "BUILDER_BASE" {
default = "docker-image://ubuntu:20.04"
}
variable "RUNTIME_BASE" {
default = "docker-image://ubuntu:20.04"
}
# <https://github.com/openlink/vos-reference-docker>
# <https://hub.docker.com/r/openlink/virtuoso-opensource-7>
variable "VIRTUOSO_BASE" {
default = "docker-image://openlink/virtuoso-opensource-7:7.2.11"
}
target "hdt-cpp" {
dockerfile = "hdt-cpp/Dockerfile"
target = "runtime"
contexts = {
builder-base = "${BUILDER_BASE}"
runtime-base = "${RUNTIME_BASE}"
}
}
target "db-virtuoso-deploy" {
dockerfile = "db-virtuoso/Dockerfile"
target = "db"
contexts = {
virtuoso-base = "${VIRTUOSO_BASE}"
hdt-cpp = "target:hdt-cpp"
}
tags = [ "${REGISTRY}db-virtuoso-deploy:latest" ]
}
target "db-virtuoso-deploy-tester" {
dockerfile = "db-virtuoso/Dockerfile"
target = "tester"
contexts = {
db = "target:db-virtuoso-deploy"
hdt-cpp = "target:hdt-cpp"
}
args = {
CACHE_BUST = timestamp()
}
output = [ "type=cacheonly" ]
}