Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
QUICKLY EXTENDING INTO
TESTING WITH DOCKER
PERFORMANCE QUALITY
PERFORMANCE QUALITY
LIGHTHOUSE
LIGHTHOUSE
docker run --rm --name
lighthouse -it -v /root/docker-
tests/lighthouse:/home/chrome/re
ports --cap-add=SYS_ADM...
LIGHTHOUSE
https://github.com/femtopixel/
docker-google-lighthouse
PERFORMANCE SPEED
PERFORMANCE SPEED
PERFORMANCE SPEED
PERFORMANCE SPEED
SITESPEED.IO
docker run --rm -v /root/docker-
tests/sitespeed.io:/sitespeed.io
sitespeedio/sitespeed.io:8.15.2
https://tom...
SITESPEED.IO
https://www.sitespeed.io
SECURITY
SECURITY
ZAP
docker run -v /root/docker-
tests/zap:/zap/wrk/:rw -t
owasp/zap2docker-stable zap-
baseline.py -t
https://tomcudd.com ...
ZAP
https://www.owasp.org/index.php/
OWASP_Zed_Attack_Proxy_Project
SEO
SEO
SEO
LINK CHECKER
docker run -it --rm -v
/root/docker-
tests/checklink:/home/checklink
stupchiy/checklink -H
https://tomcudd.co...
LINK CHECKER
https://github.com/w3c/link-
checker
ACCESSIBILITY
ACCESSIBILITY
https://www.w3.org/TR/WCAG21/
PA11Y
vim /root/pa11y/config.json
{
"defaults": {
"chromeLaunchConfig": {
"args": ["--no-sandbox"]
},
"timeout": 60000
},
...
PA11Y
docker run -it -v
/root/pa11y/config.json:/tmp/con
fig.json digitalist/pa11y-
ci:latest pa11y-ci -c
/tmp/config.json
GOTCHA’S
• sudo everything or run as root!
• Folder permissions!
• chmod o+w docker-tests/
• chmod o+w docker-tests/*
• So...
OPTIMIZING
• Google searches I had to do
• Wordpress critical rendering path
• apache gzip compression
• Wordpress lightho...
BUILDING UP
• Look at other kinds of tests
• Static code analysis (SonarQube)
• Burp Suite (active security scans)
• Load ...
TAKEAWAY
• Low Effort, High Impact!
• Build on momentum
LINKS
https://tomcudd.com/docker
@tomcudd
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Quickly extending into testing with docker
Upcoming SlideShare
Loading in …5
×

Quickly extending into testing with docker

59 views

Published on

Using docker to run various SEO, Accessibility, Performance, Security tests on a public URL

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Quickly extending into testing with docker

  1. 1. QUICKLY EXTENDING INTO TESTING WITH DOCKER
  2. 2. PERFORMANCE QUALITY
  3. 3. PERFORMANCE QUALITY
  4. 4. LIGHTHOUSE
  5. 5. LIGHTHOUSE docker run --rm --name lighthouse -it -v /root/docker- tests/lighthouse:/home/chrome/re ports --cap-add=SYS_ADMIN femtopixel/google-lighthouse https://tomcudd.com
  6. 6. LIGHTHOUSE https://github.com/femtopixel/ docker-google-lighthouse
  7. 7. PERFORMANCE SPEED
  8. 8. PERFORMANCE SPEED
  9. 9. PERFORMANCE SPEED
  10. 10. PERFORMANCE SPEED
  11. 11. SITESPEED.IO docker run --rm -v /root/docker- tests/sitespeed.io:/sitespeed.io sitespeedio/sitespeed.io:8.15.2 https://tomcudd.com
  12. 12. SITESPEED.IO https://www.sitespeed.io
  13. 13. SECURITY
  14. 14. SECURITY
  15. 15. ZAP docker run -v /root/docker- tests/zap:/zap/wrk/:rw -t owasp/zap2docker-stable zap- baseline.py -t https://tomcudd.com -g gen.conf -r tomcudd.html
  16. 16. ZAP https://www.owasp.org/index.php/ OWASP_Zed_Attack_Proxy_Project
  17. 17. SEO
  18. 18. SEO
  19. 19. SEO
  20. 20. LINK CHECKER docker run -it --rm -v /root/docker- tests/checklink:/home/checklink stupchiy/checklink -H https://tomcudd.com > /root/docker-tests/checklink- report.html
  21. 21. LINK CHECKER https://github.com/w3c/link- checker
  22. 22. ACCESSIBILITY
  23. 23. ACCESSIBILITY https://www.w3.org/TR/WCAG21/
  24. 24. PA11Y vim /root/pa11y/config.json { "defaults": { "chromeLaunchConfig": { "args": ["--no-sandbox"] }, "timeout": 60000 }, "urls": [ "https://tomcudd.com" ] }
  25. 25. PA11Y docker run -it -v /root/pa11y/config.json:/tmp/con fig.json digitalist/pa11y- ci:latest pa11y-ci -c /tmp/config.json
  26. 26. GOTCHA’S • sudo everything or run as root! • Folder permissions! • chmod o+w docker-tests/ • chmod o+w docker-tests/* • Sometimes you make the directories, sometimes not! • mkdir docker-tests/pa11y
  27. 27. OPTIMIZING • Google searches I had to do • Wordpress critical rendering path • apache gzip compression • Wordpress lighthouse optimization • Wordpress minify css
  28. 28. BUILDING UP • Look at other kinds of tests • Static code analysis (SonarQube) • Burp Suite (active security scans) • Load tests (Selenium, Jmeter) • More Accessibility (Total Validator, NVDA, Wave)
  29. 29. TAKEAWAY • Low Effort, High Impact! • Build on momentum
  30. 30. LINKS https://tomcudd.com/docker @tomcudd

×