File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# The docker image to generate Golang code from Protol Buffer.
2- FROM golang:1.17.0 -alpine3.14 as builder
2+ FROM golang:1.18.10 -alpine3.17 as builder
33LABEL intermediate=true
44MAINTAINER DL NGP-App-Infra-API <ngp-app-infra-api@infoblox.com>
55
@@ -60,8 +60,7 @@ RUN go install github.com/gogo/protobuf/protoc-gen-gogoslick
6060RUN go install github.com/gogo/protobuf/protoc-gen-gogotypes
6161RUN go install github.com/gogo/protobuf/protoc-gen-gostring
6262ENV GO111MODULE=on
63- RUN go get github.com/chrusty/protoc-gen-jsonschema/cmd/protoc-gen-jsonschema@switch_jsonschema_library
64- RUN go install github.com/chrusty/protoc-gen-jsonschema/cmd/protoc-gen-jsonschema@switch_jsonschema_library
63+ RUN go install github.com/chrusty/protoc-gen-jsonschema/cmd/protoc-gen-jsonschema@1.1.0
6564ENV GO111MODULE=off
6665RUN go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
6766RUN go install github.com/envoyproxy/protoc-gen-validate
@@ -93,10 +92,10 @@ RUN go get github.com/go-openapi/spec && \
9392 cd grpc-gateway/protoc-gen-swagger && go build -o /out/usr/bin/protoc-gen-swagger main.go
9493
9594ENV GO111MODULE=on
95+
9696# Build with infoblox atlas_patch.
9797RUN cd ${GOPATH}/src/github.com/infobloxopen && git clone --single-branch -b v1.0.1 https://github.com/infobloxopen/atlas-openapiv2-patch.git && \
9898 cd ${GOPATH}/src/github.com/infobloxopen/atlas-openapiv2-patch && go mod vendor && go build -o /out/usr/bin/atlas_patch ./cmd/server/.
99- ENV GO111MODULE=on
10099
101100RUN mkdir -p /out/protos && \
102101 find ${GOPATH}/src -name "*.proto" -exec cp --parents {} /out/protos \;
You can’t perform that action at this time.
0 commit comments