commit 37a61083cf56ec3f11da4b236427cc6cf343bb7167c960c8942a648f1a95592a Author: Vasily Ulyanov Date: Fri Jul 22 13:03:12 2022 +0000 Accepting request 990687 from home:vulyanov:branches:Virtualization - Initial container for virt-exportserver OBS-URL: https://build.opensuse.org/request/show/990687 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-exportserver-container?expand=0&rev=1 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..e804a15 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +# Defines the tag for OBS and build script builds: +#!BuildTag: %%TAGPREFIX%%/virt-exportserver:%%PKG_VERSION%% +#!BuildTag: %%TAGPREFIX%%/virt-exportserver:%%PKG_VERSION%%.%RELEASE% +#!BuildTag: %%TAGPREFIX%%/virt-exportserver:%%PKG_VERSION%%-%%PKG_RELEASE%% + +#!ExclusiveArch: x86_64 aarch64 + +# virt-exportserver container image +# KUBEVIRTFROM defined in prjconf, e.g. +# BuildFlags: dockerarg:KUBEVIRTFROM=opensuse/tumbleweed +ARG KUBEVIRTFROM +FROM $KUBEVIRTFROM + +# labelprefix=%%LABELPREFIX%% +PREFIXEDLABEL org.opencontainers.image.title="kubevirt virt-exportserver container" +PREFIXEDLABEL org.opencontainers.image.description="HTTP server for the VirtualMachineExport resources" +PREFIXEDLABEL org.opencontainers.image.created="%BUILDTIME%" +PREFIXEDLABEL org.opencontainers.image.version="%%PKG_VERSION%%.%RELEASE%" +PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%" +PREFIXEDLABEL org.opensuse.reference="%%REGISTRY%%/%%TAGPREFIX%%/virt-exportserver:%%PKG_VERSION%%.%RELEASE%" + +RUN zypper -n install kubevirt-virt-exportserver shadow tar && \ + zypper clean -a && \ + useradd -u 1001 --create-home -s /bin/bash virt-exportserver +USER 1001 +ENTRYPOINT [ "/usr/bin/virt-exportserver" ] diff --git a/_service b/_service new file mode 100644 index 0000000..f933025 --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + + + Dockerfile + PKG_VERSION + PKG_RELEASE + REGISTRY + TAGPREFIX + LABELPREFIX + pkg=kubevirt-virt-exportserver source /usr/lib/obs/service/kubevirt_containers_meta + 1 + + + diff --git a/virt-exportserver-container.changes b/virt-exportserver-container.changes new file mode 100644 index 0000000..a98ed57 --- /dev/null +++ b/virt-exportserver-container.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Jul 21 12:34:40 UTC 2022 - Vasily Ulyanov + +- Initial container for virt-exportserver