commit 3cf1f9f8aa734640fb9857685eff7762320411ed2566d411b4235488a63582ec Author: Dirk Mueller Date: Tue Sep 29 15:10:12 2020 +0000 - Adjust Dockerfile to conform to "Building Official Container Images" documentation - Install kubevirt-container-disk package to get the container-disk binary - Initial container for virt-launcher OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-launcher-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..5f4bdf3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,41 @@ +# Define the tags for OBS and build script builds: +#!BuildTag: suse/sles/15.2/virt-launcher:%%PKG_VERSION%% +#!BuildTag: suse/sles/15.2/virt-launcher:%%PKG_VERSION%%.%RELEASE% + +# virt-launcher container image +FROM opensuse/tumbleweed + +# labelprefix=com.suse.kubevirt +PREFIXEDLABEL org.opencontainers.image.title="kubevirt virt-launcher container" +PREFIXEDLABEL org.opencontainers.image.description="Container to host VM processes 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-launcher:%%PKG_VERSION%%.%RELEASE%" + +RUN zypper update -y && \ + zypper install -y \ + libnettle6 \ + socat \ + qemu-x86 \ + qemu-tools \ + libcap-progs \ + mkisofs \ + nftables \ + iptables \ + augeas \ + augeas-lenses \ + libvirt-daemon-qemu \ + libvirt-client \ + libvirt-daemon-driver-storage-core \ + vim \ + kubevirt-container-disk \ + kubevirt-virt-launcher && \ + mkdir -p /usr/share/kubevirt/virt-launcher + +COPY augconf /augconf + +RUN augtool -f /augconf +RUN cd /var && rm -rf run && ln -s ../run . + +ENTRYPOINT [ "/usr/bin/virt-launcher" ] diff --git a/_service b/_service new file mode 100644 index 0000000..b161459 --- /dev/null +++ b/_service @@ -0,0 +1,10 @@ + + + + Dockerfile + %%PKG_VERSION%% + patch + kubevirt-virt-launcher + + + diff --git a/augconf b/augconf new file mode 100644 index 0000000..61d05c4 --- /dev/null +++ b/augconf @@ -0,0 +1,27 @@ +# Enable unauthenticated tcp +set /files/etc/libvirt/libvirtd.conf/listen_tls 0 +set /files/etc/libvirt/libvirtd.conf/listen_tcp 1 +set /files/etc/libvirt/libvirtd.conf/auth_tcp none + + +# Listen on all interfaces for now +set /files/etc/libvirt/qemu.conf/stdio_handler logd +set /files/etc/libvirt/qemu.conf/spice_listen 0.0.0.0 +set /files/etc/libvirt/qemu.conf/vnc_listen 0.0.0.0 +set /files/etc/libvirt/qemu.conf/vnc_tls 0 +set /files/etc/libvirt/qemu.conf/vnc_sasl 0 + +# Fixate user and group +set /files/etc/libvirt/qemu.conf/user qemu +set /files/etc/libvirt/qemu.conf/group qemu +set /files/etc/libvirt/qemu.conf/dynamic_ownership 1 +set /files/etc/libvirt/qemu.conf/remember_owner 0 + +# Workaround libvirt bug in /dev/ handling +set /files/etc/libvirt/qemu.conf/namespaces + +# Have virtlogd log to stderr +set /files/etc/libvirt/virtlogd.conf/log_outputs 2:stderr + +# Important to save +save diff --git a/virt-launcher-container.changes b/virt-launcher-container.changes new file mode 100644 index 0000000..b756ea6 --- /dev/null +++ b/virt-launcher-container.changes @@ -0,0 +1,16 @@ +------------------------------------------------------------------- +Tue Sep 15 03:21:06 UTC 2020 - James Fehlig + +- Adjust Dockerfile to conform to "Building Official Container + Images" documentation + +------------------------------------------------------------------- +Wed Jul 22 19:59:10 UTC 2020 - James Fehlig + +- Install kubevirt-container-disk package to get the container-disk + binary + +------------------------------------------------------------------- +Mon Jun 22 21:48:23 UTC 2020 - James Fehlig + +- Initial container for virt-launcher