mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-27 08:29:33 -05:00
0edae36e43
* Mini Constellation commands to quickly deploy a local Constellation cluster * Download libvirt container image if not present locally * Fix libvirt KVM permission issues by creating kvm group using host GID inside container * Remove QEMU specific values from state file Signed-off-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: Nils Hanke <nils.hanke@outlook.com>
23 lines
860 B
Docker
23 lines
860 B
Docker
FROM fedora@sha256:486fd5578f93fbc57a519e34ad4b7cac927c3f8a95409baedf0c19e9f287c207 AS deploy
|
|
RUN dnf -y update && \
|
|
dnf -y install dnf-plugins-core \
|
|
libvirt-daemon-config-network \
|
|
libvirt-daemon-kvm \
|
|
qemu-kvm \
|
|
swtpm \
|
|
swtpm-tools \
|
|
libvirt-client && \
|
|
dnf clean all
|
|
|
|
# Prevent cgroup issues on Fedora and configure libvirt
|
|
RUN echo "cgroup_controllers = []" >> /etc/libvirt/qemu.conf && \
|
|
echo "listen_tls = 0" >> /etc/libvirt/libvirtd.conf && \
|
|
echo "listen_tcp = 1" >> /etc/libvirt/libvirtd.conf && \
|
|
echo "tcp_port = \"16599\"" >> /etc/libvirt/libvirtd.conf && \
|
|
echo "listen_addr = \"localhost\"" >> /etc/libvirt/libvirtd.conf && \
|
|
echo "auth_tcp = \"none\"" >> /etc/libvirt/libvirtd.conf
|
|
|
|
COPY --chmod=755 ./cli/internal/libvirt/start.sh /start.sh
|
|
|
|
ENTRYPOINT ["/start.sh"]
|