From b311a81ee3b87bc0b94ac339c1daeeac3c459d50bc314fa106f5193d9281af9a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 29 Sep 2020 14:02:38 +0000 Subject: [PATCH] - Adjust Dockerfile to conform to "Building Official Container Images" documentation - Install libvirt-client package - Install iptables package - Install kubevirt-container-disk package to get the container-disk binary - Initial container for virt-handler OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-handler-container?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++++++++ .gitignore | 1 + Dockerfile | 24 ++++++++++++++++++++++++ _service | 10 ++++++++++ virt-handler-container.changes | 26 ++++++++++++++++++++++++++ 5 files changed, 84 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..c4b73f7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +# Define the tags for OBS and build script builds: +#!BuildTag: suse/sles/15.2/virt-handler:%%PKG_VERSION%% +#!BuildTag: suse/sles/15.2/virt-handler:%%PKG_VERSION%%.%RELEASE% + +# virt-handler container image +FROM opensuse/tumbleweed + +# labelprefix=com.suse.kubevirt +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="suse/sles/15.2/virt-handler:%%PKG_VERSION%%.%RELEASE%" + +RUN zypper update -y && \ + zypper install -y \ + iproute2 \ + iptables \ + libvirt-client \ + kubevirt-container-disk \ + kubevirt-virt-handler + +ENTRYPOINT [ "/usr/bin/virt-handler" ] diff --git a/_service b/_service new file mode 100644 index 0000000..bc7b072 --- /dev/null +++ b/_service @@ -0,0 +1,10 @@ + + + + Dockerfile + %%PKG_VERSION%% + patch + kubevirt-virt-handler + + + diff --git a/virt-handler-container.changes b/virt-handler-container.changes new file mode 100644 index 0000000..27e6387 --- /dev/null +++ b/virt-handler-container.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +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