2024-10-21 15:17:49 +02:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2024-12-11 15:20:34 +01:00
|
|
|
#!BuildTag: %%IMG_PREFIX%%upgrade-controller:0.1.1
|
|
|
|
#!BuildTag: %%IMG_PREFIX%%upgrade-controller:0.1.1-%RELEASE%
|
2024-10-21 15:17:49 +02:00
|
|
|
#!BuildVersion: 15.6
|
|
|
|
ARG SLE_VERSION
|
|
|
|
FROM registry.suse.com/bci/bci-micro:$SLE_VERSION AS micro
|
|
|
|
|
|
|
|
FROM registry.suse.com/bci/bci-base:$SLE_VERSION AS base
|
|
|
|
COPY --from=micro / /installroot/
|
|
|
|
RUN zypper --installroot /installroot --non-interactive install --no-recommends upgrade-controller; zypper -n clean; rm -rf /var/log/*
|
|
|
|
|
|
|
|
FROM micro AS final
|
|
|
|
|
|
|
|
# Define labels according to https://en.opensuse.org/Building_derived_containers
|
|
|
|
# labelprefix=com.suse.application.upgrade-controller
|
|
|
|
LABEL org.opencontainers.image.authors="SUSE LLC (https://www.suse.com/)"
|
|
|
|
LABEL org.opencontainers.image.title="SLE Edge Upgrade Controller Container Image"
|
|
|
|
LABEL org.opencontainers.image.description="Edge Update Controller Image based on the SLE Base Container Image."
|
2024-12-11 15:20:34 +01:00
|
|
|
LABEL org.opencontainers.image.version="0.1.1"
|
2024-10-21 15:17:49 +02:00
|
|
|
LABEL org.opencontainers.image.url="https://www.suse.com/solutions/edge-computing/"
|
|
|
|
LABEL org.opencontainers.image.created="%BUILDTIME%"
|
|
|
|
LABEL org.opencontainers.image.vendor="SUSE LLC"
|
2024-12-11 15:20:34 +01:00
|
|
|
LABEL org.opensuse.reference="%%IMG_REPO%%/%%IMG_PREFIX%%upgrade-controller:0.1.1-%RELEASE%"
|
2024-10-21 15:17:49 +02:00
|
|
|
LABEL org.openbuildservice.disturl="%DISTURL%"
|
2024-11-07 14:57:22 +01:00
|
|
|
LABEL com.suse.supportlevel="%%SUPPORT_LEVEL%%"
|
2024-10-21 15:17:49 +02:00
|
|
|
LABEL com.suse.eula="SUSE Combined EULA February 2024"
|
|
|
|
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle"
|
|
|
|
LABEL com.suse.image-type="application"
|
|
|
|
LABEL com.suse.release-stage="released"
|
|
|
|
# endlabelprefix
|
|
|
|
|
|
|
|
COPY --from=base /installroot /
|
|
|
|
RUN mv /usr/bin/upgrade-controller /manager
|
|
|
|
# Use uid of nonroot user (65532) because kubernetes expects numeric user when applying pod security policies
|
|
|
|
USER 65532
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/manager" ]
|
|
|
|
|