summaryrefslogtreecommitdiff
path: root/hack/make/install-binary
diff options
context:
space:
mode:
authorDaniel Nephin <dnephin@docker.com>2017-10-31 12:58:59 -0400
committerDaniel Nephin <dnephin@docker.com>2017-10-31 18:37:05 -0400
commiteef85648e43fef2ec73462fd3d734947384cb16e (patch)
tree7023ea67e4f27323b486d85b9846dc1fc588931d /hack/make/install-binary
parent147ec3be2e7fe5d35553401990317cf49088ec86 (diff)
downloaddocker-eef85648e43fef2ec73462fd3d734947384cb16e.tar.gz
Remove packaging scripts
These scripts have not been used for a while now, and should not be used again because they are for releasing docker, not moby Signed-off-by: Daniel Nephin <dnephin@docker.com>
Diffstat (limited to 'hack/make/install-binary')
-rw-r--r--[-rwxr-xr-x]hack/make/install-binary23
1 files changed, 22 insertions, 1 deletions
diff --git a/hack/make/install-binary b/hack/make/install-binary
index 57aa1a28c1..f6a4361fdb 100755..100644
--- a/hack/make/install-binary
+++ b/hack/make/install-binary
@@ -3,6 +3,27 @@
set -e
rm -rf "$DEST"
+install_binary() {
+ local file="$1"
+ local target="${DOCKER_MAKE_INSTALL_PREFIX:=/usr/local}/bin/"
+ if [ "$(go env GOOS)" == "linux" ]; then
+ 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
+}
+
(
- source "${MAKEDIR}/install-binary-daemon"
+ DEST="$(dirname $DEST)/binary-daemon"
+ source "${MAKEDIR}/.binary-setup"
+ install_binary "${DEST}/${DOCKER_DAEMON_BINARY_NAME}"
+ install_binary "${DEST}/${DOCKER_RUNC_BINARY_NAME}"
+ install_binary "${DEST}/${DOCKER_CONTAINERD_BINARY_NAME}"
+ install_binary "${DEST}/${DOCKER_CONTAINERD_CTR_BINARY_NAME}"
+ install_binary "${DEST}/${DOCKER_CONTAINERD_SHIM_BINARY_NAME}"
+ install_binary "${DEST}/${DOCKER_PROXY_BINARY_NAME}"
+ install_binary "${DEST}/${DOCKER_INIT_BINARY_NAME}"
)