mirror of
https://github.com/d9pouces/id_configurator.git
synced 2026-11-09 01:47:21 +01:00
9de98d4744
Signed-off-by: d9pouces <github@19pouces.net>
15 lines
594 B
Docker
15 lines
594 B
Docker
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
|