github.com/afbjorklund/moby@v20.10.5+incompatible/hack/make/install-binary (about) 1 #!/usr/bin/env bash 2 3 set -e 4 rm -rf "$DEST" 5 6 install_binary() { 7 local file="$1" 8 local target="${DOCKER_MAKE_INSTALL_PREFIX:=/usr/local}/bin/" 9 if [ "$(go env GOOS)" == "linux" ]; then 10 echo "Installing $(basename $file) to ${target}" 11 mkdir -p "$target" 12 cp -f -L "$file" "$target" 13 else 14 echo "Install is only supported on linux" 15 return 1 16 fi 17 } 18 19 ( 20 DEST="$(dirname $DEST)/binary-daemon" 21 install_binary "${DEST}/dockerd" 22 install_binary "${DEST}/runc" 23 install_binary "${DEST}/containerd" 24 install_binary "${DEST}/ctr" 25 install_binary "${DEST}/containerd-shim" 26 install_binary "${DEST}/containerd-shim-runc-v2" 27 install_binary "${DEST}/docker-proxy" 28 install_binary "${DEST}/docker-init" 29 install_binary "${DEST}/rootlesskit" 30 install_binary "${DEST}/rootlesskit-docker-proxy" 31 install_binary "${DEST}/dockerd-rootless.sh" 32 install_binary "${DEST}/dockerd-rootless-setuptool.sh" 33 if [ -f "${DEST}/vpnkit" ]; then 34 install_binary "${DEST}/vpnkit" 35 fi 36 )