Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 26, 2020 06:19 am GMT

Crafting the perfect container to play with a Headless Chrome

Since July 30th 2017, I have been contributing to a side project: the idea from the beginning was the ability to use Chrome to make some tests in headless mode and avoid a long queue of CI builds using a tiny Docker image.

Why use a Headless Chrome

In the world of webdev, the ability to run quickly end-to-end tests are important. Popular technologies like Puppeteer enable developers to make fun things like testing, automating forms, crawling, generating screenshots, capturing timeline... And there is a secret: some of these features are directly available on Chrome!

For more information on why headless mode is a cool feature, please read an good example on what you can achieve here:

Crafting the perfect container

With 28 contributors, I have been working on this project to create the perfect image to run Chromium in Headless mode:

Open Source & Fun

Some open source & fun projects have been set up and used for this open source side project. I want to share it with you: it adds value and confidence to maintain a GitHub repository.

Reaching a point

Here is the most interesting insight for a tool: to be used and useful! In almost two weeks, this image will be pulled on the Docker Hub...

a million times!

there is currently ~922k downloads and it grows ~6k by day
On GitHub, the repository gets ~3000 views, ~1000 unique visitors every two weeks and ~464 stars.

After 3 years maintaining it, I cannot thank everyone using this container. This is the first time a side project has become so popular.

The Future

Here is some features in the roadmap:

  • with-playwright version with Playwright to reuse the installed headless Chromium (PR in draft)
  • with-deno version with Deno to create a useful and fun things to do with deno
  • with-lighthouse version with Lighthouse to be able to monitor your website performance in CI builds
  • Create a dedicated homepage and documentation website: the README.md begins to be complicated to navigate and update
  • Create a gallery with the name of the project or product using this container

Please test this container or play with it!
If you are interested to help me maintain this image, we are welcome! There is some "Good first issue" labelled issue on the repository.

Disclaimer: these terms in this post are synonyms: "Chrome" vs "Chromium" and "image" vs "container".


Original Link: https://dev.to/jlandure/crafting-the-perfect-container-to-play-with-a-headless-chrome-ilp

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To