0682468431
This reduces memory usage with a lot of docker proxy processes. On Docker for Mac we are currently carrying a patch to replace the binary as we modify it to forward ports to the Mac rather than the Linux VM, this allows us to simply replace this binary in our packaging with one that has a compatible interface. This patch does not provide an easy way to substitute a binary as the interface is complex and there are few use cases, but where needed this can be done. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
15 lines
540 B
Bash
15 lines
540 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
(
|
|
export BINARY_SHORT_NAME='dockerd'
|
|
export SOURCE_PATH='./cmd/dockerd'
|
|
export IAMSTATIC='false'
|
|
export LDFLAGS_STATIC_DOCKER=''
|
|
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'
|
|
source "${MAKEDIR}/.binary"
|
|
)
|