Public Repository

Last pushed: 9 months ago
Short Description
Short description is empty for this repo.
Full Description

Docker Image Chrome

  • To run this image for running automated screenshot tests against it:

    docker run -it -p 9222:9222 --cap-add=SYS_ADMIN bettermarks/docker-image-chrome

    Testing the image

Docker Hub provides automated testing facilities through Docker Compose files:
Any files in the same folder as the Dockerfile that end with .test.yml will be considered a Compose file to be used for testing.
Docker Hub will perform a one-off execution of the sut service. This is where your test scripts are executed. Its return code is used to determine if the tests passed or failed.

(partly copied from a blog post and the related github repoabout how to do the same for more complex testing and more CI systems.)

We are using docker-hub.test.yml to add tests.

  • add some library globally, that have build time dependencies to the OS.
  • create an empty project and do some basic setup to test the folder structure works as expected

For finding libs that need dependencies you can run grep -lr 'postinstall' node_modules inside the project.

For running the tests locally that Docker Hub runs (this will report but not return the exit code of the test):

docker-compose -f docker-hub.test.yml up --build

Docker Cloud Info

  • The github repo is directly linked to using the same details as docker-hub credentials
  • Image namespace is bettermarks/docker-image-chrome:latest or given chrome version


  • Figure out to build alpine image to reduce image size.
  • Need to work on it.

Helpful commands to clear all images/containers

  • docker images | awk {'print $3'} | grep -vi image | xargs docker rmi -f
  • docker ps -a | awk {'print $1'} | grep -vi container | xargs docker rm
Docker Pull Command