diff options
| author | Justin Cormack <justin.cormack@docker.com> | 2016-06-03 17:28:14 +0100 |
|---|---|---|
| committer | Justin Cormack <justin.cormack@docker.com> | 2016-07-07 12:53:39 +0100 |
| commit | 0682468431867e3382a759402eb92df5877e310b (patch) | |
| tree | 7b32de0bdf4b510e12a7e82a64f63c663cf5e8e4 /hack/make/dynbinary-daemon | |
| parent | 656c66dd50d5c5b1f4f40eb4f3134e84e5b80fbc (diff) | |
| download | docker-0682468431867e3382a759402eb92df5877e310b.tar.gz | |
Make the docker proxy a standalone binary not a re-exec
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>
Diffstat (limited to 'hack/make/dynbinary-daemon')
| -rw-r--r-- | hack/make/dynbinary-daemon | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hack/make/dynbinary-daemon b/hack/make/dynbinary-daemon index 398b951d85..cd7937859c 100644 --- a/hack/make/dynbinary-daemon +++ b/hack/make/dynbinary-daemon @@ -9,4 +9,7 @@ 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' + source "${MAKEDIR}/.binary" ) |
