Skip to content

Commit d78f8f2

Browse files
committed
Merge pull request moby#21608 from albers/build-clone-https
Use https for `git clone` in build
2 parents 0fa96f2 + a7e9bf6 commit d78f8f2

9 files changed

+18
-18
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ RUN set -x \
250250
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
251251
RUN set -x \
252252
&& export GOPATH="$(mktemp -d)" \
253-
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
253+
&& git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
254254
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
255255
&& git checkout -q "$RUNC_COMMIT" \
256256
&& make static BUILDTAGS="seccomp apparmor selinux" \
@@ -260,7 +260,7 @@ RUN set -x \
260260
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
261261
RUN set -x \
262262
&& export GOPATH="$(mktemp -d)" \
263-
&& git clone git://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
263+
&& git clone https://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
264264
&& cd "$GOPATH/src/github.com/docker/containerd" \
265265
&& git checkout -q "$CONTAINERD_COMMIT" \
266266
&& make static \

Dockerfile.aarch64

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ RUN set -x \
184184
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
185185
RUN set -x \
186186
&& export GOPATH="$(mktemp -d)" \
187-
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
187+
&& git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
188188
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
189189
&& git checkout -q "$RUNC_COMMIT" \
190190
&& make static BUILDTAGS="seccomp apparmor selinux" \
@@ -194,7 +194,7 @@ RUN set -x \
194194
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
195195
RUN set -x \
196196
&& export GOPATH="$(mktemp -d)" \
197-
&& git clone git://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
197+
&& git clone https://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
198198
&& cd "$GOPATH/src/github.com/docker/containerd" \
199199
&& git checkout -q "$CONTAINERD_COMMIT" \
200200
&& make static \

Dockerfile.armhf

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ RUN set -x \
201201
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
202202
RUN set -x \
203203
&& export GOPATH="$(mktemp -d)" \
204-
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
204+
&& git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
205205
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
206206
&& git checkout -q "$RUNC_COMMIT" \
207207
&& make static BUILDTAGS="seccomp apparmor selinux" \
@@ -211,7 +211,7 @@ RUN set -x \
211211
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
212212
RUN set -x \
213213
&& export GOPATH="$(mktemp -d)" \
214-
&& git clone git://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
214+
&& git clone https://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
215215
&& cd "$GOPATH/src/github.com/docker/containerd" \
216216
&& git checkout -q "$CONTAINERD_COMMIT" \
217217
&& make static \

Dockerfile.gccgo

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ENV DOCKER_BUILDTAGS apparmor seccomp selinux
7777
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
7878
RUN set -x \
7979
&& export GOPATH="$(mktemp -d)" \
80-
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
80+
&& git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
8181
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
8282
&& git checkout -q "$RUNC_COMMIT" \
8383
&& make static BUILDTAGS="seccomp apparmor selinux" \
@@ -87,7 +87,7 @@ RUN set -x \
8787
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
8888
RUN set -x \
8989
&& export GOPATH="$(mktemp -d)" \
90-
&& git clone git://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
90+
&& git clone https://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
9191
&& cd "$GOPATH/src/github.com/docker/containerd" \
9292
&& git checkout -q "$CONTAINERD_COMMIT" \
9393
&& make static \

Dockerfile.ppc64le

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ RUN set -x \
199199
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
200200
RUN set -x \
201201
&& export GOPATH="$(mktemp -d)" \
202-
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
202+
&& git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
203203
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
204204
&& git checkout -q "$RUNC_COMMIT" \
205205
&& make static BUILDTAGS="apparmor selinux" \
@@ -209,7 +209,7 @@ RUN set -x \
209209
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
210210
RUN set -x \
211211
&& export GOPATH="$(mktemp -d)" \
212-
&& git clone git://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
212+
&& git clone https://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
213213
&& cd "$GOPATH/src/github.com/docker/containerd" \
214214
&& git checkout -q "$CONTAINERD_COMMIT" \
215215
&& make static \

Dockerfile.s390x

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ RUN set -x \
181181
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
182182
RUN set -x \
183183
&& export GOPATH="$(mktemp -d)" \
184-
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
184+
&& git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
185185
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
186186
&& git checkout -q "$RUNC_COMMIT" \
187187
&& make static BUILDTAGS="seccomp apparmor selinux" \
@@ -191,7 +191,7 @@ RUN set -x \
191191
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
192192
RUN set -x \
193193
&& export GOPATH="$(mktemp -d)" \
194-
&& git clone git://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
194+
&& git clone https://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
195195
&& cd "$GOPATH/src/github.com/docker/containerd" \
196196
&& git checkout -q "$CONTAINERD_COMMIT" \
197197
&& make static \

Dockerfile.simple

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ENV CGO_LDFLAGS -L/lib
6060
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
6161
RUN set -x \
6262
&& export GOPATH="$(mktemp -d)" \
63-
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
63+
&& git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
6464
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
6565
&& git checkout -q "$RUNC_COMMIT" \
6666
&& make static BUILDTAGS="seccomp apparmor selinux" \
@@ -70,7 +70,7 @@ RUN set -x \
7070
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
7171
RUN set -x \
7272
&& export GOPATH="$(mktemp -d)" \
73-
&& git clone git://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
73+
&& git clone https://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
7474
&& cd "$GOPATH/src/github.com/docker/containerd" \
7575
&& git checkout -q "$CONTAINERD_COMMIT" \
7676
&& make static \

hack/make/build-deb

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ set -e
6969
# add runc and containerd compile and install
7070
cat >> "$DEST/$version/Dockerfile.build" <<-EOF
7171
# Install runc
72-
RUN git clone git://github.com/opencontainers/runc.git "/go/src/github.com/opencontainers/runc" \
72+
RUN git clone https://github.com/opencontainers/runc.git "/go/src/github.com/opencontainers/runc" \
7373
&& cd "/go/src/github.com/opencontainers/runc" \
7474
&& git checkout -q "\$RUNC_COMMIT"
7575
RUN set -x && export GOPATH="/go" && cd "/go/src/github.com/opencontainers/runc" \
7676
&& make BUILDTAGS="\$RUNC_BUILDTAGS" && make install
7777
# Install containerd
78-
RUN git clone git://github.com/docker/containerd.git "/go/src/github.com/docker/containerd" \
78+
RUN git clone https://github.com/docker/containerd.git "/go/src/github.com/docker/containerd" \
7979
&& cd "/go/src/github.com/docker/containerd" \
8080
&& git checkout -q "\$CONTAINERD_COMMIT"
8181
RUN set -x && export GOPATH="/go" && cd "/go/src/github.com/docker/containerd" && make && make install

hack/make/build-rpm

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ set -e
9797
# add runc and containerd compile and install
9898
cat >> "$DEST/$version/Dockerfile.build" <<-EOF
9999
# Install runc
100-
RUN git clone git://github.com/opencontainers/runc.git "/go/src/github.com/opencontainers/runc" \
100+
RUN git clone https://github.com/opencontainers/runc.git "/go/src/github.com/opencontainers/runc" \
101101
&& cd "/go/src/github.com/opencontainers/runc" \
102102
&& git checkout -q "\$RUNC_COMMIT"
103103
RUN set -x && export GOPATH="/go" && cd "/go/src/github.com/opencontainers/runc" \
104104
&& make BUILDTAGS="\$RUNC_BUILDTAGS" && make install
105105
# Install containerd
106-
RUN git clone git://github.com/docker/containerd.git "/go/src/github.com/docker/containerd" \
106+
RUN git clone https://github.com/docker/containerd.git "/go/src/github.com/docker/containerd" \
107107
&& cd "/go/src/github.com/docker/containerd" \
108108
&& git checkout -q "\$CONTAINERD_COMMIT"
109109
RUN set -x && export GOPATH="/go" && cd "/go/src/github.com/docker/containerd" && make && make install

0 commit comments

Comments
 (0)