mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
4da0dc974c
(some) libnetwork tests require docker-proxy so we need to install that in CI. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
14 lines
No EOL
329 B
Bash
14 lines
No EOL
329 B
Bash
#!/usr/bin/env bash
|
|
|
|
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
|
|
} |