Skip to content

Commit

Permalink
Update protoc-gen-atlas-query-validate to v0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AnPiakhota-Infoblox committed Dec 21, 2021
1 parent 184e5a4 commit 12b96c1
Show file tree
Hide file tree
Showing 58 changed files with 22,504 additions and 6 deletions.
16 changes: 15 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ RUN sed -e "s/@AATVersion/$AAT_VERSION/" \
-e "s/@PGAVVersion/$PGAV_VERSION/" \
-e "s/@PGPVersion/$PGP_VERSION/" \
glide.yaml.tmpl > glide.yaml

RUN glide up --skip-test
RUN cp -r vendor/* ${GOPATH}/src/

Expand All @@ -59,16 +60,29 @@ RUN go install github.com/gogo/protobuf/protoc-gen-gogofaster
RUN go install github.com/gogo/protobuf/protoc-gen-gogoslick
RUN go install github.com/gogo/protobuf/protoc-gen-gogotypes
RUN go install github.com/gogo/protobuf/protoc-gen-gostring

RUN mkdir -p ${GOPATH}/src/github.com/chrusty/ && \
cd ${GOPATH}/src/github.com/chrusty && \
git clone --single-branch -b master https://github.com/chrusty/protoc-gen-jsonschema.git && \
cd protoc-gen-jsonschema && git checkout cd4ff2f197c77b367ad30891c21d4ba94ff17600
RUN go get github.com/chrusty/protoc-gen-jsonschema/cmd/protoc-gen-jsonschema
RUN go install github.com/chrusty/protoc-gen-jsonschema/cmd/protoc-gen-jsonschema

RUN go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
RUN go install github.com/envoyproxy/protoc-gen-validate
RUN go install github.com/mwitkow/go-proto-validators/protoc-gen-govalidators
RUN go install github.com/pseudomuto/protoc-gen-doc/cmd/...
RUN go install github.com/infobloxopen/protoc-gen-preprocess

RUN rm -rf github.com/infobloxopen/protoc-gen-gorm/ && mkdir -p github.com/infobloxopen/protoc-gen-gorm/
RUN rm -rf vendor/github.com/infobloxopen/protoc-gen-gorm/ && mkdir -p vendor/github.com/infobloxopen/protoc-gen-gorm/
COPY github.com/infobloxopen/protoc-gen-gorm/ ${GOPATH}/src/github.com/infobloxopen/protoc-gen-gorm/
COPY github.com/infobloxopen/protoc-gen-gorm/ vendor/github.com/infobloxopen/protoc-gen-gorm/

RUN go install \
-ldflags "-X github.com/infobloxopen/protoc-gen-gorm/plugin.ProtocGenGormVersion=$PGG_VERSION -X github.com/infobloxopen/protoc-gen-gorm/plugin.AtlasAppToolkitVersion=$AAT_VERSION" \
-ldflags "-X github.com/infobloxopen/protoc-gen-gorm/plugin.ProtocGenGormVersion=v0.21.0 -X github.com/infobloxopen/protoc-gen-gorm/plugin.AtlasAppToolkitVersion=v0.25.1" \
github.com/infobloxopen/protoc-gen-gorm

# Download all dependencies of protoc-gen-atlas-query-validate
RUN cd ${GOPATH}/src/github.com/infobloxopen/protoc-gen-atlas-query-validate && dep ensure -vendor-only
RUN go install github.com/infobloxopen/protoc-gen-atlas-query-validate
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ versioned:
--build-arg PGAQV_VERSION=$(PGAQVVersion) \
--build-arg PGAV_VERSION=$(PGAVVersion) \
--build-arg PGP_VERSION=$(PGPVersion) \
-t $(IMAGE_NAME):$(IMAGE_VERSION) .
-t $(IMAGE_NAME):v23.1 .

.PHONY: clean
clean:
Expand All @@ -43,7 +43,7 @@ test: test-gen test-check test-clean

test-gen:
docker run --rm -v $(SRCROOT_ON_HOST):$(SRCROOT_IN_CONTAINER) \
infoblox/atlas-gentool:latest \
infoblox/atlas-gentool:v23.1 \
--go_out=plugins=grpc:. \
--grpc-gateway_out=logtostderr=true:. \
--validate_out="lang=go:." \
Expand Down
20 changes: 20 additions & 0 deletions github.com/infobloxopen/protoc-gen-gorm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
vendor
trigger-travis.sh

# Binaries for programs and plugins
*.exe
*.dll
*.so
*.dylib

# Test binary, build with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
.glide/

# IDE-specific settings files
.idea
25 changes: 25 additions & 0 deletions github.com/infobloxopen/protoc-gen-gorm/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
sudo: required

services:
- docker

language: go

go:
- "1.10"

env:
- DEP_VERSION="0.4.1"

install:
# Download and install dep
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep

script:
- make gentool-test

# Trigger build/push of latest gentool
deploy:
provider: script
script: curl -LO --retry 3 https://raw.github.com/mernst/plume-lib/master/bin/trigger-travis.sh && sh trigger-travis.sh infobloxopen atlas-gentool $TRAVIS_ACCESS_TOKEN
Loading

0 comments on commit 12b96c1

Please sign in to comment.