Skip to content

Add Docker image, multi-arch publish workflow, and usage guide#143

Merged
gmegidish merged 14 commits into
mainfrom
feat/docker-image
May 21, 2026
Merged

Add Docker image, multi-arch publish workflow, and usage guide#143
gmegidish merged 14 commits into
mainfrom
feat/docker-image

Conversation

@gmegidish
Copy link
Copy Markdown
Member

@gmegidish gmegidish commented May 20, 2026

Summary

  • Add Dockerfile for the mobilewright/mobilewright image — Ubuntu base, Node 24, ADB client, runs as non-root mwuser. Includes an adb wrapper that routes ADB calls to the host's ADB server so a host emulator is visible inside the container.
  • Add a GitHub Actions workflow that builds and publishes multi-arch (amd64/arm64) images to Docker Hub after the npm release workflow succeeds.
  • Add .dockerignore and a Docker usage guide covering both local Android emulators and Mobile Next Cloud devices.

Test plan

  • docker build succeeds for linux/amd64 and linux/arm64
  • docker run --rm mobilewright/mobilewright doctor reaches the host ADB server (macOS/Windows, and Linux with --add-host)
  • docker run ... test runs against a local Android emulator with the project mounted
  • Cloud: mobilewright test connects via the mobile-use driver using MOBILE_USE_API_KEY
  • Publish workflow produces a working multi-arch manifest tagged :latest and :<version>

Comment thread .github/workflows/ghcr-publish.yml Fixed
Comment thread .github/workflows/ghcr-publish.yml Fixed
Comment thread .github/workflows/ghcr-publish.yml Fixed
Comment thread .github/workflows/docker-publish.yml Fixed
Comment thread .github/workflows/docker-publish.yml Fixed
Comment thread .github/workflows/docker-publish.yml Fixed
Comment thread .github/workflows/ghcr-publish.yml Fixed
Comment thread .github/workflows/ghcr-publish.yml Fixed
Comment thread .github/workflows/ghcr-publish.yml Fixed
Comment on lines +17 to +21
- uses: actions/checkout@v5
with:
ref: ${{ github.event.workflow_run.head_sha }}
fetch-depth: 0
- uses: docker/login-action@v3
Comment on lines +48 to +52
- uses: actions/checkout@v5
with:
ref: ${{ github.event.workflow_run.head_sha }}
fetch-depth: 0
- uses: docker/login-action@v3
Comment on lines +81 to +85
- uses: actions/checkout@v5
with:
ref: ${{ github.event.workflow_run.head_sha }}
fetch-depth: 0
- uses: docker/login-action@v3
@gmegidish gmegidish merged commit cd714fd into main May 21, 2026
5 of 6 checks passed
@gmegidish gmegidish deleted the feat/docker-image branch May 21, 2026 14:43
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