mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
9e7651db4d
Add a proxy to support 'docker daemon' Fix configFile option, and remove a test that is no longer relevant. Remove daemon build tag. Remove DOCKER_CLIENTONLY from build scripts. Signed-off-by: Daniel Nephin <dnephin@docker.com> Change docker-daemon to dockerd. Signed-off-by: Daniel Nephin <dnephin@docker.com>
45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# explicit list of os/arch combos that support being a daemon
|
|
declare -A daemonSupporting
|
|
daemonSupporting=(
|
|
[linux/amd64]=1
|
|
[windows/amd64]=1
|
|
)
|
|
|
|
# if we have our linux/amd64 version compiled, let's symlink it in
|
|
if [ -x "$DEST/../binary-daemon/dockerd-$VERSION" ]; then
|
|
mkdir -p "$DEST/linux/amd64"
|
|
(
|
|
cd "$DEST/linux/amd64"
|
|
ln -s ../../../binary-daemon/* ./
|
|
ln -s ../../../binary-client/* ./
|
|
)
|
|
echo "Created symlinks:" "$DEST/linux/amd64/"*
|
|
fi
|
|
|
|
for platform in $DOCKER_CROSSPLATFORMS; do
|
|
(
|
|
export DEST="$DEST/$platform" # bundles/VERSION/cross/GOOS/GOARCH/docker-VERSION
|
|
mkdir -p "$DEST"
|
|
ABS_DEST="$(cd "$DEST" && pwd -P)"
|
|
export GOOS=${platform%/*}
|
|
export GOARCH=${platform##*/}
|
|
|
|
# !!! TEMPORARY HACK !!!
|
|
# See Dockerfile
|
|
if [ "$platform" == "windows/amd64" ]; then
|
|
export GOROOT="/usr/local/go${HACK_GO_VERSION}"
|
|
export PATH=$(echo "$PATH" | sed "s,:/usr/local/go/bin:,:/usr/local/go${HACK_GO_VERSION}/bin:,")
|
|
fi
|
|
|
|
if [ -z "${daemonSupporting[$platform]}" ]; then
|
|
export LDFLAGS_STATIC_DOCKER="" # we just need a simple client for these platforms
|
|
source "${MAKEDIR}/binary-client"
|
|
else
|
|
source "${MAKEDIR}/binary-client"
|
|
source "${MAKEDIR}/binary-daemon"
|
|
fi
|
|
)
|
|
done
|