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 (#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 committed Apr 15, 2020
1 parent e7fcd9e commit 92c7826
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 92c7826

Please sign in to comment.