pcp-image/Dockerfile

46 lines
1.9 KiB
Docker
Raw Normal View History

# 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
RUN set -euo pipefail && zypper -n in --no-recommends pcp hostname shadow gettext-runtime util-linux-systemd && zypper -n clean && rm -rf /var/log/*
ENTRYPOINT ["/usr/bin/container-entrypoint"]
CMD ["/usr/lib/systemd/systemd"]
RUN mkdir -p /usr/share/container-scripts/pcp && mkdir -p /etc/sysconfig
COPY container-entrypoint /usr/bin/
RUN chmod +x /usr/bin/container-entrypoint
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
RUN systemctl disable wicked wickedd
VOLUME ["/var/log/pcp/pmlogger"]
EXPOSE 44321 44322 44323