2020-09-29 17:10:12 +02:00
|
|
|
# Define the tags for OBS and build script builds:
|
2020-11-02 16:10:09 +01:00
|
|
|
#!BuildTag: opensuse/tumbleweed/virt-launcher:%%PKG_VERSION%%
|
|
|
|
#!BuildTag: opensuse/tumbleweed/virt-launcher:%%PKG_VERSION%%.%RELEASE%
|
2020-09-29 17:10:12 +02:00
|
|
|
|
|
|
|
# virt-launcher container image
|
|
|
|
FROM opensuse/tumbleweed
|
|
|
|
|
2020-11-02 16:10:09 +01:00
|
|
|
# labelprefix=org.opensuse.kubevirt
|
2020-09-29 17:10:12 +02:00
|
|
|
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%"
|
2020-11-02 16:10:09 +01:00
|
|
|
PREFIXEDLABEL org.opensuse.reference="opensuse/tumbleweed/virt-launcher:%%PKG_VERSION%%.%RELEASE%"
|
2020-09-29 17:10:12 +02:00
|
|
|
|
|
|
|
RUN zypper update -y && \
|
|
|
|
zypper install -y \
|
2020-11-02 16:10:09 +01:00
|
|
|
socat \
|
2020-09-29 17:10:12 +02:00
|
|
|
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 .
|
2020-11-02 16:10:09 +01:00
|
|
|
RUN ln -s /usr/bin/mkisofs /usr/bin/genisoimage
|
2020-09-29 17:10:12 +02:00
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/bin/virt-launcher" ]
|