From 78c1a6f08a56e03fc4c7f58fa5c9f6e8e7860d78513ad1791b6996f9bfcf7845 Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Wed, 17 Mar 2021 13:42:52 +0000 Subject: [PATCH] Accepting request 879579 from home:vulyanov:branches:Virtualization - Add placeholder vars to be replaced during build - Fix mixed tabs and spaces OBS-URL: https://build.opensuse.org/request/show/879579 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-handler-container?expand=0&rev=4 --- Dockerfile | 12 ++++++------ _service | 9 ++++++++- virt-handler-container.changes | 6 ++++++ 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 73f1c33..d023ca9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Define the tags for OBS and build script builds: -#!BuildTag: opensuse/tumbleweed/virt-handler:%%PKG_VERSION%% -#!BuildTag: opensuse/tumbleweed/virt-handler:%%PKG_VERSION%%.%RELEASE% +#!BuildTag: %%TAGPREFIX%%/virt-handler:%%PKG_VERSION%% +#!BuildTag: %%TAGPREFIX%%/virt-handler:%%PKG_VERSION%%.%RELEASE% # virt-handler container image # KUBEVIRTFROM defined in prjconf, e.g. @@ -8,20 +8,20 @@ ARG KUBEVIRTFROM FROM $KUBEVIRTFROM -# labelprefix=org.opensuse.kubevirt +# labelprefix=%%LABELPREFIX%% PREFIXEDLABEL org.opencontainers.image.title="kubevirt virt-handler container" PREFIXEDLABEL org.opencontainers.image.description="Virtualization handler for kubevirt" PREFIXEDLABEL org.opencontainers.image.created="%BUILDTIME%" PREFIXEDLABEL org.opencontainers.image.version="%%PKG_VERSION%%.%RELEASE%" PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%" -PREFIXEDLABEL org.opensuse.reference="opensuse/tumbleweed/virt-handler:%%PKG_VERSION%%.%RELEASE%" +PREFIXEDLABEL org.opensuse.reference="%%TAGPREFIX%%/virt-handler:%%PKG_VERSION%%.%RELEASE%" RUN zypper update -y && \ zypper install -y \ iproute2 \ - iptables \ + iptables \ libvirt-client \ - kubevirt-container-disk \ + kubevirt-container-disk \ kubevirt-virt-handler ENTRYPOINT [ "/usr/bin/virt-handler" ] diff --git a/_service b/_service index bc7b072..e8b1a9a 100644 --- a/_service +++ b/_service @@ -6,5 +6,12 @@ patch kubevirt-virt-handler - + + Dockerfile + TAGPREFIX + LABELPREFIX + source /usr/lib/obs/service/meta/virt-containers-meta + 1 + + diff --git a/virt-handler-container.changes b/virt-handler-container.changes index 6a7ac4e..7b0ce62 100644 --- a/virt-handler-container.changes +++ b/virt-handler-container.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 17 07:05:26 UTC 2021 - Vasily Ulyanov + +- Add placeholder vars to be replaced during build +- Fix mixed tabs and spaces + ------------------------------------------------------------------- Tue Nov 17 23:02:10 UTC 2020 - James Fehlig