From 4631555dfc82770a79cdb9c4902cb37c947ec87f39aafcd14627db85802b3277 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 29 Sep 2020 15:10:59 +0000 Subject: [PATCH] - Adjust Dockerfile to conform to "Building Official Container Images" documentation - Initial container for virt-operator OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-operator-container?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++++++++ .gitignore | 1 + Dockerfile | 22 ++++++++++++++++++++++ _service | 10 ++++++++++ virt-operator-container.changes | 10 ++++++++++ 5 files changed, 66 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 _service create mode 100644 virt-operator-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..ff29ee8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +# Define the tags for OBS and build script builds: +#!BuildTag: suse/sles/15.2/virt-operator:%%PKG_VERSION%% +#!BuildTag: suse/sles/15.2/virt-operator:%%PKG_VERSION%%.%RELEASE% + +# virt-operator container image +FROM opensuse/tumbleweed + +# labelprefix=com.suse.kubevirt +PREFIXEDLABEL org.opencontainers.image.title="kubevirt virt-operator container" +PREFIXEDLABEL org.opencontainers.image.description="Virtualization operator 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-operator:%%PKG_VERSION%%.%RELEASE%" + +RUN zypper update -y && \ + zypper install -y \ + kubevirt-virt-operator \ + shadow && \ + useradd --system --no-create-home -u 1001 virt-operator +USER 1001 +ENTRYPOINT [ "/usr/bin/virt-operator" ] diff --git a/_service b/_service new file mode 100644 index 0000000..e3e7cce --- /dev/null +++ b/_service @@ -0,0 +1,10 @@ + + + + Dockerfile + %%PKG_VERSION%% + patch + kubevirt-virt-operator + + + diff --git a/virt-operator-container.changes b/virt-operator-container.changes new file mode 100644 index 0000000..de1f27d --- /dev/null +++ b/virt-operator-container.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Tue Sep 15 03:24:20 UTC 2020 - James Fehlig + +- Adjust Dockerfile to conform to "Building Official Container + Images" documentation + +------------------------------------------------------------------- +Mon Jun 22 22:26:38 UTC 2020 - James Fehlig + +- Initial container for virt-operator