Skip to content

21. Jenkins. Docker and Pod

Siarhei P edited this page Jul 23, 2024 · 3 revisions

Homework Assignment 1: Introduce the following pipeline:

  • Repository content:
    • Dockerfiles with application inside
    • Jenkinsfile with pipeline code
  • Pipeline steps are:
    • Checkout code
    • Validate Dockerfile (https://github.com/hadolint/hadolint)
    • Build image
    • Test image (run and check if webUI of application is accessible)
    • Push image to register (any)
  • Deployment in two namespaces in sequence with manual approve from Jenkins WebUI
    • Deploy in namespace pre-prod
    • Test if deployment done
    • Display message about status of deployment and approve interface on Jenkins WebUI
    • deploy in namespace prod
    • cleaning: remove deployment from pre-prod
  • Notification