Skip to content

Commit e8adf1d

Browse files
authored
Generate .jsonschema instead of .json (#155)
* Generate .jsonschema instead of .json * Addressed reviewer comments
1 parent eeea4b1 commit e8adf1d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
33
LABEL intermediate=true
44
MAINTAINER 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
6060
RUN go install github.com/gogo/protobuf/protoc-gen-gogotypes
6161
RUN go install github.com/gogo/protobuf/protoc-gen-gostring
6262
ENV 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
6564
ENV GO111MODULE=off
6665
RUN go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
6766
RUN 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

9594
ENV GO111MODULE=on
95+
9696
# Build with infoblox atlas_patch.
9797
RUN 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

101100
RUN mkdir -p /out/protos && \
102101
find ${GOPATH}/src -name "*.proto" -exec cp --parents {} /out/protos \;

0 commit comments

Comments
 (0)