-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-bake.hcl
52 lines (46 loc) · 1010 Bytes
/
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
# docker-bake.hcl
variable "VERSION" {
}
variable "PLATFORMS" {
default = ["linux/amd64", "linux/arm64"]
}
variable "TARGETS" {
default = ["aiida-core", "aiida-with-gromacs"]
}
function "tags" {
params = [image]
result = [
"harbor.stfc.ac.uk/biosimulation-cloud/${image}:v0.0.13"
]
}
group "default" {
targets = "${TARGETS}"
}
target "aiida-core-meta" {
tags = tags("aiida-core")
}
target "aiida-with-gromacs-meta" {
tags = tags("aiida-with-gromacs")
}
target "aiida-core" {
inherits = ["aiida-core-meta"]
context = "aiida-core"
platforms = "${PLATFORMS}"
args = {
"AIIDA_VERSION" = "${AIIDA_VERSION}"
"PYTHON_VERSION" = "${PYTHON_VERSION}"
}
}
target "aiida-with-gromacs" {
inherits = ["aiida-with-gromacs-meta"]
context = "aiida-with-gromacs"
contexts = {
aiida-core = "target:aiida-core"
}
platforms = "${PLATFORMS}"
args = {
"GMX_VERSION" = "${GMX_VERSION}"
"PGSQL_VERSION" = "${PGSQL_VERSION}"
"RMQ_VERSION" = "${RMQ_VERSION}"
}
}