Skip to content

Commit 32e8bda

Browse files
committed
Use public DNS server instead of 169.254.169.254 on CI.
Tries to workaround travis-ci/travis-ci#9696.
1 parent 6e7afff commit 32e8bda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ci/docker/run.sh

+4
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ fi
118118
# goes ahead and sets it for all builders.
119119
args="$args --privileged"
120120

121+
if [ "$CI" != "" ]; then
122+
args="$args --dns 8.8.8.8 --dns 8.8.4.4 --dns 1.1.1.1 --dns 1.0.0.1"
123+
fi
124+
121125
exec docker \
122126
run \
123127
--volume "$root_dir:/checkout:ro" \

0 commit comments

Comments
 (0)