-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: introduce docker integration #16382
feat: introduce docker integration #16382
Conversation
@aslushnikov When we add docs, make sure we tell people to increase default CPU and mem limit on their docker install (https://playwright.slack.com/archives/C01AG7QGW2F/p1659463173880389?thread_ts=1659428827.669649&cid=C01AG7QGW2F) otherwise they'll likely hit unexpected perf issues if they have a freshly installed Docker-for-Desktop. |
5df033d
to
8a9cb3d
Compare
34dd80c
to
5578b86
Compare
Can you add user docs (either directly here or in another PR) and then I'll review both docs and impl in one? |
c25c957
to
0a3e7ca
Compare
3b06d19
to
add84ca
Compare
This patch introduces the following commands: - `npx playwright docker build` that builds a VRT docker image locally that is based off the `mcr.microsoft.com/playwright:jammy` - `npx playwright docker start` that launches a docker container with browsers. - `npx playwright docker stop` that stops given docker container. - `npx playwright docker test` that runs all the tests inside a launched docker container.
ce77898
to
c910a9b
Compare
55e96f2
to
7f20c79
Compare
Note for self: also add docker desktop recommended settings that @rwoll recommended |
}); | ||
}); | ||
|
||
test('make sure it tells to run `npx playwright docker build` when image is not instaleld', async ({ exec }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test('make sure it tells to run `npx playwright docker build` when image is not instaleld', async ({ exec }) => { | |
test('make sure it tells to run `npx playwright docker build` when image is not installed', async ({ exec }) => { |
This reverts commit af042be.
This patch introduces the following commands:
npx playwright install docker-image
that builds a VRT docker imagelocally that is based off the
mcr.microsoft.com/playwright:focal
npx playwright start-docker
that launches a docker container withbrowsers.
npx playwright stop-docker
that stops given docker container.npx playwright test --docker
that runs all the tests inside alaunched docker container.