Utilitaires pour la création de pipeline Jenkins dans l’environnement Cadoles.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

62 rindas
1.6KB

  1. DOCKER_ARGS ?=
  2. W3AF_COMMAND ?=
  3. LIGHTHOUSE_COMMAND ?=
  4. LIGHTHOUSE_URL ?=
  5. image-w3af:
  6. docker build \
  7. --build-arg=HTTP_PROXY=$(HTTP_PROXY) \
  8. --build-arg=HTTPS_PROXY=$(HTTPS_PROXY) \
  9. --build-arg=http_proxy=$(http_proxy) \
  10. --build-arg=https_proxy=$(https_proxy) \
  11. -t jenkins-w3af \
  12. ./resources/com/cadoles/w3af
  13. interactive-w3af:
  14. $(MAKE) W3AF_COMMAND="/bin/sh" w3af
  15. audit-w3af:
  16. $(MAKE) W3AF_COMMAND="/usr/local/bin/run-audit" w3af
  17. w3af:
  18. docker run \
  19. -it --rm \
  20. --net host \
  21. -v "$(PWD)/resources/com/cadoles/w3af/audit.w3af.tmpl:/home/w3af/w3af/audit.w3af.tmpl:ro" \
  22. $(DOCKER_ARGS) \
  23. jenkins-w3af:latest \
  24. $(W3AF_COMMAND)
  25. image-lighthouse:
  26. docker build \
  27. --build-arg=HTTP_PROXY=$(HTTP_PROXY) \
  28. --build-arg=HTTPS_PROXY=$(HTTPS_PROXY) \
  29. --build-arg=http_proxy=$(http_proxy) \
  30. --build-arg=https_proxy=$(https_proxy) \
  31. -t jenkins-lighthouse \
  32. ./resources/com/cadoles/lighthouse
  33. interactive-lighthouse:
  34. $(MAKE) LIGHTHOUSE_COMMAND="/bin/sh" lighthouse
  35. audit-lighthouse:
  36. $(MAKE) LIGHTHOUSE_COMMAND="/usr/local/bin/run-audit" lighthouse
  37. lighthouse:
  38. mkdir -p "$(PWD)/data/lighthouse/reports"
  39. docker run \
  40. -it --rm \
  41. --net host \
  42. --cap-add=SYS_ADMIN \
  43. -e HTTP_PROXY=$(HTTP_PROXY) \
  44. -e HTTPS_PROXY=$(HTTPS_PROXY) \
  45. -e http_proxy=$(http_proxy) \
  46. -e https_proxy=$(https_proxy) \
  47. -e LIGHTHOUSE_URL=$(LIGHTHOUSE_URL) \
  48. -u $(shell id -u $(USER)):$(shell id -g $(USER)) \
  49. -v "$(PWD)/data/lighthouse/reports:/home/lighthouse/reports" \
  50. $(DOCKER_ARGS) \
  51. jenkins-lighthouse:latest \
  52. $(LIGHTHOUSE_COMMAND)
  53. .PHONY: image-w3af image-lighthouse