2017-02-13 14:01:54 -05:00
|
|
|
#!/usr/bin/env bash
|
2016-05-23 21:44:43 -04:00
|
|
|
|
|
|
|
set -e
|
|
|
|
rm -rf "$DEST"
|
|
|
|
|
2017-10-31 12:58:59 -04:00
|
|
|
install_binary() {
|
|
|
|
local file="$1"
|
|
|
|
local target="${DOCKER_MAKE_INSTALL_PREFIX:=/usr/local}/bin/"
|
2019-01-09 20:23:38 -05:00
|
|
|
if [ "$(go env GOOS)" == "linux" ]; then
|
2017-10-31 12:58:59 -04:00
|
|
|
echo "Installing $(basename $file) to ${target}"
|
|
|
|
mkdir -p "$target"
|
|
|
|
cp -f -L "$file" "$target"
|
|
|
|
else
|
|
|
|
echo "Install is only supported on linux"
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2016-05-23 21:44:43 -04:00
|
|
|
(
|
2017-10-31 12:58:59 -04:00
|
|
|
DEST="$(dirname $DEST)/binary-daemon"
|
2020-06-04 23:48:38 -04:00
|
|
|
install_binary "${DEST}/dockerd"
|
|
|
|
install_binary "${DEST}/runc"
|
|
|
|
install_binary "${DEST}/containerd"
|
|
|
|
install_binary "${DEST}/ctr"
|
|
|
|
install_binary "${DEST}/containerd-shim"
|
|
|
|
install_binary "${DEST}/containerd-shim-runc-v2"
|
|
|
|
install_binary "${DEST}/docker-proxy"
|
|
|
|
install_binary "${DEST}/docker-init"
|
|
|
|
install_binary "${DEST}/rootlesskit"
|
|
|
|
install_binary "${DEST}/rootlesskit-docker-proxy"
|
|
|
|
install_binary "${DEST}/dockerd-rootless.sh"
|
|
|
|
install_binary "${DEST}/dockerd-rootless-setuptool.sh"
|
|
|
|
if [ -f "${DEST}/vpnkit" ]; then
|
|
|
|
install_binary "${DEST}/vpnkit"
|
2019-02-05 21:11:18 -05:00
|
|
|
fi
|
2016-05-23 21:44:43 -04:00
|
|
|
)
|