Increase compatibility with openSUSE OBS-URL: https://build.opensuse.org/request/show/989387 OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/pcp-image?expand=0&rev=4
45 lines
2.0 KiB
Docker
45 lines
2.0 KiB
Docker
# SPDX-License-Identifier: (LGPL-2.1+ AND GPL-2.0+)
|
|
#!BuildTag: opensuse/pcp:5.2.2
|
|
#!BuildTag: opensuse/pcp:latest
|
|
#!BuildTag: opensuse/pcp:5.2.2-%RELEASE%
|
|
#!BuildTag: opensuse/pcp:5.2
|
|
#!BuildTag: opensuse/pcp:5
|
|
FROM bci/bci-init:latest
|
|
|
|
MAINTAINER openSUSE (https://www.opensuse.org/)
|
|
|
|
# Define labels according to https://en.opensuse.org/Building_derived_containers
|
|
# labelprefix=org.opensuse.application.pcp
|
|
LABEL org.opencontainers.image.title="openSUSE Tumbleweed Performance Co-Pilot (pcp) 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.opensuse.org"
|
|
LABEL org.opencontainers.image.created="%BUILDTIME%"
|
|
LABEL org.opencontainers.image.vendor="openSUSE Project"
|
|
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/pcp:5.2.2-%RELEASE%"
|
|
LABEL org.openbuildservice.disturl="%DISTURL%"
|
|
|
|
LABEL com.suse.release-stage="released"
|
|
# 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/local/bin/container-entrypoint"]
|
|
CMD ["/usr/lib/systemd/systemd"]
|
|
|
|
RUN set -euo pipefail; mkdir -p /usr/share/container-scripts/pcp; mkdir -p /etc/sysconfig
|
|
COPY container-entrypoint healthcheck /usr/local/bin/
|
|
RUN set -euo pipefail; chmod +x /usr/local/bin/container-entrypoint /usr/local/bin/healthcheck
|
|
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 set -euo pipefail; systemctl disable wicked wickedd
|
|
|
|
HEALTHCHECK --start-period=30s --timeout=20s --interval=10s --retries=3 CMD /usr/local/bin/healthcheck
|
|
|
|
VOLUME ["/var/log/pcp/pmlogger"]
|
|
EXPOSE 44321 44322 44323
|