- Add LABEL with support level

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-exportproxy-container?expand=0&rev=9
This commit is contained in:
Vasily Ulyanov 2024-10-24 06:37:38 +00:00 committed by Git OBS Bridge
commit 0dd6f4248a
5 changed files with 97 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

33
Dockerfile Normal file
View File

@ -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" ]

16
_service Normal file
View File

@ -0,0 +1,16 @@
<services>
<service mode="buildtime" name="kiwi_metainfo_helper"/>
<service mode="buildtime" name="kubevirt_containers_meta"/>
<service mode="buildtime" name="replace_using_env">
<param name="file">Dockerfile</param>
<param name="var">PKG_VERSION</param>
<param name="var">PKG_RELEASE</param>
<param name="var">REGISTRY</param>
<param name="var">TAGPREFIX</param>
<param name="var">LABELPREFIX</param>
<param name="var">SUPPORT_LEVEL</param>
<param name="eval">pkg=kubevirt-virt-exportproxy source /usr/lib/obs/service/kubevirt_containers_meta</param>
<param name="verbose">1</param>
</service>
<service mode="buildtime" name="docker_label_helper"/>
</services>

View File

@ -0,0 +1,24 @@
-------------------------------------------------------------------
Tue Oct 15 05:50:28 UTC 2024 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Add LABEL with support level
-------------------------------------------------------------------
Wed May 22 08:12:59 UTC 2024 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Add LABEL with source URL
-------------------------------------------------------------------
Mon Oct 23 12:26:46 UTC 2023 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Add license header
-------------------------------------------------------------------
Thu Aug 4 07:26:01 UTC 2022 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Use standard LABEL directive to add mandatory labels
-------------------------------------------------------------------
Thu Jul 21 12:19:31 UTC 2022 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Initial container for virt-exportproxy