Sign inSign up

scalecommerce/chrome-headless

By scalecommerce

•Updated about 2 years ago

This image provides wappalyzer, google lighthouse and cypress for automated testing.

Image
2

2.4K

scalecommerce/chrome-headless repository overview

⁠google chrome headless (and friends)

This image is mainly for automated testing. It provides:

Intsalling all of these packages makes the image huge (1.3 GB) :-( It's currently based on Ubuntu 18.04, we've also tried Alpine, but this results in only 100 MB less. Diskspace is mainly eaten up by Node-Dependecies (350 MB), Cypress (500 MB) and Google Chrome (200 MB). We're open to suggestions how to minimize this.

⁠example usage

# find out what technologies are used on the site
docker run -ti --rm scalecommerce/chrome-headless wappalyzer https://www.google.com/

# save technologies to json file
docker run -ti --rm -v $(pwd):/opt/reports scalecommerce/chrome-headless wappalyzer https://www.google.com/ result.json

# get lighthouse report as html in current directory
docker run -ti --rm -v $(pwd):/opt/reports scalecommerce/chrome-headless lighthouse https://www.google.com/

# get lighthouse report as json on stdout
docker run -ti --rm scalecommerce/chrome-headless lighthouse --output json --output-path stdout https://www.google.com/


# don't limit network and emulate desktop
docker run -ti --rm -v $(pwd):/opt/reports scalecommerce/chrome-headless lighthouse https://www.google.com/ --throttling-method=devtools --throttling.requestLatencyMs=0 --throttling.downloadThroughputKbps=0 --throttling.uploadThroughputKbps=0 --emulatedFormFactor=desktop

⁠versions

NodeJS version is v12.13.0
npm version is 6.12.0
Wappalyzer version is 5.8.4
Lighthouse version is 5.6.0
Puppeteer version is 2.0.0
Cypress version is 3.6.0
Chrome version is HeadlessChrome/78.0.3904.87

Tag summary

Content type

Image

Digest

Size

417 MB

Last updated

over 6 years ago

docker pull scalecommerce/chrome-headless