forked from SlinkyProject/slurm-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
91 lines (78 loc) · 3.55 KB
/
Copy pathdocker-bake.hcl
File metadata and controls
91 lines (78 loc) · 3.55 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
// SPDX-FileCopyrightText: Copyright (C) SchedMD LLC.
// SPDX-License-Identifier: Apache-2.0
################################################################################
variable "REGISTRY" {
default = "ghcr.io/slinkyproject"
}
variable "VERSION" {
default = "0.0.0"
}
function "format_tag" {
params = [registry, stage, version]
result = format("%s:%s", join("/", compact([registry, stage])), join("-", compact([version])))
}
################################################################################
target "_common" {
labels = {
# Ref: https://github.com/opencontainers/image-spec/blob/v1.0/annotations.md
"org.opencontainers.image.authors" = "slinky@schedmd.com"
"org.opencontainers.image.documentation" = "https://github.com/SlinkyProject/slurm-operator"
"org.opencontainers.image.license" = "Apache-2.0"
"org.opencontainers.image.vendor" = "SchedMD LLC."
"org.opencontainers.image.version" = "${VERSION}"
"org.opencontainers.image.source" = "https://github.com/SlinkyProject/slurm-operator"
# Ref: https://docs.redhat.com/en/documentation/red_hat_software_certification/2025/html/red_hat_openshift_software_certification_policy_guide/assembly-requirements-for-container-images_openshift-sw-cert-policy-introduction#con-image-metadata-requirements_openshift-sw-cert-policy-container-images
"vendor" = "SchedMD LLC."
"version" = "${VERSION}"
"release" = "https://github.com/SlinkyProject/slurm-operator"
}
}
target "_multiarch" {
platforms = [
"linux/amd64",
"linux/arm64"
]
}
################################################################################
group "default" {
targets = [
"operator",
"webhook",
]
}
################################################################################
target "operator" {
inherits = ["_common", "_multiarch"]
dockerfile = "Dockerfile"
target = "manager"
labels = {
# Ref: https://github.com/opencontainers/image-spec/blob/v1.0/annotations.md
"org.opencontainers.image.title" = "Slurm Operator"
"org.opencontainers.image.description" = "Kubernetes Operator for Slurm"
# Ref: https://docs.redhat.com/en/documentation/red_hat_software_certification/2025/html/red_hat_openshift_software_certification_policy_guide/assembly-requirements-for-container-images_openshift-sw-cert-policy-introduction#con-image-metadata-requirements_openshift-sw-cert-policy-container-images
"name" = "Slurm Operator"
"summary" = "Kubernetes Operator for Slurm"
"description" = "Kubernetes Operator for Slurm"
}
tags = [
format_tag("${REGISTRY}", "slurm-operator", "${VERSION}"),
]
}
################################################################################
target "webhook" {
inherits = ["_common", "_multiarch"]
dockerfile = "Dockerfile"
target = "webhook"
labels = {
# Ref: https://github.com/opencontainers/image-spec/blob/v1.0/annotations.md
"org.opencontainers.image.title" = "Slurm Operator Webhook"
"org.opencontainers.image.description" = "Kubernetes Operator Webhook for Slurm"
# Ref: https://docs.redhat.com/en/documentation/red_hat_software_certification/2025/html/red_hat_openshift_software_certification_policy_guide/assembly-requirements-for-container-images_openshift-sw-cert-policy-introduction#con-image-metadata-requirements_openshift-sw-cert-policy-container-images
"name" = "Slurm Operator Webhook"
"summary" = "Kubernetes Operator Webhook for Slurm"
"description" = "Kubernetes Operator Webhook for Slurm"
}
tags = [
format_tag("${REGISTRY}", "slurm-operator-webhook", "${VERSION}"),
]
}