forked from spiffe/spire
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into update-integration-test-doc
- Loading branch information
Showing
91 changed files
with
5,739 additions
and
1,252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Build stage | ||
ARG goversion | ||
FROM golang:${goversion}-alpine as builder | ||
RUN apk add build-base git mercurial ca-certificates | ||
RUN apk add --update gcc musl-dev | ||
ADD go.mod /spire/go.mod | ||
ADD proto/spire/go.mod /spire/proto/spire/go.mod | ||
RUN cd /spire && go mod download | ||
ADD . /spire | ||
WORKDIR /spire | ||
RUN make build-static | ||
|
||
# SPIRE Server | ||
FROM scratch AS spire-server-scratch | ||
COPY --from=builder /spire/bin/spire-server-static /opt/spire/bin/spire-server | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
WORKDIR /opt/spire | ||
ENTRYPOINT ["/opt/spire/bin/spire-server"] | ||
CMD [] | ||
|
||
FROM scratch AS spire-agent-scratch | ||
COPY --from=builder /spire/bin/spire-agent-static /opt/spire/bin/spire-agent | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
WORKDIR /opt/spire | ||
EXPOSE 8080 8443 | ||
ENTRYPOINT ["/opt/spire/bin/spire-agent"] | ||
CMD [] | ||
|
||
# K8S Workload Registrar | ||
FROM scratch AS k8s-workload-registrar-scratch | ||
COPY --from=builder /spire/bin/k8s-workload-registrar-static /opt/spire/bin/k8s-workload-registrar | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
WORKDIR /opt/spire | ||
ENTRYPOINT ["/opt/spire/bin/k8s-workload-registrar"] | ||
CMD [] | ||
|
||
# OIDC Discovery Provider | ||
FROM scratch AS oidc-discovery-provider-scratch | ||
COPY --from=builder /spire/bin/oidc-discovery-provider-static /opt/spire/bin/oidc-discovery-provider | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
WORKDIR /opt/spire | ||
ENTRYPOINT ["/opt/spire/bin/oidc-discovery-provider"] | ||
CMD [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.