1
0

- 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
This commit is contained in:
Dirk Mueller 2020-09-29 15:10:12 +00:00 committed by Git OBS Bridge
commit 3cf1f9f8aa
6 changed files with 118 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

41
Dockerfile Normal file
View File

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

10
_service Normal file
View File

@ -0,0 +1,10 @@
<services>
<service mode="buildtime" name="kiwi_metainfo_helper"/>
<service name="replace_using_package_version" mode="buildtime">
<param name="file">Dockerfile</param>
<param name="regex">%%PKG_VERSION%%</param>
<param name="parse-version">patch</param>
<param name="package">kubevirt-virt-launcher</param>
</service>
<service mode="buildtime" name="docker_label_helper"/>
</services>

27
augconf Normal file
View File

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

View File

@ -0,0 +1,16 @@
-------------------------------------------------------------------
Tue Sep 15 03:21:06 UTC 2020 - James Fehlig <jfehlig@suse.com>
- Adjust Dockerfile to conform to "Building Official Container
Images" documentation
-------------------------------------------------------------------
Wed Jul 22 19:59:10 UTC 2020 - James Fehlig <jfehlig@suse.com>
- Install kubevirt-container-disk package to get the container-disk
binary
-------------------------------------------------------------------
Mon Jun 22 21:48:23 UTC 2020 - James Fehlig <jfehlig@suse.com>
- Initial container for virt-launcher