Skip to content
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

chore(docker): address docker offline comments #17377

Merged

Conversation

aslushnikov
Copy link
Collaborator

This patch:

  • Removes all process.exit(1) from docker.ts and instead throws
    errors.
  • Drops the npx playwright docker test command. We agreed to
    engage docker when PLAYWRIGHT_DOCKER environment variable
    is set.
  • Introduces hidden npx playwright docker status command that
    dumps a JSON with docker status:
    aslushnikov:~/prog/playwright$ npx playwright docker status
    {
      "dockerEngineRunning": true,
      "imageName": "playwright:local-1.27.0-next-focal",
      "imageIsPulled": true,
      "containerWSEndpoing": "ws://127.0.0.1:55077/eafeb84c-571b-4d12-ac51-f6a2b43e9155",
      "containerVNCEndpoint": "http://127.0.0.1:55076/?path=fb6d4add-9adf-4c3c-b335-893bdc235cd7&resize=scale&autoconnect=1"
    }

This patch:
- Removes all `process.exit(1)` from `docker.ts` and instead throws
  errors.
- Drops the `npx playwright docker test` command. We agreed to
  engage docker when `PLAYWRIGHT_DOCKER` environment variable
  is set.
- Introduces hidden `npx playwright docker status` command that
  dumps a JSON with docker status:
  ```sh
  aslushnikov:~/prog/playwright$ npx playwright docker status
  {
    "dockerEngineRunning": true,
    "imageName": "playwright:local-1.27.0-next-focal",
    "imageIsPulled": true,
    "containerWSEndpoing": "ws://127.0.0.1:55077/eafeb84c-571b-4d12-ac51-f6a2b43e9155",
    "containerVNCEndpoint": "http://127.0.0.1:55076/?path=fb6d4add-9adf-4c3c-b335-893bdc235cd7&resize=scale&autoconnect=1"
  }
  ```
docs/src/docker.md Outdated Show resolved Hide resolved
docs/src/docker.md Outdated Show resolved Hide resolved
@aslushnikov aslushnikov merged commit b09ea69 into microsoft:main Sep 15, 2022
@aslushnikov aslushnikov deleted the introduce-docker-status-command branch September 15, 2022 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants