diff --git a/.circleci/config.yml b/.circleci/config.yml index 53a10bd21..82c825869 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -433,7 +433,7 @@ jobs: - ~/.cache/pre-commit - run: name: Install Dependencies - command: yarn + command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn - save_cache: name: Save Yarn Package Cache key: yarn-packages-{{ checksum "yarn.lock" }} @@ -494,7 +494,7 @@ jobs: - yarn-packages-server-{{ checksum "yarn.lock" }} - run: name: Install Dependencies - command: yarn + command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn - save_cache: name: Save Yarn Package Cache @@ -650,7 +650,7 @@ jobs: - yarn-packages-server-{{ checksum "yarn.lock" }} - run: name: Install Dependencies - command: yarn + command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn - save_cache: name: Save Yarn Package Cache @@ -679,7 +679,7 @@ jobs: - yarn-packages-server-{{ checksum "yarn.lock" }} - run: name: Install Dependencies - command: yarn + command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn - save_cache: name: Save Yarn Package Cache @@ -730,7 +730,7 @@ jobs: - yarn-packages-server-{{ checksum "yarn.lock" }} - run: name: Install Dependencies - command: yarn + command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn - save_cache: name: Save Yarn Package Cache @@ -771,7 +771,7 @@ jobs: - yarn-packages-server-{{ checksum "yarn.lock" }} - run: name: Install Dependencies - command: yarn + command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn - save_cache: name: Save Yarn Package Cache @@ -819,7 +819,7 @@ jobs: - yarn-packages-server-{{ checksum "yarn.lock" }} - run: name: Install Dependencies - command: yarn + command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn - save_cache: name: Save Yarn Package Cache @@ -849,7 +849,7 @@ jobs: - yarn-packages-server-{{ checksum "yarn.lock" }} - run: name: Install Dependencies - command: yarn + command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn - save_cache: name: Save Yarn Package Cache @@ -898,7 +898,7 @@ jobs: - yarn-packages-server-{{ checksum "yarn.lock" }} - run: name: Install Dependencies - command: yarn + command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn - save_cache: name: Save Yarn Package Cache @@ -933,7 +933,7 @@ jobs: - yarn-packages-server-{{ checksum "yarn.lock" }} - run: name: Install Dependencies - command: yarn + command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn - save_cache: name: Save Yarn Package Cache key: yarn-packages-server-{{ checksum "yarn.lock" }} @@ -1218,7 +1218,7 @@ jobs: - yarn-packages-{{ checksum "yarn.lock" }} - run: name: Install Dependencies - command: yarn + command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn - save_cache: name: Save Yarn Package Cache key: yarn-packages-{{ checksum "yarn.lock" }} @@ -1289,7 +1289,7 @@ jobs: - yarn-packages-server-{{ checksum "yarn.lock" }} - run: name: Install Dependencies - command: yarn + command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn - save_cache: name: Save Yarn Package Cache key: yarn-packages-server-{{ checksum "yarn.lock" }} diff --git a/.devcontainer/postCreateCommand.sh b/.devcontainer/postCreateCommand.sh index 7b8817014..5074ca4d5 100755 --- a/.devcontainer/postCreateCommand.sh +++ b/.devcontainer/postCreateCommand.sh @@ -13,5 +13,5 @@ cp -n "${GIT_ROOT}/packages/server/.env-example" "${GIT_ROOT}/packages/server/.e cp -n "${GIT_ROOT}/packages/frontend-2/.env.example" "${GIT_ROOT}/packages/frontend-2/.env" || true echo "Installing nodejs dependencies and building shared packages" -yarn +PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn yarn build:public diff --git a/packages/fileimport-service/Dockerfile b/packages/fileimport-service/Dockerfile index affd23451..79fbf235b 100644 --- a/packages/fileimport-service/Dockerfile +++ b/packages/fileimport-service/Dockerfile @@ -44,7 +44,7 @@ COPY packages/frontend-2/type-augmentations/stubs packages/frontend-2/type-augme COPY packages/shared/package.json packages/shared/ COPY packages/fileimport-service/package.json packages/fileimport-service/ -RUN yarn workspaces focus --all +RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus --all # build shared libraries COPY packages/shared packages/shared/ diff --git a/packages/frontend-2/Dockerfile b/packages/frontend-2/Dockerfile index d66becb62..9773726c5 100644 --- a/packages/frontend-2/Dockerfile +++ b/packages/frontend-2/Dockerfile @@ -30,7 +30,7 @@ COPY packages/tailwind-theme ./packages/tailwind-theme/ COPY packages/frontend-2 ./packages/frontend-2/ # hadolint ignore=DL3059 -RUN yarn workspaces focus -A +RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus -A # hadolint ignore=DL3059 RUN yarn workspaces foreach --exclude "@speckle/frontend-2" -W run build diff --git a/packages/monitor-deployment/Dockerfile b/packages/monitor-deployment/Dockerfile index 6931f0a0d..fc611e466 100644 --- a/packages/monitor-deployment/Dockerfile +++ b/packages/monitor-deployment/Dockerfile @@ -33,7 +33,7 @@ COPY package.json yarn.lock ./ COPY packages/shared/package.json ./packages/shared/ COPY packages/monitor-deployment/package.json ./packages/monitor-deployment/ -RUN yarn workspaces focus -A && yarn install +RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus -A # Only copy in the relevant source files for the dependencies COPY packages/shared ./packages/shared/ @@ -42,7 +42,7 @@ COPY packages/monitor-deployment ./packages/monitor-deployment/ RUN yarn workspaces foreach -W run build WORKDIR /speckle-server/packages/monitor-deployment -RUN yarn workspaces focus --production +RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus --production FROM gcr.io/distroless/nodejs18-debian12:nonroot@sha256:afdea027580f7afcaf1f316b2b3806690c297cb3ce6ddc5cf6a15804dc1c790f AS production-stage diff --git a/packages/preview-service/Dockerfile b/packages/preview-service/Dockerfile index f33cb89aa..1659710bd 100644 --- a/packages/preview-service/Dockerfile +++ b/packages/preview-service/Dockerfile @@ -33,7 +33,7 @@ COPY packages/viewer/package.json ./packages/viewer/ COPY packages/objectloader/package.json ./packages/objectloader/ COPY packages/shared/package.json ./packages/shared/ -RUN yarn workspaces focus -A && yarn +RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus -A # Onyl copy in the relevant source files for the dependencies COPY packages/shared ./packages/shared/ @@ -99,7 +99,7 @@ COPY --link --from=build-stage /speckle-server/packages/preview-frontend/dist ./ WORKDIR /speckle-server/packages/preview-service -RUN yarn workspaces focus --production +RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus --production RUN groupadd -g 30000 -r pptruser && \ useradd -r -g pptruser -G audio,video -u 800 pptruser && \ diff --git a/packages/server/Dockerfile b/packages/server/Dockerfile index 7a945380f..bdddb2d67 100644 --- a/packages/server/Dockerfile +++ b/packages/server/Dockerfile @@ -34,7 +34,7 @@ COPY packages/server/package.json ./packages/server/ COPY packages/shared/package.json ./packages/shared/ COPY packages/objectloader/package.json ./packages/objectloader/ -RUN yarn workspaces focus --all +RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus --all # build shared libraries COPY packages/server ./packages/server/ @@ -60,7 +60,7 @@ COPY packages/shared/package.json ./packages/shared/ COPY packages/objectloader/package.json ./packages/objectloader/ WORKDIR /speckle-server/packages/server -RUN yarn workspaces focus --production +RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus --production FROM gcr.io/distroless/nodejs18-debian12:nonroot@sha256:afdea027580f7afcaf1f316b2b3806690c297cb3ce6ddc5cf6a15804dc1c790f AS production-stage diff --git a/packages/webhook-service/Dockerfile b/packages/webhook-service/Dockerfile index ffa0eda7e..7bacb3377 100644 --- a/packages/webhook-service/Dockerfile +++ b/packages/webhook-service/Dockerfile @@ -15,7 +15,7 @@ COPY packages/frontend-2/type-augmentations/stubs ./packages/frontend-2/type-aug COPY packages/webhook-service/package.json ./packages/webhook-service/ COPY packages/shared/package.json ./packages/shared/ -RUN yarn workspaces focus --all +RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus --all COPY packages/shared ./packages/shared/ COPY packages/webhook-service/src ./packages/webhook-service/ @@ -56,7 +56,7 @@ COPY packages/webhook-service/package.json ./packages/webhook-service/ COPY packages/shared/package.json ./packages/shared/ WORKDIR /speckle-server/packages/webhook-service -RUN yarn workspaces focus --production +RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus --production FROM gcr.io/distroless/nodejs18-debian12:nonroot@sha256:afdea027580f7afcaf1f316b2b3806690c297cb3ce6ddc5cf6a15804dc1c790f AS production-stage ARG NODE_ENV