Skip to content

Commit

Permalink
[CI] Fix build.sh to propagate --network=host to the docker build com…
Browse files Browse the repository at this point in the history
…mand (apache#5336)

* when passing --net=host to build.sh it needs to be also
   sent as --network=host to "docker build", so that both
   build and run will use the same network configuration
  • Loading branch information
leandron authored and dhruvaray committed Apr 28, 2020
1 parent 747a4a8 commit d7c977c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ fi

if [[ "$1" == "--net=host" ]]; then
CI_DOCKER_EXTRA_PARAMS+=('--net=host')
CI_DOCKER_BUILD_EXTRA_PARAMS+=("--network=host")
shift 1
fi

Expand Down

0 comments on commit d7c977c

Please sign in to comment.