From 0dd6f4248ae24b69d3c0f3962088c39984f83de45d9daf5bc35529d0572a271c Mon Sep 17 00:00:00 2001 From: Vasily Ulyanov Date: Thu, 24 Oct 2024 06:37:38 +0000 Subject: [PATCH] - Add LABEL with support level OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-exportproxy-container?expand=0&rev=9 --- .gitattributes | 23 +++++++++++++++++++++ .gitignore | 1 + Dockerfile | 33 ++++++++++++++++++++++++++++++ _service | 16 +++++++++++++++ virt-exportproxy-container.changes | 24 ++++++++++++++++++++++ 5 files changed, 97 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 _service create mode 100644 virt-exportproxy-container.changes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dacabdc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +# SPDX-License-Identifier: Apache-2.0 + +# Define the tags for OBS and build script builds: +#!BuildTag: %%TAGPREFIX%%/virt-exportproxy:%%PKG_VERSION%% +#!BuildTag: %%TAGPREFIX%%/virt-exportproxy:%%PKG_VERSION%%.%RELEASE% +#!BuildTag: %%TAGPREFIX%%/virt-exportproxy:%%PKG_VERSION%%-%%PKG_RELEASE%% + +#!ExclusiveArch: x86_64 aarch64 + +# virt-exportproxy container image +# KUBEVIRTFROM defined in prjconf, e.g. +# BuildFlags: dockerarg:KUBEVIRTFROM=opensuse/tumbleweed +ARG KUBEVIRTFROM +FROM $KUBEVIRTFROM + +# Mandatory labels for the build service: +# https://en.opensuse.org/Building_derived_containers +# labelprefix=%%LABELPREFIX%% +LABEL org.opencontainers.image.title="kubevirt virt-exportproxy container" +LABEL org.opencontainers.image.description="Export proxy for the VirtualMachineExport resources" +LABEL org.opencontainers.image.created="%BUILDTIME%" +LABEL org.opencontainers.image.version="%%PKG_VERSION%%.%RELEASE%" +LABEL org.opencontainers.image.source="%SOURCEURL%" +LABEL org.openbuildservice.disturl="%DISTURL%" +LABEL org.opensuse.reference="%%REGISTRY%%/%%TAGPREFIX%%/virt-exportproxy:%%PKG_VERSION%%.%RELEASE%" +LABEL com.suse.supportlevel="%%SUPPORT_LEVEL%%" +# endlabelprefix + +RUN zypper -n install kubevirt-virt-exportproxy shadow && \ + zypper clean -a && \ + useradd -u 1001 --create-home -s /bin/bash virt-exportproxy +USER 1001 +ENTRYPOINT [ "/usr/bin/virt-exportproxy" ] diff --git a/_service b/_service new file mode 100644 index 0000000..c3e5924 --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + + + Dockerfile + PKG_VERSION + PKG_RELEASE + REGISTRY + TAGPREFIX + LABELPREFIX + SUPPORT_LEVEL + pkg=kubevirt-virt-exportproxy source /usr/lib/obs/service/kubevirt_containers_meta + 1 + + + diff --git a/virt-exportproxy-container.changes b/virt-exportproxy-container.changes new file mode 100644 index 0000000..4be9196 --- /dev/null +++ b/virt-exportproxy-container.changes @@ -0,0 +1,24 @@ +------------------------------------------------------------------- +Tue Oct 15 05:50:28 UTC 2024 - Vasily Ulyanov + +- Add LABEL with support level + +------------------------------------------------------------------- +Wed May 22 08:12:59 UTC 2024 - Vasily Ulyanov + +- Add LABEL with source URL + +------------------------------------------------------------------- +Mon Oct 23 12:26:46 UTC 2023 - Vasily Ulyanov + +- Add license header + +------------------------------------------------------------------- +Thu Aug 4 07:26:01 UTC 2022 - Vasily Ulyanov + +- Use standard LABEL directive to add mandatory labels + +------------------------------------------------------------------- +Thu Jul 21 12:19:31 UTC 2022 - Vasily Ulyanov + +- Initial container for virt-exportproxy