|
|
||
|---|---|---|
| .. | ||
| scripts | ||
| Dockerfile | ||
| README.md | ||
README.md
sitespeed.io
This Docker get you sitespeed.io with Chrome and Firefox installed.
Usage
The --rm -v "$(pwd)":/sitespeed.io will make the result HTML stored on your host.
Analyze a site and fetch timings using Chrome
docker run --privileged --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io sitespeed.io https://www.sitespeed.io -b chrome --browsertime.experimental.video
Analyze a site and fetch timings using Firefox
docker run --privileged --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io sitespeed.io https://www.sitespeed.io -b firefox --browsertime.experimental.video
Pro tip
Always run sitespeed.io on specific version (always do that with Docker) meaning specify the tag after your container name. Then you have control of what versions you are using (both of sitespeed.io and the browsers). In practice, this means you should run it like this:
docker run --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:3.6.0 sitespeed.io -u http://www.sitespeed.io -b firefox --seleniumServer http://127.0.0.1:4444/wd/hub
If you not use the tag after the container, the latest version will be downloaded and you will not have full control of the exact version.
Configuration
sitespeed.io is highly configurable, check the documentation.
Update your container (use a new version)
Say there's a new release of sitespeed.io and you want to run that, how do you do that? First check the changelog. Are there any changes that will break what you do? If not, just pull the new version (change X.Y.Z to the version you want to use):
docker pull sitespeedio/sitespeed.io:X.Y.Z
And then change where you start your container like this:
docker run --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:X.Y.Z ...