Sign inSign up

trion/chromium-lighthouse

By trion

Updated about 1 year ago

Run lighthouse (or lhci) in docker with chromium on amd or arm64

Image
1

10K+

trion/chromium-lighthouse repository overview

Lighthouse and Chromium

Docker image for Lighthouse and Chromium to use as CI container.

Image on DockerHub: https://hub.docker.com/r/trion/chromium-lighthouse/

Currently this image uses the latest Alpine distribution to get the latest chromium browser..

Usage Examples

Run lighthouse

docker run --rm -u $(id -u) -v $(pwd):/app trion/chromium-lighthouse lighthouse https://www.google.de  --chrome-flags="--headless --no-sandbox"

Run lhci

docker run --rm trion/chromium-lighthouse lhci --collect.url="https://www.google.de"  --collect.settings.chromeFlags="--headless --no-sandbox" --upload.target=temporary-public-storage autorun

Run lhci locally with output to filesystem

docker run --rm -u $(id -u) -v $(pwd):/app trion/chromium-lighthouse lhci \
--collect.staticDistDir="/app/dist" --collect.isSinglePageApplication=true \
--collect.settings.chromeFlags="--headless --no-sandbox" \
--upload.target=filesystem --upload.outputDir=/app/lighthouse/report autorun

ARM64 / mac M1

This image is provided as ARM64 (v8) linux image. It runs on 64bit ARM like hardkernel ODROID or Raspberry Pi.

If you had success running it on mac M1, please open a feedback issue

Tag summary

Content type

Image

Digest

sha256:ea814ec3b

Size

466.9 MB

Last updated

about 1 year ago

docker pull trion/chromium-lighthouse