37 lines
1.8 KiB
Docker
37 lines
1.8 KiB
Docker
# SPDX-License-Identifier: MIT
|
|
#!BuildTag: alp/bci/bci-init:%OS_VERSION_ID_SP%
|
|
#!BuildTag: alp/bci/bci-init:%OS_VERSION_ID_SP%.%RELEASE%
|
|
#!BuildTag: alp/bci/bci-init:latest
|
|
|
|
FROM alp/bci/bci-base:latest
|
|
|
|
MAINTAINER SUSE LLC (https://www.suse.com/)
|
|
|
|
# Define labels according to https://en.opensuse.org/Building_derived_containers
|
|
# labelprefix=com.suse.basalt.bci.init
|
|
LABEL org.opencontainers.image.title="Basalt Project BCI Adaptable Linux Platform Init"
|
|
LABEL org.opencontainers.image.description="Systemd environment for containers based on the SUSE Adaptable Linux Platform (ALP). This container is only supported with podman."
|
|
LABEL org.opencontainers.image.version="%OS_VERSION_ID_SP%.%RELEASE%"
|
|
LABEL org.opencontainers.image.url="https://susealp.io/"
|
|
LABEL org.opencontainers.image.created="%BUILDTIME%"
|
|
LABEL org.opencontainers.image.vendor="SUSE LLC"
|
|
LABEL org.opencontainers.image.source="%SOURCEURL%"
|
|
LABEL org.opensuse.reference="registry.suse.com/alp/bci/bci-init:%OS_VERSION_ID_SP%.%RELEASE%"
|
|
LABEL org.openbuildservice.disturl="%DISTURL%"
|
|
LABEL com.suse.supportlevel="l3"
|
|
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."
|
|
|
|
RUN set -euo pipefail; zypper -n in --no-recommends systemd gzip; zypper -n clean; rm -rf /var/log/*
|
|
CMD ["/usr/lib/systemd/systemd"]
|
|
|
|
RUN mkdir -p /etc/systemd/system.conf.d/ && \
|
|
printf "[Manager]\nLogColor=no" > \
|
|
/etc/systemd/system.conf.d/01-sle-bci-nocolor.conf
|
|
RUN systemctl disable getty@tty1.service
|
|
HEALTHCHECK --interval=5s --timeout=5s --retries=5 CMD ["/usr/bin/systemctl", "is-active", "multi-user.target"]
|