-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (34 loc) · 2.04 KB
/
Copy pathDockerfile
File metadata and controls
39 lines (34 loc) · 2.04 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
# SPDX-FileCopyrightText: SUSE LLC
# SPDX-License-Identifier: GPL-3.0-or-later
ARG OS_VER=15.7
FROM registry.suse.com/bci/bci-base:${OS_VER}
ARG OS_VER
ARG VERSION
# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=com.suse.trento
LABEL org.opencontainers.image.authors="https://github.com/trento-project/checks/graphs/contributors"
LABEL org.opencontainers.image.title="Trento Checks"
LABEL org.opencontainers.image.description="Checks for Trento to be executed by Wanda. Previously part of Wanda itself"
LABEL org.opencontainers.image.documentation="https://www.trento-project.io/docs/checks/README.html"
LABEL org.opencontainers.image.version="${VERSION}"
LABEL org.opencontainers.image.url="https://github.com/trento-project/checks"
# LABEL org.opencontainers.image.created="" # Set by GHA, no need to set here
LABEL org.opencontainers.image.source="https://github.com/trento-project/checks"
LABEL org.opencontainers.image.ref.name="${OS_VER}-${VERSION}"
LABEL org.opensuse.reference="registry.suse.com/bci/bci-micro:${OS_VER}"
LABEL org.openbuildservice.disturl="https://github.com/trento-project/checks/pkgs/container/checks"
# endlabelprefix
LABEL org.opencontainers.image.base.name="registry.suse.com/bci/bci-micro:${OS_VER}"
LABEL org.opencontainers.image.base.digest="latest"
LABEL io.artifacthub.package.logo-url="https://www.trento-project.io/images/trento-icon.svg"
LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/trento-project/checks/refs/heads/main/packaging/suse/container/README.md"
# If set to C, LC_ALL takes precedence
ENV LC_ALL=C.UTF-8
# We use the /virtualroot prefix to unify handling in the
# `trento-install-checks` script between our OBS and GHCR images.
COPY checks/* /virtualroot/usr/share/trento/checks/
RUN printf '%s\n' "${VERSION}" > /virtualroot/usr/share/trento/checks/VERSION \
&& chmod 0644 /virtualroot/usr/share/trento/checks/VERSION
# Copy the install script into PATH.
COPY --chmod=755 bin/trento-install-checks /usr/bin/
CMD ["/usr/bin/trento-install-checks"]