mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-13 00:50:38 -05:00
bazel: remove apko and Dockerfile where Bazel is used to build container images
This commit is contained in:
parent
19ff132ee8
commit
5145f806ea
33 changed files with 15 additions and 1517 deletions
|
|
@ -1,29 +0,0 @@
|
|||
FROM fedora:37@sha256:ca620b6a713882989f2dfb31dd34705834c95bc23e493687828080f6e5ad1be6 AS release
|
||||
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 upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-c487bde4b4 -y && \
|
||||
dnf remove -y python-setuptools && \
|
||||
dnf clean all
|
||||
# TODO(malt3): remove advisory FEDORA-2023-c487bde4b4 upgrade for libtpms to libtpms-0.9.6-1.fc37.x86_64 once it is in stable
|
||||
|
||||
# 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 nvram templates
|
||||
COPY ./cli/internal/libvirt/nvram/constellation_vars.testing.fd /usr/share/OVMF/constellation_vars.testing.fd
|
||||
COPY ./cli/internal/libvirt/nvram/constellation_vars.production.fd /usr/share/OVMF/constellation_vars.production.fd
|
||||
|
||||
COPY --chmod=755 ./cli/internal/libvirt/start.sh /start.sh
|
||||
|
||||
ENTRYPOINT ["/start.sh"]
|
||||
|
|
@ -16,7 +16,10 @@ virsh -c "qemu+tcp://localhost:16599/system"
|
|||
Build the image:
|
||||
|
||||
```shell
|
||||
DOCKER_BUILDKIT=1 docker build -t ghcr.io/edgelesssys/constellation/libvirt:latest -f cli/internal/libvirt/Dockerfile .
|
||||
bazel build //cli/internal/libvirt:constellation_libvirt
|
||||
bazel build //bazel/release:libvirt_sum
|
||||
bazel build //bazel/release:libvirt_tar
|
||||
bazel run //bazel/release:libvirt_push
|
||||
```
|
||||
|
||||
A container of the image is automatically started by the CLI.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue