virt-launcher-container/Dockerfile
Dirk Mueller 3cf1f9f8aa - 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
2020-09-29 15:10:12 +00:00

42 lines
1.3 KiB
Docker

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