-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-bake.hcl
115 lines (104 loc) · 2.68 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# docker-bake.hcl
group "default" {
targets = [
"7_9",
"8_1"
]
}
variable "BASE_IMAGE_NAME" {
default = "localhost:5000/kcollins/ignition"
}
variable "IGNITION_VERSION_79" {
default = "7.9.21"
}
variable "IGNITION_VERSION_81" {
default = "8.1.43"
}
# Ignition Base Build Targets
target "7_9-base" {
context = "7.9"
contexts = {
jre-base = "docker-image://eclipse-temurin:8-jre-jammy"
}
platforms = [
"linux/amd64",
"linux/arm",
]
}
target "8_1-base" {
context = "8.1"
contexts = {
ubuntu-base = "docker-image://ubuntu:24.04"
}
platforms = [
"linux/amd64",
"linux/arm64",
"linux/arm",
]
}
# Ignition 7.9 Build Targets
group "7_9" {
targets = [
"7_9-full",
"7_9-edge"
]
}
target "7_9-full" {
inherits = ["7_9-base"]
args = {
BUILD_EDITION = "FULL"
}
cache-to = ["type=registry,ref=${BASE_IMAGE_NAME}:cache-${IGNITION_VERSION_79}"]
cache-from = ["type=registry,ref=${BASE_IMAGE_NAME}:cache-${IGNITION_VERSION_79}"]
tags = [
"${BASE_IMAGE_NAME}:${IGNITION_VERSION_79}",
"${BASE_IMAGE_NAME}:7.9",
]
}
target "7_9-edge" {
inherits = ["7_9-base"]
args = {
BUILD_EDITION = "EDGE"
}
cache-to = ["type=registry,ref=${BASE_IMAGE_NAME}:cache-${IGNITION_VERSION_79}-edge"]
cache-from = ["type=registry,ref=${BASE_IMAGE_NAME}:cache-${IGNITION_VERSION_79}-edge"]
tags = [
"${BASE_IMAGE_NAME}:${IGNITION_VERSION_79}-edge",
"${BASE_IMAGE_NAME}:7.9-edge",
]
}
# Ignition 8.1 Build Targets
group "8_1" {
targets = [
"8_1-full",
"8_1-slim"
]
}
target "8_1-full" {
inherits = ["8_1-base"]
args = {
BUILD_EDITION = "STABLE"
}
cache-to = ["type=registry,ref=${BASE_IMAGE_NAME}:cache-${IGNITION_VERSION_81}"]
cache-from = ["type=registry,ref=${BASE_IMAGE_NAME}:cache-${IGNITION_VERSION_81}"]
tags = [
"${BASE_IMAGE_NAME}:${IGNITION_VERSION_81}",
"${BASE_IMAGE_NAME}:8.1",
"${BASE_IMAGE_NAME}:latest"
]
}
target "8_1-slim" {
inherits = ["8_1-base"]
args = {
ZIP_EXCLUSION_RESOURCE_LIST = "designerlauncher,perspectiveworkstation,visionclientlauncher"
ZIP_EXCLUSION_ARCHITECTURE_LIST = "mac,linux64,win64"
SKIP_JRE_EXTRACT = "true"
}
cache-to = ["type=registry,ref=${BASE_IMAGE_NAME}:cache-${IGNITION_VERSION_81}-slim"]
cache-from = ["type=registry,ref=${BASE_IMAGE_NAME}:cache-${IGNITION_VERSION_81}-slim"]
tags = [
"${BASE_IMAGE_NAME}:${IGNITION_VERSION_81}-slim",
"${BASE_IMAGE_NAME}:8.1-slim",
"${BASE_IMAGE_NAME}:latest-slim"
]
}