From 3184fd74f11b7691d203f3a31ceb02f41a11decc Mon Sep 17 00:00:00 2001 From: Stephan Erb Date: Tue, 2 Aug 2016 23:47:59 +0200 Subject: [PATCH] Use Docker host network rather than bridging. The default bridge network is known to be slow (1) and potentially flaky (2). Switching to host networking is a desperate attempt to reduce flaps in our nightly package builds. (1) https://github.com/docker/docker/issues/7857 (2) https://github.com/docker/docker/issues/11407 Reviewed at https://reviews.apache.org/r/50716/ --- build-artifact.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build-artifact.sh b/build-artifact.sh index 333c7a4..e4efe5f 100755 --- a/build-artifact.sh +++ b/build-artifact.sh @@ -34,6 +34,7 @@ run_build() { docker run \ -e AURORA_VERSION=$AURORA_VERSION \ + --net=host \ -v "$(pwd)/specs:/specs:ro" \ -v "$(realpath $RELEASE_TAR):/src.tar.gz:ro" \ -t "$IMAGE_NAME" /build.sh