Skip to content

Commit 082b37b

Browse files
authored
Merge pull request #15 from TheThingsIndustries/feature/update
Various updates
2 parents 6f6251e + a167008 commit 082b37b

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ RUN git clone --recursive --depth=1 -b v${GRPC_VERSION} https://github.com/grpc/
2323

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

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

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

5656
ARG PROTOC_GEN_DOC_VERSION
5757
RUN mkdir -p ${GOPATH}/src/github.com/pseudomuto/protoc-gen-doc && \
58-
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 && \
58+
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 && \
5959
cd ${GOPATH}/src/github.com/pseudomuto/protoc-gen-doc && \
6060
go build -ldflags '-w -s' -o /protoc-gen-doc-out/protoc-gen-doc ./cmd/protoc-gen-doc && \
6161
install -Ds /protoc-gen-doc-out/protoc-gen-doc /out/usr/bin/protoc-gen-doc
@@ -69,14 +69,14 @@ RUN mkdir -p ${GOPATH}/src/github.com/TheThingsIndustries/protoc-gen-fieldmask &
6969

7070
ARG PROTOC_GEN_GO_VERSION
7171
RUN mkdir -p ${GOPATH}/src/github.com/golang/protobuf && \
72-
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 &&\
72+
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 &&\
7373
cd ${GOPATH}/src/github.com/golang/protobuf && \
7474
go build -ldflags '-w -s' -o /golang-protobuf-out/protoc-gen-go ./protoc-gen-go && \
7575
install -Ds /golang-protobuf-out/protoc-gen-go /out/usr/bin/protoc-gen-go
7676

7777
ARG PROTOC_GEN_GOGO_VERSION
7878
RUN mkdir -p ${GOPATH}/src/github.com/gogo/protobuf && \
79-
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 &&\
79+
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 &&\
8080
cd ${GOPATH}/src/github.com/gogo/protobuf && \
8181
go build -ldflags '-w -s' -o /gogo-protobuf-out/protoc-gen-gogo ./protoc-gen-gogo && \
8282
install -Ds /gogo-protobuf-out/protoc-gen-gogo /out/usr/bin/protoc-gen-gogo && \
@@ -140,11 +140,11 @@ RUN mkdir -p /grpc-rust && curl -sSL https://api.github.com/repos/stepancheg/grp
140140

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

145145
ARG GRPC_SWIFT_VERSION
146146
RUN mkdir -p /grpc-swift && \
147-
curl -sSL https://api.github.com/repos/grpc/grpc-swift/tarball/${GRPC_SWIFT_VERSION} | tar --strip-components 1 -C /grpc-swift -xz && \
147+
curl -sSL https://api.github.com/repos/grpc/grpc-swift/tarball/${GRPC_SWIFT_VERSION} | tar xz --strip 1 -C /grpc-swift && \
148148
cd /grpc-swift && make && \
149149
install -Ds /grpc-swift/protoc-gen-swift /protoc-gen-swift/protoc-gen-swift && \
150150
install -Ds /grpc-swift/protoc-gen-swiftgrpc /protoc-gen-swift/protoc-gen-swiftgrpc && \

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ GO_VERSION ?= 1.11.9
33
GRPC_GATEWAY_VERSION ?= 1.8.5
44
GRPC_JAVA_VERSION ?= 1.20.0
55
GRPC_RUST_VERSION ?= 0.6.1
6-
GRPC_SWIFT_VERSION ?= 0.8.2
6+
GRPC_SWIFT_VERSION ?= 0.9.0
77
GRPC_VERSION ?= 1.19.1
88
GRPC_WEB_VERSION ?= 1.0.4
99
PROTOBUF_C_VERSION ?= 1.3.1
10-
PROTOC_GEN_DOC_VERSION ?= 1.3.0-rc
11-
PROTOC_GEN_FIELDMASK_VERSION ?= 0.1.1
10+
PROTOC_GEN_DOC_VERSION ?= 1.3.0
11+
PROTOC_GEN_FIELDMASK_VERSION ?= 0.1.2
1212
PROTOC_GEN_GO_VERSION ?= 1.3.1
1313
PROTOC_GEN_GOGO_VERSION ?= 1.2.1
1414
PROTOC_GEN_GOGOTTN_VERSION ?= 3.0.12
1515
PROTOC_GEN_LINT_VERSION ?= 0.2.1
1616
PROTOC_GEN_VALIDATE_VERSION ?= 0.0.14
1717
RUST_PROTOBUF_VERSION ?= 2.5.0
1818
RUST_VERSION ?= 1.33.0
19-
SWIFT_VERSION ?= 5.0
19+
SWIFT_VERSION ?= 5.0.1
2020
UPX_VERSION ?= 3.95
2121

2222
IMAGE_NAME ?= thethingsindustries/protoc

0 commit comments

Comments
 (0)