Skip to content

Commit 017c263

Browse files
authored
test: fix kokoro system-test by forcing ipv4 in tests (#242)
1 parent 0eabf2d commit 017c263

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

system-test/Dockerfile.linux

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ RUN apt-get update && apt-get install -y curl $ADDITIONAL_PACKAGES \
1515
&& rm -rf /var/lib/apt/lists/*
1616

1717
ENV NVM_DIR /bin/.nvm
18+
# Force ipv4 results first b/275122541
19+
ENV NODE_OPTIONS="--dns-result-order=ipv4first"
1820
RUN mkdir -p $NVM_DIR
1921

2022

system-test/Dockerfile.node-alpine

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ RUN go get github.com/google/pprof
88
FROM node:${NODE_VERSION}-alpine
99

1010
ARG ADDITIONAL_PACKAGES
11+
# Force ipv4 results first b/275122541
12+
ENV NODE_OPTIONS="--dns-result-order=ipv4first"
1113

1214
RUN apk add --no-cache bash $ADDITIONAL_PACKAGES
1315
WORKDIR /root/

0 commit comments

Comments
 (0)