Skip to content

Commit 62a8286

Browse files
authored
Merge pull request #3532 from yankay/remove-ipfs
Remove `ipfs` binary from `nerdctl-full`
2 parents 6abe279 + ddeae20 commit 62a8286

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ ARG BYPASS4NETNS_VERSION=v0.4.1
3636
# Extra deps: FUSE-OverlayFS
3737
ARG FUSE_OVERLAYFS_VERSION=v1.14
3838
ARG CONTAINERD_FUSE_OVERLAYFS_VERSION=v1.0.8
39-
# Extra deps: IPFS
40-
ARG KUBO_VERSION=v0.29.0
4139
# Extra deps: Init
4240
ARG TINI_VERSION=v0.19.0
4341
# Extra deps: Debug
@@ -50,6 +48,7 @@ ARG CONTAINERIZED_SYSTEMD_VERSION=v0.1.1
5048
ARG GOTESTSUM_VERSION=v1.12.0
5149
ARG NYDUS_VERSION=v2.2.5
5250
ARG SOCI_SNAPSHOTTER_VERSION=0.7.0
51+
ARG KUBO_VERSION=v0.29.0
5352

5453
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.5.0 AS xx
5554

@@ -213,9 +212,6 @@ RUN fname="containerd-fuse-overlayfs-${CONTAINERD_FUSE_OVERLAYFS_VERSION/v}-${TA
213212
tar xzf "${fname}" -C /out/bin && \
214213
rm -f "${fname}" && \
215214
echo "- containerd-fuse-overlayfs: ${CONTAINERD_FUSE_OVERLAYFS_VERSION}" >> /out/share/doc/nerdctl-full/README.md
216-
ARG KUBO_VERSION
217-
COPY --from=build-kubo /out/${TARGETARCH:-amd64}/* /out/bin/
218-
RUN echo "- Kubo (IPFS): ${KUBO_VERSION}" >> /out/share/doc/nerdctl-full/README.md
219215
ARG TINI_VERSION
220216
RUN fname="tini-static-${TARGETARCH:-amd64}" && \
221217
curl -o "${fname}" -fsSL --proto '=https' --tlsv1.2 "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/${fname}" && \
@@ -234,7 +230,6 @@ RUN echo "" >> /out/share/doc/nerdctl-full/README.md && \
234230
echo "## License" >> /out/share/doc/nerdctl-full/README.md && \
235231
echo "- bin/slirp4netns: [GNU GENERAL PUBLIC LICENSE, Version 2](https://github.com/rootless-containers/slirp4netns/blob/${SLIRP4NETNS_VERSION}/COPYING)" >> /out/share/doc/nerdctl-full/README.md && \
236232
echo "- bin/fuse-overlayfs: [GNU GENERAL PUBLIC LICENSE, Version 2](https://github.com/containers/fuse-overlayfs/blob/${FUSE_OVERLAYFS_VERSION}/COPYING)" >> /out/share/doc/nerdctl-full/README.md && \
237-
echo "- bin/ipfs: [Combination of MIT-only license and dual MIT/Apache-2.0 license](https://github.com/ipfs/kubo/blob/${KUBO_VERSION}/LICENSE)" >> /out/share/doc/nerdctl-full/README.md && \
238233
echo "- bin/{runc,bypass4netns,bypass4netnsd}: Apache License 2.0, statically linked with libseccomp ([LGPL 2.1](https://github.com/seccomp/libseccomp/blob/main/LICENSE), source code available at https://github.com/seccomp/libseccomp/)" >> /out/share/doc/nerdctl-full/README.md && \
239234
echo "- bin/tini: [MIT License](https://github.com/krallin/tini/blob/${TINI_VERSION}/LICENSE)" >> /out/share/doc/nerdctl-full/README.md && \
240235
echo "- Other files: [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)" >> /out/share/doc/nerdctl-full/README.md && \
@@ -300,6 +295,7 @@ RUN fname="soci-snapshotter-${SOCI_SNAPSHOTTER_VERSION}-${TARGETOS:-linux}-${TAR
300295
curl -o "${fname}" -fsSL --proto '=https' --tlsv1.2 "https://github.com/awslabs/soci-snapshotter/releases/download/v${SOCI_SNAPSHOTTER_VERSION}/${fname}" && \
301296
tar -C /usr/local/bin -xvf "${fname}" soci soci-snapshotter-grpc
302297
# enable offline ipfs for integration test
298+
COPY --from=build-kubo /out/${TARGETARCH:-amd64}/* /usr/local/bin/
303299
COPY ./Dockerfile.d/test-integration-etc_containerd-stargz-grpc_config.toml /etc/containerd-stargz-grpc/config.toml
304300
COPY ./Dockerfile.d/test-integration-ipfs-offline.service /usr/local/lib/systemd/system/
305301
COPY ./Dockerfile.d/test-integration-buildkit-nerdctl-test.service /usr/local/lib/systemd/system/

0 commit comments

Comments
 (0)