mirror of
https://codeberg.org/Toasterson/solstice-ci.git
synced 2026-04-10 13:20:41 +00:00
Switch to pre-built binary Containerfile to avoid workspace dependency issues with vm-manager path dep. Use Ubuntu 24.04 to match host glibc.
19 lines
809 B
Docker
19 lines
809 B
Docker
# syntax=docker/dockerfile:1.7
|
|
# Solstice Orchestrator container
|
|
# Uses vm-manager (direct QEMU) instead of libvirt — only needs /dev/kvm at runtime
|
|
#
|
|
# Pre-build the binary, then build the container:
|
|
# cargo build --release -p orchestrator
|
|
# docker build -f deploy/images/orchestrator/Containerfile -t local/solstice-orchestrator:latest .
|
|
|
|
FROM docker.io/library/ubuntu:24.04
|
|
# Runtime: QEMU for VMs, qemu-utils for qemu-img, DB client libs
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
libsqlite3-0 libpq5 ca-certificates \
|
|
qemu-system-x86 qemu-utils \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
COPY target/release/orchestrator /usr/local/bin/solstice-orchestrator
|
|
RUN chmod +x /usr/local/bin/solstice-orchestrator
|
|
EXPOSE 8081
|
|
ENTRYPOINT ["/usr/local/bin/solstice-orchestrator"]
|