2022-04-28 12:31:09 +00:00
# SPDX-License-Identifier: (LGPL-2.1+ AND GPL-2.0+)
#!BuildTag: suse/pcp:5.2.2
#!BuildTag: suse/pcp:latest
#!BuildTag: suse/pcp:5.2.2-%RELEASE%
#!BuildTag: suse/pcp:5.2
#!BuildTag: suse/pcp:5
FROM bci/bci-init:latest
MAINTAINER SUSE LLC (https://www.suse.com/)
# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=com.suse.application.pcp
LABEL org.opencontainers.image.title= "SLE Performance Co-Pilot (pcp) container Container Image"
LABEL org.opencontainers.image.description= "Performance Co-Pilot (pcp) container image based on the SLE Base Container Image. This container image is not supported when using a container runtime other than podman."
LABEL org.opencontainers.image.version= "5.2.2"
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/suse/pcp:5.2.2-%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= "application"
LABEL com.suse.release-stage= "beta"
# endlabelprefix
2022-05-04 08:00:05 +00:00
RUN set -euo pipefail; zypper -n in --no-recommends pcp hostname shadow gettext-runtime util-linux-systemd; zypper -n clean; rm -rf /var/log/*
2022-04-28 12:31:09 +00:00
ENTRYPOINT [ "/usr/bin/container-entrypoint" ]
CMD [ "/usr/lib/systemd/systemd" ]
2022-05-04 08:00:05 +00:00
RUN set -euo pipefail; mkdir -p /usr/share/container-scripts/pcp; mkdir -p /etc/sysconfig
2022-04-28 12:31:09 +00:00
COPY container-entrypoint /usr/bin/
2022-05-04 08:00:05 +00:00
RUN set -euo pipefail; chmod +x /usr/bin/container-entrypoint
2022-04-28 12:31:09 +00:00
COPY pmproxy.conf.template 10-host_mount.conf.template /usr/share/container-scripts/pcp/
COPY pmcd pmlogger /etc/sysconfig/
# This can be removed after the pcp dependency on sysconfig is removed
2022-05-04 08:00:05 +00:00
RUN set -euo pipefail; systemctl disable wicked wickedd
2022-04-28 12:31:09 +00:00
VOLUME [ "/var/log/pcp/pmlogger" ]
EXPOSE 44321 44322 44323