-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: update ZITADEL to version 1.31.1 * fix: update ZITADEL to version 1.31.1 * fix: update ZITADEL to version 1.41.3 * update versions * update versions
- Loading branch information
Showing
32 changed files
with
37,823 additions
and
21,873 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
ARG GO_VERSION=1.15.8 | ||
ARG NODE_VERSION=15.8.0 | ||
ARG GO_VERSION=1.17 | ||
|
||
####################### | ||
## These steps set platform / arch type specific variables | ||
|
@@ -17,8 +16,10 @@ ENV PROTOC_ARCH x86_64 | |
## protoc and protoc-gen-grpc-web for later use | ||
####################### | ||
FROM ${BUILDARCH}-base AS base | ||
ARG PROTOC_VERSION=3.13.0 | ||
ARG PROTOC_VERSION=3.18.0 | ||
ARG PROTOC_ZIP=protoc-${PROTOC_VERSION}-linux-${PROTOC_ARCH}.zip | ||
ARG GATEWAY_VERSION=2.6.0 | ||
ARG VALIDATOR_VERSION=0.6.1 | ||
ARG TAG_NAME=main | ||
|
||
|
||
|
@@ -32,9 +33,9 @@ RUN curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v${PR | |
&& rm -f $PROTOC_ZIP | ||
|
||
#proto dependencies | ||
RUN curl https://raw.githubusercontent.com/envoyproxy/protoc-gen-validate/v0.5.1/validate/validate.proto --create-dirs -o include/validate/validate.proto \ | ||
&& curl https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v2.2.0/protoc-gen-openapiv2/options/annotations.proto --create-dirs -o include/protoc-gen-openapiv2/options/annotations.proto \ | ||
&& curl https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v2.2.0/protoc-gen-openapiv2/options/openapiv2.proto --create-dirs -o include/protoc-gen-openapiv2/options/openapiv2.proto \ | ||
RUN curl https://raw.githubusercontent.com/envoyproxy/protoc-gen-validate/v${VALIDATOR_VERSION}/validate/validate.proto --create-dirs -o include/validate/validate.proto \ | ||
&& curl https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v${GATEWAY_VERSION}/protoc-gen-openapiv2/options/annotations.proto --create-dirs -o include/protoc-gen-openapiv2/options/annotations.proto \ | ||
&& curl https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v${GATEWAY_VERSION}/protoc-gen-openapiv2/options/openapiv2.proto --create-dirs -o include/protoc-gen-openapiv2/options/openapiv2.proto \ | ||
&& curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/annotations.proto --create-dirs -o include/google/api/annotations.proto \ | ||
&& curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/http.proto --create-dirs -o include/google/api/http.proto \ | ||
&& curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/field_behavior.proto --create-dirs -o include/google/api/field_behavior.proto | ||
|
@@ -52,11 +53,8 @@ FROM golang:${GO_VERSION} as go-dep | |
COPY --from=base /proto/include /proto/include | ||
|
||
WORKDIR /go/src/github.com/caos/zitadel-go | ||
COPY tools ./tools | ||
COPY ./go.* . | ||
|
||
RUN go mod download | ||
RUN ./tools/install.sh | ||
RUN go install google.golang.org/grpc/cmd/[email protected] | ||
RUN go install google.golang.org/protobuf/cmd/[email protected] | ||
|
||
####################### | ||
## Go base build | ||
|
@@ -72,12 +70,10 @@ RUN mkdir -p /go/src/github.com/caos/zitadel/pkg/grpc/authoption | |
## generate all pb files and copy them to a new directory | ||
RUN ./build/zitadel/generate-grpc-client.sh ${PROJECT_PATH} \ | ||
&& mkdir /zitadel-api \ | ||
&& find /go/src/github.com/caos/zitadel/pkg/grpc -iname '*.pb.go' -exec cp --parents \{\} /zitadel-api \; | ||
|
||
|
||
&& find /go/src/github.com/caos/zitadel-go/pkg/client/zitadel -iname '*.pb.go' -exec cp --parents \{\} /zitadel-api \; | ||
####################### | ||
## prepare generated files for output | ||
####################### | ||
FROM scratch as zitadel-copy | ||
ARG PROJECT_PATH | ||
COPY --from=zitadel-client /zitadel-api/go/src/github.com/caos/zitadel/pkg/grpc /zitadel | ||
COPY --from=zitadel-client /zitadel-api/go/src/github.com/caos/zitadel-go/pkg/client/zitadel /zitadel |
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
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
Oops, something went wrong.