File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ BUILDX_DIR=$(realpath $(CURDIR)/../src/github.com/docker/buildx)
6
6
7
7
GEN_STATIC_VER =$(shell ./gen-static-ver $(CLI_DIR ) $(VERSION ) )
8
8
HASH_CMD =docker run -v $(CURDIR ) :/sum -w /sum debian:jessie bash hash_files
9
+ LDD_RUN =ldd >/dev/null 2>/dev/null
9
10
DIR_TO_HASH: =build/linux
10
11
DOCKER_CLI_GOLANG_IMG =golang:$(GO_VERSION )
11
12
@@ -43,6 +44,7 @@ static-linux: static-cli static-engine static-buildx-plugin ## create tgz
43
44
mkdir -p build/linux/docker
44
45
cp $(CLI_DIR ) /build/docker build/linux/docker/
45
46
for f in dockerd containerd ctr containerd-shim containerd-shim-runc-v2 docker-init docker-proxy runc; do \
47
+ if $( LDD_RUN) $( ENGINE_DIR) /bundles/binary-daemon/$$ f; then echo " $$ f is not static, exiting..." ; exit 1; fi ; \
46
48
cp -L $(ENGINE_DIR ) /bundles/binary-daemon/$$ f build/linux/docker/$$ f; \
47
49
done
48
50
tar -C build/linux -c -z -f build/linux/docker-$(GEN_STATIC_VER ) .tgz docker
@@ -51,6 +53,7 @@ static-linux: static-cli static-engine static-buildx-plugin ## create tgz
51
53
mkdir -p build/linux/docker-rootless-extras
52
54
for f in rootlesskit rootlesskit-docker-proxy dockerd-rootless.sh dockerd-rootless-setuptool.sh vpnkit; do \
53
55
if [ -f $(ENGINE_DIR)/bundles/binary-daemon/$$f ]; then \
56
+ if $(LDD_RUN) $(ENGINE_DIR)/bundles/binary-daemon/$$f; then echo "$$f is not static, exiting..."; exit 1; fi; \
54
57
cp -L $(ENGINE_DIR)/bundles/binary-daemon/$$f build/linux/docker-rootless-extras/$$f; \
55
58
fi \
56
59
done
You can’t perform that action at this time.
0 commit comments