mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #21608 from albers/build-clone-https
Use https for `git clone` in build
This commit is contained in:
commit
d78f8f2796
9 changed files with 18 additions and 18 deletions
|
@ -250,7 +250,7 @@ RUN set -x \
|
||||||
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
|
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
&& git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
||||||
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
|
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
|
||||||
&& git checkout -q "$RUNC_COMMIT" \
|
&& git checkout -q "$RUNC_COMMIT" \
|
||||||
&& make static BUILDTAGS="seccomp apparmor selinux" \
|
&& make static BUILDTAGS="seccomp apparmor selinux" \
|
||||||
|
@ -260,7 +260,7 @@ RUN set -x \
|
||||||
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
|
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
&& git clone git://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
&& git clone https://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
||||||
&& cd "$GOPATH/src/github.com/docker/containerd" \
|
&& cd "$GOPATH/src/github.com/docker/containerd" \
|
||||||
&& git checkout -q "$CONTAINERD_COMMIT" \
|
&& git checkout -q "$CONTAINERD_COMMIT" \
|
||||||
&& make static \
|
&& make static \
|
||||||
|
|
|
@ -184,7 +184,7 @@ RUN set -x \
|
||||||
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
|
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
&& git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
||||||
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
|
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
|
||||||
&& git checkout -q "$RUNC_COMMIT" \
|
&& git checkout -q "$RUNC_COMMIT" \
|
||||||
&& make static BUILDTAGS="seccomp apparmor selinux" \
|
&& make static BUILDTAGS="seccomp apparmor selinux" \
|
||||||
|
@ -194,7 +194,7 @@ RUN set -x \
|
||||||
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
|
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
&& git clone git://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
&& git clone https://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
||||||
&& cd "$GOPATH/src/github.com/docker/containerd" \
|
&& cd "$GOPATH/src/github.com/docker/containerd" \
|
||||||
&& git checkout -q "$CONTAINERD_COMMIT" \
|
&& git checkout -q "$CONTAINERD_COMMIT" \
|
||||||
&& make static \
|
&& make static \
|
||||||
|
|
|
@ -201,7 +201,7 @@ RUN set -x \
|
||||||
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
|
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
&& git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
||||||
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
|
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
|
||||||
&& git checkout -q "$RUNC_COMMIT" \
|
&& git checkout -q "$RUNC_COMMIT" \
|
||||||
&& make static BUILDTAGS="seccomp apparmor selinux" \
|
&& make static BUILDTAGS="seccomp apparmor selinux" \
|
||||||
|
@ -211,7 +211,7 @@ RUN set -x \
|
||||||
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
|
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
&& git clone git://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
&& git clone https://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
||||||
&& cd "$GOPATH/src/github.com/docker/containerd" \
|
&& cd "$GOPATH/src/github.com/docker/containerd" \
|
||||||
&& git checkout -q "$CONTAINERD_COMMIT" \
|
&& git checkout -q "$CONTAINERD_COMMIT" \
|
||||||
&& make static \
|
&& make static \
|
||||||
|
|
|
@ -77,7 +77,7 @@ ENV DOCKER_BUILDTAGS apparmor seccomp selinux
|
||||||
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
|
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
&& git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
||||||
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
|
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
|
||||||
&& git checkout -q "$RUNC_COMMIT" \
|
&& git checkout -q "$RUNC_COMMIT" \
|
||||||
&& make static BUILDTAGS="seccomp apparmor selinux" \
|
&& make static BUILDTAGS="seccomp apparmor selinux" \
|
||||||
|
@ -87,7 +87,7 @@ RUN set -x \
|
||||||
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
|
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
&& git clone git://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
&& git clone https://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
||||||
&& cd "$GOPATH/src/github.com/docker/containerd" \
|
&& cd "$GOPATH/src/github.com/docker/containerd" \
|
||||||
&& git checkout -q "$CONTAINERD_COMMIT" \
|
&& git checkout -q "$CONTAINERD_COMMIT" \
|
||||||
&& make static \
|
&& make static \
|
||||||
|
|
|
@ -199,7 +199,7 @@ RUN set -x \
|
||||||
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
|
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
&& git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
||||||
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
|
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
|
||||||
&& git checkout -q "$RUNC_COMMIT" \
|
&& git checkout -q "$RUNC_COMMIT" \
|
||||||
&& make static BUILDTAGS="apparmor selinux" \
|
&& make static BUILDTAGS="apparmor selinux" \
|
||||||
|
@ -209,7 +209,7 @@ RUN set -x \
|
||||||
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
|
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
&& git clone git://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
&& git clone https://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
||||||
&& cd "$GOPATH/src/github.com/docker/containerd" \
|
&& cd "$GOPATH/src/github.com/docker/containerd" \
|
||||||
&& git checkout -q "$CONTAINERD_COMMIT" \
|
&& git checkout -q "$CONTAINERD_COMMIT" \
|
||||||
&& make static \
|
&& make static \
|
||||||
|
|
|
@ -181,7 +181,7 @@ RUN set -x \
|
||||||
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
|
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
&& git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
||||||
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
|
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
|
||||||
&& git checkout -q "$RUNC_COMMIT" \
|
&& git checkout -q "$RUNC_COMMIT" \
|
||||||
&& make static BUILDTAGS="seccomp apparmor selinux" \
|
&& make static BUILDTAGS="seccomp apparmor selinux" \
|
||||||
|
@ -191,7 +191,7 @@ RUN set -x \
|
||||||
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
|
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
&& git clone git://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
&& git clone https://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
||||||
&& cd "$GOPATH/src/github.com/docker/containerd" \
|
&& cd "$GOPATH/src/github.com/docker/containerd" \
|
||||||
&& git checkout -q "$CONTAINERD_COMMIT" \
|
&& git checkout -q "$CONTAINERD_COMMIT" \
|
||||||
&& make static \
|
&& make static \
|
||||||
|
|
|
@ -60,7 +60,7 @@ ENV CGO_LDFLAGS -L/lib
|
||||||
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
|
ENV RUNC_COMMIT d563bd134293c1026976a8f5764d5df5612f1dbf
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
&& git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
||||||
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
|
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
|
||||||
&& git checkout -q "$RUNC_COMMIT" \
|
&& git checkout -q "$RUNC_COMMIT" \
|
||||||
&& make static BUILDTAGS="seccomp apparmor selinux" \
|
&& make static BUILDTAGS="seccomp apparmor selinux" \
|
||||||
|
@ -70,7 +70,7 @@ RUN set -x \
|
||||||
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
|
ENV CONTAINERD_COMMIT c761085e92be09df9d5298f852c328b538f5dc2f
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& export GOPATH="$(mktemp -d)" \
|
&& export GOPATH="$(mktemp -d)" \
|
||||||
&& git clone git://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
&& git clone https://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
||||||
&& cd "$GOPATH/src/github.com/docker/containerd" \
|
&& cd "$GOPATH/src/github.com/docker/containerd" \
|
||||||
&& git checkout -q "$CONTAINERD_COMMIT" \
|
&& git checkout -q "$CONTAINERD_COMMIT" \
|
||||||
&& make static \
|
&& make static \
|
||||||
|
|
|
@ -69,13 +69,13 @@ set -e
|
||||||
# add runc and containerd compile and install
|
# add runc and containerd compile and install
|
||||||
cat >> "$DEST/$version/Dockerfile.build" <<-EOF
|
cat >> "$DEST/$version/Dockerfile.build" <<-EOF
|
||||||
# Install runc
|
# Install runc
|
||||||
RUN git clone git://github.com/opencontainers/runc.git "/go/src/github.com/opencontainers/runc" \
|
RUN git clone https://github.com/opencontainers/runc.git "/go/src/github.com/opencontainers/runc" \
|
||||||
&& cd "/go/src/github.com/opencontainers/runc" \
|
&& cd "/go/src/github.com/opencontainers/runc" \
|
||||||
&& git checkout -q "\$RUNC_COMMIT"
|
&& git checkout -q "\$RUNC_COMMIT"
|
||||||
RUN set -x && export GOPATH="/go" && cd "/go/src/github.com/opencontainers/runc" \
|
RUN set -x && export GOPATH="/go" && cd "/go/src/github.com/opencontainers/runc" \
|
||||||
&& make BUILDTAGS="\$RUNC_BUILDTAGS" && make install
|
&& make BUILDTAGS="\$RUNC_BUILDTAGS" && make install
|
||||||
# Install containerd
|
# Install containerd
|
||||||
RUN git clone git://github.com/docker/containerd.git "/go/src/github.com/docker/containerd" \
|
RUN git clone https://github.com/docker/containerd.git "/go/src/github.com/docker/containerd" \
|
||||||
&& cd "/go/src/github.com/docker/containerd" \
|
&& cd "/go/src/github.com/docker/containerd" \
|
||||||
&& git checkout -q "\$CONTAINERD_COMMIT"
|
&& git checkout -q "\$CONTAINERD_COMMIT"
|
||||||
RUN set -x && export GOPATH="/go" && cd "/go/src/github.com/docker/containerd" && make && make install
|
RUN set -x && export GOPATH="/go" && cd "/go/src/github.com/docker/containerd" && make && make install
|
||||||
|
|
|
@ -97,13 +97,13 @@ set -e
|
||||||
# add runc and containerd compile and install
|
# add runc and containerd compile and install
|
||||||
cat >> "$DEST/$version/Dockerfile.build" <<-EOF
|
cat >> "$DEST/$version/Dockerfile.build" <<-EOF
|
||||||
# Install runc
|
# Install runc
|
||||||
RUN git clone git://github.com/opencontainers/runc.git "/go/src/github.com/opencontainers/runc" \
|
RUN git clone https://github.com/opencontainers/runc.git "/go/src/github.com/opencontainers/runc" \
|
||||||
&& cd "/go/src/github.com/opencontainers/runc" \
|
&& cd "/go/src/github.com/opencontainers/runc" \
|
||||||
&& git checkout -q "\$RUNC_COMMIT"
|
&& git checkout -q "\$RUNC_COMMIT"
|
||||||
RUN set -x && export GOPATH="/go" && cd "/go/src/github.com/opencontainers/runc" \
|
RUN set -x && export GOPATH="/go" && cd "/go/src/github.com/opencontainers/runc" \
|
||||||
&& make BUILDTAGS="\$RUNC_BUILDTAGS" && make install
|
&& make BUILDTAGS="\$RUNC_BUILDTAGS" && make install
|
||||||
# Install containerd
|
# Install containerd
|
||||||
RUN git clone git://github.com/docker/containerd.git "/go/src/github.com/docker/containerd" \
|
RUN git clone https://github.com/docker/containerd.git "/go/src/github.com/docker/containerd" \
|
||||||
&& cd "/go/src/github.com/docker/containerd" \
|
&& cd "/go/src/github.com/docker/containerd" \
|
||||||
&& git checkout -q "\$CONTAINERD_COMMIT"
|
&& git checkout -q "\$CONTAINERD_COMMIT"
|
||||||
RUN set -x && export GOPATH="/go" && cd "/go/src/github.com/docker/containerd" && make && make install
|
RUN set -x && export GOPATH="/go" && cd "/go/src/github.com/docker/containerd" && make && make install
|
||||||
|
|
Loading…
Reference in a new issue