From 35fc2e57025196b37f38eb269ca5742a1fad5c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Mon, 9 Oct 2023 23:14:25 +0200 Subject: [PATCH] reqs: Ensure the nydus is statically linked MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabiano FidĂȘncio --- install/pre-install-payload/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/pre-install-payload/Dockerfile b/install/pre-install-payload/Dockerfile index 980496f3..3803da93 100644 --- a/install/pre-install-payload/Dockerfile +++ b/install/pre-install-payload/Dockerfile @@ -72,7 +72,8 @@ ENV GOARCH=${ARCH} RUN mkdir -p ${NODE_DESTINATION}/bin && \ apk add --no-cache ca-certificates build-base git curl && \ git clone ${NYDUS_SNAPSHOTTER_REPO} -b ${NYDUS_SNAPSHOTTER_VERSION} /nydus-snapshotter && \ - make -C /nydus-snapshotter && \ + sed -i -e '/{STATIC_OPTIMIZER_SERVER_BIN}/d' /nydus-snapshotter/Makefile && \ + make -C /nydus-snapshotter static-release && \ chmod +x /nydus-snapshotter/bin/containerd-nydus-grpc && \ chmod +x /nydus-snapshotter/bin/nydus-overlayfs && \ mv /nydus-snapshotter/bin/containerd-nydus-grpc ${NODE_DESTINATION}/bin && \