[info=1315750d6084c072f95b722ba2c97e8f]

OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/pcp-image?expand=0&rev=5
This commit is contained in:
Dan Čermák 2022-11-23 09:32:54 +00:00 committed by Git OBS Bridge
parent 8aa2476867
commit 484d494b4a
2 changed files with 28 additions and 14 deletions

View File

@ -1,10 +1,11 @@
# SPDX-License-Identifier: (LGPL-2.1+ AND GPL-2.0+)
#!BuildTag: opensuse/pcp:5.2.2
#!BuildTag: opensuse/pcp:%%pcp_patch%%
#!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
#!BuildTag: opensuse/pcp:%%pcp_patch%%-%RELEASE%
#!BuildTag: opensuse/pcp:%%pcp_minor%%
#!BuildTag: opensuse/pcp:%%pcp_major%%
FROM opensuse/bci/bci-init:latest
MAINTAINER openSUSE (https://www.opensuse.org/)
@ -12,22 +13,21 @@ MAINTAINER openSUSE (https://www.opensuse.org/)
# 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.version="%%pcp_patch%%"
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.opensuse.reference="registry.opensuse.org/opensuse/pcp:%%pcp_patch%%-%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"]
VOLUME /var/log/pcp/pmlogger
EXPOSE 44321 44322 44323
RUN set -euo pipefail; mkdir -p /usr/share/container-scripts/pcp; mkdir -p /etc/sysconfig
COPY container-entrypoint healthcheck /usr/local/bin/
@ -39,6 +39,3 @@ COPY pmcd pmlogger /etc/sysconfig/
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

View File

@ -1,5 +1,22 @@
<services>
<service mode="buildtime" name="kiwi_metainfo_helper"/>
<service mode="buildtime" name="docker_label_helper"/>
<service name="replace_using_package_version" mode="buildtime">
<param name="file">Dockerfile</param>
<param name="regex">%%pcp_major%%</param>
<param name="package">pcp</param>
<param name="parse-version">major</param>
</service>
<service name="replace_using_package_version" mode="buildtime">
<param name="file">Dockerfile</param>
<param name="regex">%%pcp_minor%%</param>
<param name="package">pcp</param>
<param name="parse-version">minor</param>
</service>
<service name="replace_using_package_version" mode="buildtime">
<param name="file">Dockerfile</param>
<param name="regex">%%pcp_patch%%</param>
<param name="package">pcp</param>
<param name="parse-version">patch</param>
</service>
</services>