Skip to content

Commit 3123b42

Browse files
committed
Increase timeout for yarn install in Docker builds
Otherwise we run into problems where Docker Hub's limited machines timeout trying to download our dependencies
1 parent 05a2cb1 commit 3123b42

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ WORKDIR /src
1515

1616
COPY . /src
1717
RUN dos2unix /src/scripts/docker-link-repos.sh && sh /src/scripts/docker-link-repos.sh
18-
RUN yarn install
18+
RUN yarn --network-timeout=100000 install
1919
RUN yarn build
2020

2121
# Copy the config now so that we don't create another layer in the app image

‎scripts/docker-link-repos.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ git clone $JS_SDK_REPO js-sdk
1313
cd js-sdk
1414
git checkout $JS_SDK_BRANCH
1515
yarn link
16-
yarn install
16+
yarn --network-timeout=100000 install
1717
cd ../
1818

1919
echo "Linking react-sdk"
@@ -22,7 +22,7 @@ cd react-sdk
2222
git checkout $REACT_SDK_BRANCH
2323
yarn link
2424
yarn link matrix-js-sdk
25-
yarn install
25+
yarn --network-timeout=100000 install
2626
cd ../
2727

2828
echo "Setting up riot-web with react-sdk and js-sdk packages"

0 commit comments

Comments
 (0)