forked from pool/virt-launcher-container
99a5ba61ee
- remove require on libnettle6 as I don't see what whould need it and it is only a library which should be pulled in by anything that needs it - link genisoimage to mkisofs, as we don't have cdrkit packaged right now - replace sle with opensuse OBS-URL: https://build.opensuse.org/request/show/845459 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-launcher-container?expand=0&rev=2
42 lines
1.4 KiB
Docker
42 lines
1.4 KiB
Docker
# Define the tags for OBS and build script builds:
|
|
#!BuildTag: opensuse/tumbleweed/virt-launcher:%%PKG_VERSION%%
|
|
#!BuildTag: opensuse/tumbleweed/virt-launcher:%%PKG_VERSION%%.%RELEASE%
|
|
|
|
# virt-launcher container image
|
|
FROM opensuse/tumbleweed
|
|
|
|
# labelprefix=org.opensuse.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="opensuse/tumbleweed/virt-launcher:%%PKG_VERSION%%.%RELEASE%"
|
|
|
|
RUN zypper update -y && \
|
|
zypper install -y \
|
|
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 .
|
|
RUN ln -s /usr/bin/mkisofs /usr/bin/genisoimage
|
|
|
|
ENTRYPOINT [ "/usr/bin/virt-launcher" ]
|