Build docker-proxy from git checkout like other external binaries

This means we can vendor libnetwork without special casing, and
it is built the same way as the other external binaries.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
Upstream-commit: 3996975b0840033bda3919440d122d734a4bc66b
Component: engine
This commit is contained in:
Justin Cormack
2016-10-19 00:30:47 +01:00
parent b33468451a
commit 44e77a4b4f
20 changed files with 35 additions and 428 deletions

View File

@ -9,8 +9,4 @@ set -e
export BUILDFLAGS=( "${BUILDFLAGS[@]/netgo /}" ) # disable netgo, since we don't need it for a dynamic binary
export BUILDFLAGS=( "${BUILDFLAGS[@]/static_build /}" ) # we're not building a "static" binary here
source "${MAKEDIR}/.binary"
export BINARY_SHORT_NAME='docker-proxy'
export SOURCE_PATH='./vendor/src/github.com/docker/libnetwork/cmd/proxy'
export LDFLAGS_STATIC_DOCKER='-linkmode=external'
source "${MAKEDIR}/.binary"
)