From 69f5181af4b1b4587f045a92db4fdb1fe1db18f63feeb2d40860f3296de3823e Mon Sep 17 00:00:00 2001 From: Vasily Ulyanov Date: Thu, 24 Oct 2024 06:37:32 +0000 Subject: [PATCH] - Add LABEL with support level OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-handler-container?expand=0&rev=38 --- .gitattributes | 23 ++++++ .gitignore | 1 + Dockerfile | 44 +++++++++++ _service | 16 ++++ virt-handler-container.changes | 140 +++++++++++++++++++++++++++++++++ 5 files changed, 224 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 _service create mode 100644 virt-handler-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..6449c5a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: Apache-2.0 + +# Define the tags for OBS and build script builds: +#!BuildTag: %%TAGPREFIX%%/virt-handler:%%PKG_VERSION%% +#!BuildTag: %%TAGPREFIX%%/virt-handler:%%PKG_VERSION%%.%RELEASE% +#!BuildTag: %%TAGPREFIX%%/virt-handler:%%PKG_VERSION%%-%%PKG_RELEASE%% + +#!ExclusiveArch: x86_64 aarch64 + +# virt-handler 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-handler container" +LABEL org.opencontainers.image.description="Virtualization handler for kubevirt" +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-handler:%%PKG_VERSION%%.%RELEASE%" +LABEL com.suse.supportlevel="%%SUPPORT_LEVEL%%" +# endlabelprefix + +RUN zypper -n install \ + curl \ + iproute2 \ + kubevirt-container-disk \ + kubevirt-virt-handler \ + nftables \ + qemu-img \ + system-user-qemu \ + tar \ + util-linux-systemd && \ + zypper clean -a + +RUN cp -f /usr/share/kube-virt/virt-handler/nsswitch.conf /etc/ && \ + cp -f /usr/share/kube-virt/virt-handler/virt_launcher.cil / + +ENTRYPOINT [ "/usr/bin/virt-handler" ] diff --git a/_service b/_service new file mode 100644 index 0000000..e48dbf8 --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + + + Dockerfile + PKG_VERSION + PKG_RELEASE + REGISTRY + TAGPREFIX + LABELPREFIX + SUPPORT_LEVEL + pkg=kubevirt-virt-handler source /usr/lib/obs/service/kubevirt_containers_meta + 1 + + + diff --git a/virt-handler-container.changes b/virt-handler-container.changes new file mode 100644 index 0000000..88a8d9e --- /dev/null +++ b/virt-handler-container.changes @@ -0,0 +1,140 @@ +------------------------------------------------------------------- +Tue Oct 15 05:50:28 UTC 2024 - Vasily Ulyanov + +- Add LABEL with support level + +------------------------------------------------------------------- +Wed Sep 18 06:49:55 UTC 2024 - Vasily Ulyanov + +- Drop packages: iptables and lsscsi + +------------------------------------------------------------------- +Wed May 22 08:12:59 UTC 2024 - Vasily Ulyanov + +- Add LABEL with source URL + +------------------------------------------------------------------- +Mon Oct 23 12:27:42 UTC 2023 - Vasily Ulyanov + +- Add license header + +------------------------------------------------------------------- +Thu Jun 15 16:59:17 UTC 2023 - Vasily Ulyanov + +- Install qemu-img explicitly instead of qemu-tools + +------------------------------------------------------------------- +Thu Mar 2 07:53:22 UTC 2023 - Vasily Ulyanov + +- Update the container image for KubeVirt v0.59.0 + +------------------------------------------------------------------- +Thu Sep 22 18:44:39 UTC 2022 - Caleb Crane + +- Fix container build due to symlink issues with SP4/SP5 base images + +------------------------------------------------------------------- +Thu Aug 4 07:27:52 UTC 2022 - Vasily Ulyanov + +- Use standard LABEL directive to add mandatory labels + +------------------------------------------------------------------- +Wed Apr 27 12:45:21 UTC 2022 - Vasily Ulyanov + +- Drop unused package libvirt-client + +------------------------------------------------------------------- +Thu Jan 20 10:10:32 UTC 2022 - Vasily Ulyanov + +- Symlink nsswitch.conf and nft rules to proper locations + +------------------------------------------------------------------- +Wed Jan 19 12:38:18 UTC 2022 - Vasily Ulyanov + +- Install nftables to manage network rules +- Install tar to allow kubectl cp ... + +------------------------------------------------------------------- +Wed Dec 8 15:08:44 UTC 2021 - Guillaume GARDET + +- Enable build only on aarch64 and x86_64 + +------------------------------------------------------------------- +Wed Dec 1 07:21:42 UTC 2021 - Vasily Ulyanov + +- Install lsscsi (needed for testing) + +------------------------------------------------------------------- +Fri Nov 26 05:45:28 UTC 2021 - Vasily Ulyanov + +- Install curl (needed for testing) + +------------------------------------------------------------------- +Mon Jul 12 14:39:09 UTC 2021 - Vasily Ulyanov + +- Install util-linux-systemd (provides findmnt) + +------------------------------------------------------------------- +Fri Jun 4 12:20:51 UTC 2021 - Fabian Vogt + +- Include the registry in org.opensuse.reference + +------------------------------------------------------------------- +Wed Apr 28 11:46:13 UTC 2021 - Vasily Ulyanov + +- Tag the image with - + +------------------------------------------------------------------- +Sun Apr 18 07:54:24 UTC 2021 - Vasily Ulyanov + +- Run zypper clean after installation + +------------------------------------------------------------------- +Sat Mar 20 10:06:27 UTC 2021 - Vasily Ulyanov + +- Install qemu-tools (provides qemu-img) +- Explicitly install dbus-1 (to suppress "have choice...") +- Sort installed packages alphabetically + +------------------------------------------------------------------- +Fri Mar 19 09:26:01 UTC 2021 - Vasily Ulyanov + +- Setup qemu system user bsc#1183749 + +------------------------------------------------------------------- +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 + +- use ARG for defining base image + +------------------------------------------------------------------- +Tue Sep 15 03:18:15 UTC 2020 - James Fehlig + +- Adjust Dockerfile to conform to "Building Official Container + Images" documentation + +------------------------------------------------------------------- +Fri Jul 24 21:01:39 UTC 2020 - James Fehlig + +- Install libvirt-client package + +------------------------------------------------------------------- +Fri Jul 24 14:48:07 UTC 2020 - James Fehlig + +- Install iptables package + +------------------------------------------------------------------- +Wed Jul 22 19:56:06 UTC 2020 - James Fehlig + +- Install kubevirt-container-disk package to get the container-disk + binary + +------------------------------------------------------------------- +Fri Jun 26 14:51:15 UTC 2020 - James Fehlig + +- Initial container for virt-handler