mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
# Which Problems Are Solved Outdated NPM dependencies # How the Problems Are Solved Updated the depdendencies # Additional Changes # Additional Context
17 lines
878 B
Docker
17 lines
878 B
Docker
FROM bufbuild/buf:1.64.0 AS dependencies
|
|
RUN buf export https://github.com/envoyproxy/protoc-gen-validate.git --path validate --output /proto && \
|
|
buf export https://github.com/grpc-ecosystem/grpc-gateway.git --path protoc-gen-openapiv2 --output /proto && \
|
|
buf export https://github.com/googleapis/googleapis.git --path google/api/annotations.proto --path google/api/http.proto --path google/api/field_behavior.proto --output /proto
|
|
|
|
|
|
FROM golang:1.20.5-alpine3.18 AS mock-zitadel
|
|
|
|
RUN go install github.com/eliobischof/grpc-mock/cmd/grpc-mock@01b09f60db1b501178af59bed03b2c22661df48c
|
|
|
|
COPY mocked-services.cfg .
|
|
COPY initial-stubs initial-stubs
|
|
COPY --from=dependencies /proto/ ./
|
|
COPY --from=zitadel-protos /zitadel/ ./zitadel/
|
|
|
|
ENTRYPOINT [ "sh", "-c", "grpc-mock -v 1 -proto $(tr '\n' ',' < ./mocked-services.cfg) -stub-dir ./initial-stubs -mock-addr :22222" ]
|