Skip to content

gibbs/docker-lighthouse

Repository files navigation

Docker Lighthouse

Docker

A Lighthouse Docker image using Debian and Chromium.

Example Usage

Return a HTML report:

docker run --cap-add=SYS_ADMIN genv/lighthouse <url> --output-path=stdout

Generate and save a HTML report to the current working directory:

docker run -v "$(pwd):/home/lighthouse/reports/" --cap-add=SYS_ADMIN genv/lighthouse <url>

Return a JSON report:

docker run --cap-add=SYS_ADMIN genv/lighthouse <url> --output=json --output-path=stdout

Write a JSON report to disk:

docker run --cap-add=SYS_ADMIN genv/lighthouse <url> --output=json --output-path=stdout > $(date +%s)_report.json

Save multiple reports to the current working directory:

docker run -v "$(pwd):/home/lighthouse/reports/" --cap-add=SYS_ADMIN genv/lighthouse <url> --output=csv,json,html

For a full list of options see:

docker run genv/lighthouse --help