| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | # docker-proxy is Linux only |
| 6 | [ "$(go env GOOS)" != 'linux' ] || ( |
| 7 | export LDFLAGS_STATIC='' |
| 8 | export BUILDFLAGS=("${BUILDFLAGS[@]/netgo /}") # disable netgo, since we don't need it for a dynamic binary |
| 9 | export BUILDFLAGS=("${BUILDFLAGS[@]/osusergo /}") # ditto for osusergo |
| 10 | export BUILDFLAGS=("${BUILDFLAGS[@]/static_build /}") # we're not building a "static" binary here |
| 11 | |
| 12 | GO_PACKAGE='github.com/docker/docker/cmd/docker-proxy' |
| 13 | BINARY_NAME='docker-proxy' |
| 14 | source "${MAKEDIR}/.binary" |
| 15 | ) |