instrumentisto/dart-chrome

By instrumentisto

Updated over 6 years ago

[Closed] Dart Docker image with Google Chrome for running tests.

Image

1.5K

Dart with Google Chrome Docker image

GitHub releaseBuild StatusDocker PullsLicense

This image is a wrapper of official Google Dart image that contains Google Chrome for running browser tests.

Status

PROJECT IS CLOSED AND ARCHIVED. NO MAINTAINING WILL BE CONTINUED.

How to use this image

Just map your working directory to /app inside container:

docker run --rm -v $(pwd):/app -w /app instrumentisto/dart-test pub run test

Make sure that you're using chrome platform in your testing configuration (dart_test.yml):

platforms:
  - chrome
override_platforms:
  chrome:
    settings:
      headless: true
      arguments: --no-sandbox  # required if running as root

Make sure that you're populating your pub cache correctly.

docker run --rm -v $(pwd):/app -w /app \
           -e PUB_CACHE=/path/to/.pub-cache \
           -v /path/to/.pub-cache:/path/to/.pub-cache \
       instrumentisto/dart-test pub run test

Issues

If you have any problems with or questions about this image, please contact us through a GitHub issue.

Docker Pull Command

docker pull instrumentisto/dart-chrome