Browse code

Add `DOCKER_BUILD_GOGC` to tweak GOGC for compile

Signed-off-by: Brian Goff <cpuguy83@gmail.com>

Brian Goff authored on 2016/01/27 06:17:05
Showing 2 changed files
... ...
@@ -31,12 +31,14 @@ export DOCKERFILE
31 31
 # `docs/sources/contributing/devenvironment.md ` and `project/PACKAGERS.md` have some limited documentation of some of these
32 32
 DOCKER_ENVS := \
33 33
 	-e BUILDFLAGS \
34
+	-e DOCKER_BUILD_GOGC \
34 35
 	-e DOCKER_BUILD_PKGS \
35 36
 	-e DOCKER_CLIENTONLY \
36 37
 	-e DOCKER_DEBUG \
37 38
 	-e DOCKER_EXPERIMENTAL \
38 39
 	-e DOCKERFILE \
39 40
 	-e DOCKER_GRAPHDRIVER \
41
+	-e DOCKER_INCREMENTAL_BINARY \
40 42
 	-e DOCKER_REMAP_ROOT \
41 43
 	-e DOCKER_STORAGE_OPTS \
42 44
 	-e DOCKER_USERLANDPROXY \
... ...
@@ -8,6 +8,8 @@ BINARY_FULLNAME="$BINARY_NAME$BINARY_EXTENSION"
8 8
 source "${MAKEDIR}/.go-autogen"
9 9
 
10 10
 (
11
+export GOGC=${DOCKER_BUILD_GOGC:-1000}
12
+
11 13
 if [ "$(go env GOOS)/$(go env GOARCH)" != "$(go env GOHOSTOS)/$(go env GOHOSTARCH)" ]; then
12 14
 	# must be cross-compiling!
13 15
 	case "$(go env GOOS)/$(go env GOARCH)" in