Skip to content

invia-de/lighthouse-chromium-alpine-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lighthouse/chromium/alpine/docker image

Run Google's Lighthouse headless in the background

This image allows you to quickly run lighthouse in a headless container and upload the result to Github gists. That's useful if you want to run it from a CI server, or in the background of your workstation.

Installation

Github URL: https://github.com/invia-de/lighthouse-chromium-alpine-docker

    git clone git@github.com:invia-de/lighthouse-chromium-alpine-docker.git
    docker build -t lighthouse lighthouse-chromium-alpine-docker

Github Credentials

You need to create a .git-credentials file to make sure gists is working. The file needs to have your Github Token with repo, read:org and gists permission:

a1b2c3d4e5f6g7h8i9j0

Usage

Processes within the container cannot easily access the host's file system. You can either print to STDOUT and redirect to a file, or mount a local folder in the container, as shown here:

Quickstart

docker run --mount type=bind,source=$(pwd)/output,destination=/home/lighthouse/output -it --privileged lighthouse https://google.com

Links

Canonical URL: https://matthi.coffee/2017/lighthouse-chromium-headless-docker

About

Run Google's Lighthouse headless in the background

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 73.3%
  • Shell 26.7%