-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
130 lines (120 loc) · 3.05 KB
/
docker-bake.hcl
File metadata and controls
130 lines (120 loc) · 3.05 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
variable "PUSH_REGISTRY" {
default = "docker-push.acn.fr"
}
variable "REGISTRY" {
default = "docker.acn.fr"
}
variable "REPO" {
default = "openspp/openspp"
}
variable "IMAGE_NAME" {
default = "${REGISTRY}/${REPO}"
}
variable "PUSH_IMAGE_NAME" {
default = "${PUSH_REGISTRY}/${REPO}"
}
variable "IMAGE_TAG" {
default = "daily"
}
group "default" {
targets = [
# "openspp-debian-bookworm-slim",
# "openspp-debian-trixie-slim",
"openspp-ubuntu-24-04",
# "openspp-python-3-14-slim-bookworm",
# "openspp-python-3-13-slim-bookworm",
# "openspp-python-3-12-slim-bookworm"
]
}
target "common" {
args = {
BUILD_DATE = "$(date -u +\"%Y-%m-%dT%H:%M:%SZ\")"
DEBIAN_FRONTEND = "noninteractive"
GID = "1001"
OPENSPP_VERSION = "17.0.1-daily+odoo17.0-1"
PYTHONUNBUFFERED = "1"
PYTHONDONTWRITEBYTECODE = "1"
TARGETARCH = "amd64"
UID = "1001"
VCS_REF = "master"
OPENSPP_LEFT_TO_RIGHT_LANGUAGE_SUPPORT = "false"
}
}
target "openspp-debian-bookworm-slim" {
inherits = ["common"]
context = "."
dockerfile = "Dockerfile"
tags = [
"${IMAGE_NAME}:debian-bookworm-slim-${IMAGE_TAG}",
"${PUSH_IMAGE_NAME}:debian-bookworm-slim-${IMAGE_TAG}"
]
args = {
BASE_IMAGE = "debian:bookworm-slim"
}
platforms = ["linux/amd64"]
}
target "openspp-debian-trixie-slim" {
inherits = ["common"]
context = "."
dockerfile = "Dockerfile"
tags = [
"${IMAGE_NAME}:debian-trixie-slim-${IMAGE_TAG}",
"${PUSH_IMAGE_NAME}:debian-trixie-slim-${IMAGE_TAG}"
]
args = {
BASE_IMAGE = "debian:trixie-slim"
}
platforms = ["linux/amd64"]
}
target "openspp-ubuntu-24-04" {
inherits = ["common"]
context = "."
dockerfile = "Dockerfile"
tags = [
"${IMAGE_NAME}:ubuntu-24.04-${IMAGE_TAG}",
"${PUSH_IMAGE_NAME}:ubuntu-24.04-${IMAGE_TAG}"
]
args = {
BASE_IMAGE = "ubuntu:24.04"
}
platforms = ["linux/amd64"]
}
target "openspp-python-3-14-slim-bookworm" {
inherits = ["common"]
context = "."
dockerfile = "Dockerfile"
tags = [
"${IMAGE_NAME}:python-3-14-slim-bookworm-${IMAGE_TAG}",
"${PUSH_IMAGE_NAME}:python-3-14-slim-bookworm-${IMAGE_TAG}"
]
args = {
BASE_IMAGE = "python:3.14-slim-bookworm"
}
platforms = ["linux/amd64"]
}
target "openspp-python-3-13-slim-bookworm" {
inherits = ["common"]
context = "."
dockerfile = "Dockerfile"
tags = [
"${IMAGE_NAME}:python-3-13-slim-bookworm-${IMAGE_TAG}",
"${PUSH_IMAGE_NAME}:python-3-13-slim-bookworm-${IMAGE_TAG}"
]
args = {
BASE_IMAGE = "python:3.13-slim-bookworm"
}
platforms = ["linux/amd64"]
}
target "openspp-python-3-12-slim-bookworm" {
inherits = ["common"]
context = "."
dockerfile = "Dockerfile"
tags = [
"${IMAGE_NAME}:python-3-12-slim-bookworm-${IMAGE_TAG}",
"${PUSH_IMAGE_NAME}:python-3-12-slim-bookworm-${IMAGE_TAG}"
]
args = {
BASE_IMAGE = "python:3.12-slim-bookworm"
}
platforms = ["linux/amd64"]
}