Skip to content

Commit

Permalink
Use public DNS server instead of 169.254.169.254 on CI.
Browse files Browse the repository at this point in the history
Tries to workaround travis-ci/travis-ci#9696.
  • Loading branch information
kennytm committed Jun 7, 2018
1 parent 6e7afff commit 32e8bda
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ci/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ fi
# goes ahead and sets it for all builders.
args="$args --privileged"

if [ "$CI" != "" ]; then
args="$args --dns 8.8.8.8 --dns 8.8.4.4 --dns 1.1.1.1 --dns 1.0.0.1"
fi

exec docker \
run \
--volume "$root_dir:/checkout:ro" \
Expand Down

0 comments on commit 32e8bda

Please sign in to comment.