diff --git a/system-test/Dockerfile.linux b/system-test/Dockerfile.linux index 43c6597f..eae7a42a 100644 --- a/system-test/Dockerfile.linux +++ b/system-test/Dockerfile.linux @@ -15,6 +15,8 @@ RUN apt-get update && apt-get install -y curl $ADDITIONAL_PACKAGES \ && rm -rf /var/lib/apt/lists/* ENV NVM_DIR /bin/.nvm +# Force ipv4 results first b/275122541 +ENV NODE_OPTIONS="--dns-result-order=ipv4first" RUN mkdir -p $NVM_DIR diff --git a/system-test/Dockerfile.node-alpine b/system-test/Dockerfile.node-alpine index b1980deb..72ad23f8 100644 --- a/system-test/Dockerfile.node-alpine +++ b/system-test/Dockerfile.node-alpine @@ -8,6 +8,8 @@ RUN go get github.com/google/pprof FROM node:${NODE_VERSION}-alpine ARG ADDITIONAL_PACKAGES +# Force ipv4 results first b/275122541 +ENV NODE_OPTIONS="--dns-result-order=ipv4first" RUN apk add --no-cache bash $ADDITIONAL_PACKAGES WORKDIR /root/