Skip to content

c0de1ovr/node-chrome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node docker image with latest stable chrome

Fully dockerized latest stable chrome based on selenium/node-chrome with nodejs & yarn preinstalled

Why

This project enables you to use a real firefox 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-chrome:latest

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

WORKDIR /usr/src/app/testcafe

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 chrome:headless -s *.testcafe.js

Local testcafe example:

docker run -it -v /path/to/tests:/home/node romischart/node-chrome:latest yarn testcafe chrome:headless

Custom node version

You can build your own image with your custom node version, you need only to pass NODE_VERSION argument at build time:

FROM romischart/node-chrome:latest
docker build . -t custom-node-version --build-arg NODE_VERSION=12.16.1

About

Node docker image with latest stable chrome

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published