@@ -75,7 +75,7 @@ ADD hack/git-checkout-tag-with-hash.sh /usr/local/bin/
75
75
FROM build-base-debian AS build-containerd
76
76
ARG TARGETARCH
77
77
ARG CONTAINERD_VERSION
78
- RUN git clone https://github.com/containerd/containerd.git /go/src/github.com/containerd/containerd
78
+ RUN git clone --quiet --depth 1 --branch "${CONTAINERD_VERSION%@*}" https://github.com/containerd/containerd.git /go/src/github.com/containerd/containerd
79
79
WORKDIR /go/src/github.com/containerd/containerd
80
80
RUN git-checkout-tag-with-hash.sh ${CONTAINERD_VERSION} && \
81
81
mkdir -p /out /out/$TARGETARCH && \
@@ -86,7 +86,7 @@ RUN GO=xx-go make STATIC=1 && \
86
86
FROM build-base-debian AS build-runc
87
87
ARG RUNC_VERSION
88
88
ARG TARGETARCH
89
- RUN git clone https://github.com/opencontainers/runc.git /go/src/github.com/opencontainers/runc
89
+ RUN git clone --quiet --depth 1 --branch "${RUNC_VERSION%@*}" https://github.com/opencontainers/runc.git /go/src/github.com/opencontainers/runc
90
90
WORKDIR /go/src/github.com/opencontainers/runc
91
91
RUN git-checkout-tag-with-hash.sh ${RUNC_VERSION} && \
92
92
mkdir -p /out
@@ -97,7 +97,7 @@ RUN GO=xx-go CC=$(xx-info)-gcc STRIP=$(xx-info)-strip make static && \
97
97
FROM build-base-debian AS build-bypass4netns
98
98
ARG BYPASS4NETNS_VERSION
99
99
ARG TARGETARCH
100
- RUN git clone https://github.com/rootless-containers/bypass4netns.git /go/src/github.com/rootless-containers/bypass4netns
100
+ RUN git clone --quiet --depth 1 --branch "${BYPASS4NETNS_VERSION%@*}" https://github.com/rootless-containers/bypass4netns.git /go/src/github.com/rootless-containers/bypass4netns
101
101
WORKDIR /go/src/github.com/rootless-containers/bypass4netns
102
102
RUN git-checkout-tag-with-hash.sh ${BYPASS4NETNS_VERSION} && \
103
103
mkdir -p /out/${TARGETARCH}
@@ -108,7 +108,7 @@ RUN GO=xx-go make static && \
108
108
FROM build-base-debian AS build-kubo
109
109
ARG KUBO_VERSION
110
110
ARG TARGETARCH
111
- RUN git clone https://github.com/ipfs/kubo.git /go/src/github.com/ipfs/kubo
111
+ RUN git clone --quiet --depth 1 --branch "${KUBO_VERSION%@*}" https://github.com/ipfs/kubo.git /go/src/github.com/ipfs/kubo
112
112
WORKDIR /go/src/github.com/ipfs/kubo
113
113
RUN git-checkout-tag-with-hash.sh ${KUBO_VERSION} && \
114
114
mkdir -p /out/${TARGETARCH}
@@ -176,7 +176,7 @@ RUN STARGZ_SNAPSHOTTER_VERSION=${STARGZ_SNAPSHOTTER_VERSION/@BINARY}; \
176
176
mv stargz-snapshotter.service /out/lib/systemd/system/stargz-snapshotter.service && \
177
177
echo "- Stargz Snapshotter: ${STARGZ_SNAPSHOTTER_VERSION}" >> /out/share/doc/nerdctl-full/README.md
178
178
ARG IMGCRYPT_VERSION
179
- RUN git clone https://github.com/containerd/imgcrypt.git /go/src/github.com/containerd/imgcrypt && \
179
+ RUN git clone --quiet --depth 1 --branch "${IMGCRYPT_VERSION%@*}" https://github.com/containerd/imgcrypt.git /go/src/github.com/containerd/imgcrypt && \
180
180
cd /go/src/github.com/containerd/imgcrypt && \
181
181
git-checkout-tag-with-hash.sh "${IMGCRYPT_VERSION}" && \
182
182
CGO_ENABLED=0 make && DESTDIR=/out make install && \
0 commit comments