Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

Quickly extending into testing with docker

70 visualizaciones

Publicado el

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

Publicado en: Tecnología
  • Sé el primero en comentar

  • Sé el primero en recomendar esto

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

×