This implements custom Alpine-based Smart SPIRE Server and Agent Docker images with self-seeding configuration entrypoints. It also updates the docker-compose configuration to utilize a single host storage volume and a dedicated named socket volume. Setup build pipelines are expanded to compile and push these custom SPIRE images. Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
14 lines
472 B
Docker
14 lines
472 B
Docker
ARG SPIRE_VERSION=1.9.3
|
|
FROM ghcr.io/spiffe/spire-agent:${SPIRE_VERSION} AS upstream
|
|
FROM alpine:3.20
|
|
|
|
RUN apk add --no-cache ca-certificates tzdata
|
|
|
|
COPY --from=upstream /opt/spire/bin/spire-agent /usr/local/bin/spire-agent
|
|
COPY templates/agent.conf /etc/spire/templates/agent.conf
|
|
COPY entrypoint.agent.sh /usr/local/bin/entrypoint.sh
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
|
CMD ["run", "-config", "/opt/spire/agent.conf"]
|