feat: add config-url support with Dockerfile and NGINX configuration

Signed-off-by: d9pouces <github@19pouces.net>
This commit is contained in:
d9pouces
2026-09-07 07:15:58 +02:00
parent 88380b6ab6
commit 9de98d4744
5 changed files with 81 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM debian:trixie-slim AS target
FROM interdiode/id-configurator:latest AS configuration
ARG CONFIG_REPO_PORT
ARG CONFIG_URL_CACERT_CONTENT
COPY --from=target / /src/
RUN id-configurator apply \
--config-url "https://host.docker.internal:${CONFIG_REPO_PORT}/config.yaml" \
--config-url-cacert-content "$CONFIG_URL_CACERT_CONTENT" \
--src /src --dst /dst
FROM target AS runtime
COPY --from=configuration /dst/ /
RUN grep -qx \
'test-only certificate fetched via --config-url by the id-configurator integration tests' \
/usr/local/share/ca-certificates/config-url-marker.crt