- Drop packages: iptables and lsscsi

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-handler-container?expand=0&rev=36
This commit is contained in:
Vasily Ulyanov 2024-09-18 11:37:44 +00:00 committed by Git OBS Bridge
commit a17b8878a7
5 changed files with 217 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

43
Dockerfile Normal file
View File

@ -0,0 +1,43 @@
# 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%"
# 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" ]

15
_service Normal file
View File

@ -0,0 +1,15 @@
<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="eval">pkg=kubevirt-virt-handler 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,135 @@
-------------------------------------------------------------------
Wed Sep 18 06:49:55 UTC 2024 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Drop packages: iptables and lsscsi
-------------------------------------------------------------------
Wed May 22 08:12:59 UTC 2024 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Add LABEL with source URL
-------------------------------------------------------------------
Mon Oct 23 12:27:42 UTC 2023 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Add license header
-------------------------------------------------------------------
Thu Jun 15 16:59:17 UTC 2023 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Install qemu-img explicitly instead of qemu-tools
-------------------------------------------------------------------
Thu Mar 2 07:53:22 UTC 2023 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Update the container image for KubeVirt v0.59.0
-------------------------------------------------------------------
Thu Sep 22 18:44:39 UTC 2022 - Caleb Crane <caleb.crane@suse.com>
- Fix container build due to symlink issues with SP4/SP5 base images
-------------------------------------------------------------------
Thu Aug 4 07:27:52 UTC 2022 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Use standard LABEL directive to add mandatory labels
-------------------------------------------------------------------
Wed Apr 27 12:45:21 UTC 2022 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Drop unused package libvirt-client
-------------------------------------------------------------------
Thu Jan 20 10:10:32 UTC 2022 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Symlink nsswitch.conf and nft rules to proper locations
-------------------------------------------------------------------
Wed Jan 19 12:38:18 UTC 2022 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Install nftables to manage network rules
- Install tar to allow kubectl cp ...
-------------------------------------------------------------------
Wed Dec 8 15:08:44 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Enable build only on aarch64 and x86_64
-------------------------------------------------------------------
Wed Dec 1 07:21:42 UTC 2021 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Install lsscsi (needed for testing)
-------------------------------------------------------------------
Fri Nov 26 05:45:28 UTC 2021 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Install curl (needed for testing)
-------------------------------------------------------------------
Mon Jul 12 14:39:09 UTC 2021 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Install util-linux-systemd (provides findmnt)
-------------------------------------------------------------------
Fri Jun 4 12:20:51 UTC 2021 - Fabian Vogt <fvogt@suse.com>
- Include the registry in org.opensuse.reference
-------------------------------------------------------------------
Wed Apr 28 11:46:13 UTC 2021 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Tag the image with <version>-<release>
-------------------------------------------------------------------
Sun Apr 18 07:54:24 UTC 2021 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Run zypper clean after installation
-------------------------------------------------------------------
Sat Mar 20 10:06:27 UTC 2021 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- 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 <vasily.ulyanov@suse.com>
- Setup qemu system user bsc#1183749
-------------------------------------------------------------------
Wed Mar 17 07:05:26 UTC 2021 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Add placeholder vars to be replaced during build
- Fix mixed tabs and spaces
-------------------------------------------------------------------
Tue Nov 17 23:02:10 UTC 2020 - James Fehlig <jfehlig@suse.com>
- use ARG for defining base image
-------------------------------------------------------------------
Tue Sep 15 03:18:15 UTC 2020 - James Fehlig <jfehlig@suse.com>
- Adjust Dockerfile to conform to "Building Official Container
Images" documentation
-------------------------------------------------------------------
Fri Jul 24 21:01:39 UTC 2020 - James Fehlig <jfehlig@suse.com>
- Install libvirt-client package
-------------------------------------------------------------------
Fri Jul 24 14:48:07 UTC 2020 - James Fehlig <jfehlig@suse.com>
- Install iptables package
-------------------------------------------------------------------
Wed Jul 22 19:56:06 UTC 2020 - James Fehlig <jfehlig@suse.com>
- Install kubevirt-container-disk package to get the container-disk
binary
-------------------------------------------------------------------
Fri Jun 26 14:51:15 UTC 2020 - James Fehlig <jfehlig@suse.com>
- Initial container for virt-handler