This repository has been archived by the owner on Apr 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ FROM mhart/alpine-node:latest | |
|
||
LABEL description "Run Google Chrome's Lighthouse Audit in the background" | ||
|
||
LABEL version="1.0.3" | ||
LABEL version="1.0.5" | ||
|
||
LABEL author="Matthias Winkelmann <[email protected]>" | ||
LABEL coffee.matthi.vcs-url="https://github.com/MatthiasWinkelmann/lighthouse-chromium-alpine-docker" | ||
|
@@ -27,7 +27,8 @@ RUN apk -U --no-cache upgrade && \ | |
libx11\ | ||
xorg-server\ | ||
chromium\ | ||
ttf-opensans | ||
ttf-opensans\ | ||
wait4ports | ||
#----------------- | ||
# Set ENV and change mode | ||
#----------------- | ||
|
@@ -45,6 +46,8 @@ ENV GEOMETRY "$SCREEN_WIDTH""x""$SCREEN_HEIGHT""x""$SCREEN_DEPTH" | |
|
||
RUN echo $TZ > /etc/timezone | ||
|
||
RUN rc-update add dbus default | ||
|
||
ADD lighthouse-chromium-xvfb.sh . | ||
ADD test.sh . | ||
RUN npm --global install yarn && yarn global add lighthouse | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/sh | ||
|
||
/lighthouse/lighthouse-chromium-xvfb.sh --output-path=/tmp/test-report.html "https://matthi.coffee" | ||
./lighthouse-chromium-xvfb.sh --output-path=/tmp/test-report.html https://matthi.coffee | ||
|
||
grep -q "Best Practices" /tmp/test-report* |