Sign inSign up

romischart/node-10-chrome

By romischart

•Updated over 6 years ago

Fully dockerized latest stable chrome based on node:10-jessie

Image
0

9.4K

romischart/node-10-chrome repository overview

⁠Node 10 docker image with latest stable chrome

Build Status

Fully dockerized latest stable chrome based on node:10-jessie

⁠Why

This project enables you to use a real chrome for example for e2e testing (with tools like testcafe) directly in CI.

It could be used as base for your custom image.

Global testcafe example:

FROM romischart/node-10-chrome:latest

RUN yarn global add testcafe \
    && mkdir -p /usr/src/app/testcafe

WORKDIR /usr/src/app/testcafe

ENTRYPOINT [ "testcafe", "chrome:headless", "-s", "." ]

and now you need to build the custom image and run the tests with docker volume mounting:

docker build -t testcafe-chrome .

docker run -v /path/to/tests:/usr/src/app/testcafe testcafe-chrome:latest *.testcafe.js

Tag summary

Content type

Image

Digest

Size

256.6 MB

Last updated

over 6 years ago

docker pull romischart/node-10-chrome