From 3123b429f788a0b0597fc20081c2b523c192e8d1 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 15 May 2019 15:12:33 -0600 Subject: [PATCH] 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 --- Dockerfile | 2 +- scripts/docker-link-repos.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 79ee1f68c3..e601595c1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ WORKDIR /src COPY . /src RUN dos2unix /src/scripts/docker-link-repos.sh && sh /src/scripts/docker-link-repos.sh -RUN yarn install +RUN yarn --network-timeout=100000 install RUN yarn build # Copy the config now so that we don't create another layer in the app image diff --git a/scripts/docker-link-repos.sh b/scripts/docker-link-repos.sh index 816b2e040c..9f17188ed6 100644 --- a/scripts/docker-link-repos.sh +++ b/scripts/docker-link-repos.sh @@ -13,7 +13,7 @@ git clone $JS_SDK_REPO js-sdk cd js-sdk git checkout $JS_SDK_BRANCH yarn link -yarn install +yarn --network-timeout=100000 install cd ../ echo "Linking react-sdk" @@ -22,7 +22,7 @@ cd react-sdk git checkout $REACT_SDK_BRANCH yarn link yarn link matrix-js-sdk -yarn install +yarn --network-timeout=100000 install cd ../ echo "Setting up riot-web with react-sdk and js-sdk packages"