Skip to content

Commit 14186da

Browse files
authored
chore: Use 120s timeout for yarn in docker building (GitHub actions issue) (#6236)
1 parent df40a62 commit 14186da

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

packages/cubejs-docker/dev-alpine.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ COPY packages/cubejs-client-ws-transport/package.json packages/cubejs-client-ws-
8282
COPY packages/cubejs-playground/package.json packages/cubejs-playground/package.json
8383

8484
RUN yarn policies set-version v1.22.19
85+
# Yarn v1 uses aggressive timeouts with summing time spending on fs, https://github.com/yarnpkg/yarn/issues/4890
86+
RUN yarn config set network-timeout 120000 -g
8587

8688
# There is a problem with release process.
8789
# We are doing version bump without updating lock files for the docker package.

packages/cubejs-docker/dev.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ COPY packages/cubejs-client-ws-transport/package.json packages/cubejs-client-ws-
8686
COPY packages/cubejs-playground/package.json packages/cubejs-playground/package.json
8787

8888
RUN yarn policies set-version v1.22.19
89+
# Yarn v1 uses aggressive timeouts with summing time spending on fs, https://github.com/yarnpkg/yarn/issues/4890
90+
RUN yarn config set network-timeout 120000 -g
8991

9092
# There is a problem with release process.
9193
# We are doing version bump without updating lock files for the docker package.

packages/cubejs-docker/latest-alpine-jdk.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ WORKDIR /cube
44
COPY . .
55

66
RUN yarn policies set-version v1.22.19
7+
# Yarn v1 uses aggressive timeouts with summing time spending on fs, https://github.com/yarnpkg/yarn/issues/4890
8+
RUN yarn config set network-timeout 120000 -g
79

810
# Required for node-oracledb to buld on ARM64
911
RUN apk update \

packages/cubejs-docker/latest-alpine.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ WORKDIR /cube
44
COPY . .
55

66
RUN yarn policies set-version v1.22.19
7+
# Yarn v1 uses aggressive timeouts with summing time spending on fs, https://github.com/yarnpkg/yarn/issues/4890
8+
RUN yarn config set network-timeout 120000 -g
79

810
# Required for node-oracledb to buld on ARM64
911
RUN apk update \

packages/cubejs-docker/latest-debian-jdk.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ WORKDIR /cube
55
COPY . .
66

77
RUN yarn policies set-version v1.22.19
8+
# Yarn v1 uses aggressive timeouts with summing time spending on fs, https://github.com/yarnpkg/yarn/issues/4890
9+
RUN yarn config set network-timeout 120000 -g
810

911
# Required for node-oracledb to buld on ARM64
1012
RUN apt-get update \

packages/cubejs-docker/latest.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ RUN apt-get update \
1313
# We are copying root yarn.lock file to the context folder during the Publish GH
1414
# action. So, a process will use the root lock file here.
1515
RUN yarn install && yarn cache clean
16+
# Yarn v1 uses aggressive timeouts with summing time spending on fs, https://github.com/yarnpkg/yarn/issues/4890
17+
RUN yarn config set network-timeout 120000 -g
1618

1719
FROM node:16.19.1-bullseye-slim
1820

packages/cubejs-docker/local.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ RUN cd /cube-build && yarn run link:dev
2525
COPY package.json.local package.json
2626

2727
RUN yarn policies set-version v1.22.19
28+
# Yarn v1 uses aggressive timeouts with summing time spending on fs, https://github.com/yarnpkg/yarn/issues/4890
29+
RUN yarn config set network-timeout 120000 -g
2830

2931
# Required for node-oracledb to buld on ARM64
3032
RUN apt-get update \

0 commit comments

Comments
 (0)