-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-bake.hcl
65 lines (56 loc) · 1.26 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
# https://docs.docker.com/build/bake/
# https://docs.docker.com/build/bake/file-definition
# docker buildx bake --file docker-bake.hcl --builder kafkabuilder --no-cache --pull --load --set *.platform=linux/amd64
# docker buildx bake --file docker-bake.hcl --builder kafkabuilder --no-cache --pull --push
group "default" {
targets = [
"3_5_1-2_12",
"3_5_1-2_13",
"3_6_0-2_12",
"3_6_0-2_13"
]
}
variable "JRE" {
default = "eclipse-temurin:21.0.1_12-jre-jammy"
}
target "base-jre" {
dockerfile = "Dockerfile"
context = "."
platforms = ["linux/amd64", "linux/arm64/v8"]
}
target "3_5_1-2_12" {
inherits = ["base-jre"]
tags = ["moukoublen/kafka:3.5.1-2.12"]
args = {
jre = "${JRE}"
kafka = "3.5.1"
scala = "2.12"
}
}
target "3_5_1-2_13" {
inherits = ["base-jre"]
tags = ["moukoublen/kafka:3.5.1-2.13"]
args = {
jre = "${JRE}"
kafka = "3.5.1"
scala = "2.13"
}
}
target "3_6_0-2_12" {
inherits = ["base-jre"]
tags = ["moukoublen/kafka:3.6.0-2.12"]
args = {
jre = "${JRE}"
kafka = "3.6.0"
scala = "2.12"
}
}
target "3_6_0-2_13" {
inherits = ["base-jre"]
tags = ["moukoublen/kafka:3.6.0-2.13", "moukoublen/kafka:latest"]
args = {
jre = "${JRE}"
kafka = "3.6.0"
scala = "2.13"
}
}