Skip to content

Commit

Permalink
Merge pull request #15 from TheThingsIndustries/feature/update
Browse files Browse the repository at this point in the history
Various updates
  • Loading branch information
rvolosatovs authored May 2, 2019
2 parents 6f6251e + a167008 commit 082b37b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ RUN git clone --recursive --depth=1 -b v${GRPC_VERSION} https://github.com/grpc/

ARG PROTOBUF_C_VERSION
RUN mkdir -p /protobuf-c && \
curl -sSL https://api.github.com/repos/protobuf-c/protobuf-c/tarball/v${PROTOBUF_C_VERSION} | tar xz -C /protobuf-c --strip-components=1 && \
curl -sSL https://api.github.com/repos/protobuf-c/protobuf-c/tarball/v${PROTOBUF_C_VERSION} | tar xz --strip 1 -C /protobuf-c && \
cd /protobuf-c && \
./autogen.sh && \
./configure --prefix=/usr && \
make && make install DESTDIR=/out

ARG GRPC_JAVA_VERSION
RUN mkdir -p /grpc-java && \
curl -sSL https://api.github.com/repos/grpc/grpc-java/tarball/v${GRPC_JAVA_VERSION} | tar xz -C /grpc-java --strip-components=1 && \
curl -sSL https://api.github.com/repos/grpc/grpc-java/tarball/v${GRPC_JAVA_VERSION} | tar xz --strip 1 -C /grpc-java && \
cd /grpc-java && \
g++ \
-I. -I/protobuf/src \
Expand All @@ -43,7 +43,7 @@ RUN mkdir -p /grpc-java && \

ARG GRPC_WEB_VERSION
RUN mkdir -p /grpc-web && \
curl -sSL https://api.github.com/repos/grpc/grpc-web/tarball/${GRPC_WEB_VERSION} | tar xz -C /grpc-web --strip-components=1 && \
curl -sSL https://api.github.com/repos/grpc/grpc-web/tarball/${GRPC_WEB_VERSION} | tar xz --strip 1 -C /grpc-web && \
cd /grpc-web && \
make install-plugin && \
install -Ds /usr/local/bin/protoc-gen-grpc-web /out/usr/bin/protoc-gen-grpc-web
Expand All @@ -55,7 +55,7 @@ ENV GO111MODULE=on

ARG PROTOC_GEN_DOC_VERSION
RUN mkdir -p ${GOPATH}/src/github.com/pseudomuto/protoc-gen-doc && \
curl -sSL https://github.com/TheThingsIndustries/protoc-gen-doc/archive/v${PROTOC_GEN_DOC_VERSION}.tar.gz | tar xz --strip 1 -C ${GOPATH}/src/github.com/pseudomuto/protoc-gen-doc && \
curl -sSL https://api.github.com/repos/pseudomuto/protoc-gen-doc/tarball/v${PROTOC_GEN_DOC_VERSION} | tar xz --strip 1 -C ${GOPATH}/src/github.com/pseudomuto/protoc-gen-doc && \
cd ${GOPATH}/src/github.com/pseudomuto/protoc-gen-doc && \
go build -ldflags '-w -s' -o /protoc-gen-doc-out/protoc-gen-doc ./cmd/protoc-gen-doc && \
install -Ds /protoc-gen-doc-out/protoc-gen-doc /out/usr/bin/protoc-gen-doc
Expand All @@ -69,14 +69,14 @@ RUN mkdir -p ${GOPATH}/src/github.com/TheThingsIndustries/protoc-gen-fieldmask &

ARG PROTOC_GEN_GO_VERSION
RUN mkdir -p ${GOPATH}/src/github.com/golang/protobuf && \
curl -sSL https://github.com/golang/protobuf/archive/v${PROTOC_GEN_GO_VERSION}.tar.gz | tar -xz --strip 1 -C ${GOPATH}/src/github.com/golang/protobuf &&\
curl -sSL https://api.github.com/repos/golang/protobuf/tarball/v${PROTOC_GEN_GO_VERSION} | tar xz --strip 1 -C ${GOPATH}/src/github.com/golang/protobuf &&\
cd ${GOPATH}/src/github.com/golang/protobuf && \
go build -ldflags '-w -s' -o /golang-protobuf-out/protoc-gen-go ./protoc-gen-go && \
install -Ds /golang-protobuf-out/protoc-gen-go /out/usr/bin/protoc-gen-go

ARG PROTOC_GEN_GOGO_VERSION
RUN mkdir -p ${GOPATH}/src/github.com/gogo/protobuf && \
curl -sSL https://github.com/gogo/protobuf/archive/v${PROTOC_GEN_GOGO_VERSION}.tar.gz | tar -xz --strip 1 -C ${GOPATH}/src/github.com/gogo/protobuf &&\
curl -sSL https://api.github.com/repos/gogo/protobuf/tarball/v${PROTOC_GEN_GOGO_VERSION} | tar xz --strip 1 -C ${GOPATH}/src/github.com/gogo/protobuf &&\
cd ${GOPATH}/src/github.com/gogo/protobuf && \
go build -ldflags '-w -s' -o /gogo-protobuf-out/protoc-gen-gogo ./protoc-gen-gogo && \
install -Ds /gogo-protobuf-out/protoc-gen-gogo /out/usr/bin/protoc-gen-gogo && \
Expand Down Expand Up @@ -140,11 +140,11 @@ RUN mkdir -p /grpc-rust && curl -sSL https://api.github.com/repos/stepancheg/grp

FROM swift:${SWIFT_VERSION} as swift_builder
RUN apt-get update && \
apt-get install -y unzip patchelf libnghttp2-dev
apt-get install -y unzip patchelf libnghttp2-dev curl libssl-dev zlib1g-dev

ARG GRPC_SWIFT_VERSION
RUN mkdir -p /grpc-swift && \
curl -sSL https://api.github.com/repos/grpc/grpc-swift/tarball/${GRPC_SWIFT_VERSION} | tar --strip-components 1 -C /grpc-swift -xz && \
curl -sSL https://api.github.com/repos/grpc/grpc-swift/tarball/${GRPC_SWIFT_VERSION} | tar xz --strip 1 -C /grpc-swift && \
cd /grpc-swift && make && \
install -Ds /grpc-swift/protoc-gen-swift /protoc-gen-swift/protoc-gen-swift && \
install -Ds /grpc-swift/protoc-gen-swiftgrpc /protoc-gen-swift/protoc-gen-swiftgrpc && \
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ GO_VERSION ?= 1.11.9
GRPC_GATEWAY_VERSION ?= 1.8.5
GRPC_JAVA_VERSION ?= 1.20.0
GRPC_RUST_VERSION ?= 0.6.1
GRPC_SWIFT_VERSION ?= 0.8.2
GRPC_SWIFT_VERSION ?= 0.9.0
GRPC_VERSION ?= 1.19.1
GRPC_WEB_VERSION ?= 1.0.4
PROTOBUF_C_VERSION ?= 1.3.1
PROTOC_GEN_DOC_VERSION ?= 1.3.0-rc
PROTOC_GEN_FIELDMASK_VERSION ?= 0.1.1
PROTOC_GEN_DOC_VERSION ?= 1.3.0
PROTOC_GEN_FIELDMASK_VERSION ?= 0.1.2
PROTOC_GEN_GO_VERSION ?= 1.3.1
PROTOC_GEN_GOGO_VERSION ?= 1.2.1
PROTOC_GEN_GOGOTTN_VERSION ?= 3.0.12
PROTOC_GEN_LINT_VERSION ?= 0.2.1
PROTOC_GEN_VALIDATE_VERSION ?= 0.0.14
RUST_PROTOBUF_VERSION ?= 2.5.0
RUST_VERSION ?= 1.33.0
SWIFT_VERSION ?= 5.0
SWIFT_VERSION ?= 5.0.1
UPX_VERSION ?= 3.95

IMAGE_NAME ?= thethingsindustries/protoc
Expand Down

0 comments on commit 082b37b

Please sign in to comment.