@@ -23,15 +23,15 @@ RUN git clone --recursive --depth=1 -b v${GRPC_VERSION} https://github.com/grpc/
23
23
24
24
ARG PROTOBUF_C_VERSION
25
25
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 && \
27
27
cd /protobuf-c && \
28
28
./autogen.sh && \
29
29
./configure --prefix=/usr && \
30
30
make && make install DESTDIR=/out
31
31
32
32
ARG GRPC_JAVA_VERSION
33
33
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 && \
35
35
cd /grpc-java && \
36
36
g++ \
37
37
-I. -I/protobuf/src \
@@ -43,7 +43,7 @@ RUN mkdir -p /grpc-java && \
43
43
44
44
ARG GRPC_WEB_VERSION
45
45
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 && \
47
47
cd /grpc-web && \
48
48
make install-plugin && \
49
49
install -Ds /usr/local/bin/protoc-gen-grpc-web /out/usr/bin/protoc-gen-grpc-web
@@ -55,7 +55,7 @@ ENV GO111MODULE=on
55
55
56
56
ARG PROTOC_GEN_DOC_VERSION
57
57
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 && \
59
59
cd ${GOPATH}/src/github.com/pseudomuto/protoc-gen-doc && \
60
60
go build -ldflags '-w -s' -o /protoc-gen-doc-out/protoc-gen-doc ./cmd/protoc-gen-doc && \
61
61
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 &
69
69
70
70
ARG PROTOC_GEN_GO_VERSION
71
71
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 &&\
73
73
cd ${GOPATH}/src/github.com/golang/protobuf && \
74
74
go build -ldflags '-w -s' -o /golang-protobuf-out/protoc-gen-go ./protoc-gen-go && \
75
75
install -Ds /golang-protobuf-out/protoc-gen-go /out/usr/bin/protoc-gen-go
76
76
77
77
ARG PROTOC_GEN_GOGO_VERSION
78
78
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 &&\
80
80
cd ${GOPATH}/src/github.com/gogo/protobuf && \
81
81
go build -ldflags '-w -s' -o /gogo-protobuf-out/protoc-gen-gogo ./protoc-gen-gogo && \
82
82
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
140
140
141
141
FROM swift:${SWIFT_VERSION} as swift_builder
142
142
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
144
144
145
145
ARG GRPC_SWIFT_VERSION
146
146
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 && \
148
148
cd /grpc-swift && make && \
149
149
install -Ds /grpc-swift/protoc-gen-swift /protoc-gen-swift/protoc-gen-swift && \
150
150
install -Ds /grpc-swift/protoc-gen-swiftgrpc /protoc-gen-swift/protoc-gen-swiftgrpc && \
0 commit comments