Skip to content

Commit

Permalink
cherry-pick(#23260): chore: move to npx playwright-core install when …
Browse files Browse the repository at this point in the history
…using core
  • Loading branch information
pavelfeldman committed May 24, 2023
1 parent 2f3d88f commit 4417a97
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/playwright-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"./types/structs": "./types/structs.d.ts"
},
"bin": {
"playwright": "./cli.js"
"playwright-core": "./cli.js"
},
"types": "types/types.d.ts"
}
4 changes: 2 additions & 2 deletions utils/docker/Dockerfile.focal
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN mkdir /ms-playwright && \
mkdir /ms-playwright-agent && \
cd /ms-playwright-agent && npm init -y && \
npm i /tmp/playwright-core.tar.gz && \
npx playwright mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
npx playwright install --with-deps && rm -rf /var/lib/apt/lists/* && \
npx playwright-core mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
npx playwright-core install --with-deps && rm -rf /var/lib/apt/lists/* && \
rm /tmp/playwright-core.tar.gz && \
chmod -R 777 /ms-playwright
4 changes: 2 additions & 2 deletions utils/docker/Dockerfile.jammy
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ RUN mkdir /ms-playwright && \
mkdir /ms-playwright-agent && \
cd /ms-playwright-agent && npm init -y && \
npm i /tmp/playwright-core.tar.gz && \
npx playwright mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
npx playwright install --with-deps && rm -rf /var/lib/apt/lists/* && \
npx playwright-core mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
npx playwright-core install --with-deps && rm -rf /var/lib/apt/lists/* && \
rm /tmp/playwright-core.tar.gz && \
rm -rf /ms-playwright-agent && \
chmod -R 777 /ms-playwright
2 changes: 1 addition & 1 deletion utils/linux-browser-dependencies/inside_docker/process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ apt-get update && apt-get install -y curl && \
apt-get update && apt-get install -y apt-file && apt-file update

# Install tip-of-tree playwright-core and browsers
mkdir /root/tmp && cd /root/tmp && npm init -y && npm i /root/hostfolder/playwright-core.tar.gz && npx playwright install
mkdir /root/tmp && cd /root/tmp && npm init -y && npm i /root/hostfolder/playwright-core.tar.gz && npx playwright-core install

cp /root/hostfolder/inside_docker/list_dependencies.js /root/tmp/list_dependencies.js

Expand Down

0 comments on commit 4417a97

Please sign in to comment.