Add a stateful Proxmox API console and broad handler coverage beyond the
initial QEMU slice, backed by imported contracts for majors 6–9. - Implement durable handlers for access/auth, cluster, LXC, storage, HA, firewall, Ceph, SDN, ACME, notifications, pools, mapping, and node ops - Serve an interactive Web UI with catalog browsing, demo seed controls, and OpenAPI/help surfaces - Bundle PVE 6.4-15, 7.4-16, and 8.4.5 contract revisions alongside 9.2.3 - Support in-memory runtime contract Apply (POST /ui/api/contract/apply) so /version and /api2 routes follow the selected major until restart - Expand seed profiles (including demo-cluster), migrations 007–008, TLS gateway config, Compose/Makefile tooling, and compatibility evidence - Tighten .gitignore for macOS, hidden directories (.*/), and local secrets
This commit is contained in:
+22
-3
@@ -1,5 +1,5 @@
|
||||
# syntax=docker/dockerfile:1.7
|
||||
FROM python:3.13-slim-bookworm AS builder
|
||||
FROM python:3.13-slim AS builder
|
||||
|
||||
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
||||
PIP_NO_CACHE_DIR=1 \
|
||||
@@ -11,7 +11,7 @@ COPY pyproject.toml README.md ./
|
||||
COPY app ./app
|
||||
RUN pip install --upgrade "pip>=25.1,<26" && pip install .
|
||||
|
||||
FROM python:3.13-slim-bookworm AS runtime
|
||||
FROM python:3.13-slim AS runtime
|
||||
|
||||
ARG APP_VERSION=0.1.0
|
||||
LABEL org.opencontainers.image.title="proxmox-api-simulator" \
|
||||
@@ -26,7 +26,7 @@ RUN groupadd --system --gid 10001 simulator \
|
||||
&& useradd --system --uid 10001 --gid simulator --home-dir /app --no-create-home simulator
|
||||
COPY --from=builder /opt/venv /opt/venv
|
||||
COPY contracts/e61a893e996d05d376579226e7dfbedbcfce8b71787adacffbc557e6e35901c1/snapshot.json /app/contracts/pve-9.2.3.json
|
||||
COPY evidence/pve-9.2.3-0.1.0.json /app/evidence/pve-9.2.3-0.1.0.json
|
||||
COPY evidence/ /app/evidence/
|
||||
WORKDIR /app
|
||||
USER 10001:10001
|
||||
EXPOSE 8006
|
||||
@@ -34,3 +34,22 @@ HEALTHCHECK --interval=10s --timeout=3s --start-period=10s --retries=3 \
|
||||
CMD ["python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8006/health/live', timeout=2)"]
|
||||
ENTRYPOINT ["uvicorn", "app.main:app"]
|
||||
CMD ["--host", "0.0.0.0", "--port", "8006"]
|
||||
|
||||
FROM python:3.13-slim AS dev
|
||||
|
||||
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
||||
PIP_NO_CACHE_DIR=1 \
|
||||
VIRTUAL_ENV=/opt/venv \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1
|
||||
RUN python -m venv "$VIRTUAL_ENV"
|
||||
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||
WORKDIR /workspace
|
||||
COPY pyproject.toml README.md ./
|
||||
COPY app ./app
|
||||
COPY tests ./tests
|
||||
COPY contracts ./contracts
|
||||
COPY evidence ./evidence
|
||||
RUN pip install --upgrade "pip>=25.1,<26" && pip install -e '.[dev]'
|
||||
ENTRYPOINT []
|
||||
CMD ["bash"]
|
||||
|
||||
Reference in New Issue
Block a user