2022-04-27 14:17:47 +02:00
# SPDX-License-Identifier: MIT
#!BuildTag: bci/bci-init:%OS_VERSION_ID_SP%
#!BuildTag: bci/bci-init:%OS_VERSION_ID_SP%.%RELEASE%
2022-04-27 15:07:23 +02:00
#!BuildTag: bci/bci-init:latest
2022-04-27 14:17:47 +02:00
FROM opensuse/tumbleweed:latest
MAINTAINER SUSE LLC (https://www.suse.com/)
# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=com.suse.bci.init
LABEL org.opencontainers.image.title= "SLE BCI Init Container Image"
LABEL org.opencontainers.image.description= "Systemd environment for containers based on the SLE Base Container Image. This container is not supported when using container runtime other than podman."
LABEL org.opencontainers.image.version= "%OS_VERSION_ID_SP%.%RELEASE%"
LABEL org.opencontainers.image.url= "https://www.suse.com/products/server/"
LABEL org.opencontainers.image.created= "%BUILDTIME%"
LABEL org.opencontainers.image.vendor= "SUSE LLC"
LABEL org.opensuse.reference= "registry.suse.com/bci/bci-init:%OS_VERSION_ID_SP%.%RELEASE%"
LABEL org.openbuildservice.disturl= "%DISTURL%"
LABEL com.suse.supportlevel= "techpreview"
LABEL com.suse.eula= "sle-bci"
LABEL com.suse.lifecycle-url= "https://www.suse.com/lifecycle"
LABEL com.suse.image-type= "sle-bci"
LABEL com.suse.release-stage= "beta"
# endlabelprefix
LABEL usage = "This container should only be used to build containers for daemons. Add your packages and enable services using systemctl."
2022-05-04 09:54:10 +02:00
RUN set -euo pipefail; zypper -n in --no-recommends systemd gzip; zypper -n clean; rm -rf /var/log/*
2022-04-27 14:17:47 +02:00
CMD [ "/usr/lib/systemd/systemd" ]
2022-06-15 13:25:41 +02:00
HEALTHCHECK --interval=5s --timeout=5s --retries=5 CMD [ "/usr/bin/systemctl" , "is-active" , "multi-user.target" ]