Skip to content

mark79-github/exam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevOps - Containerization, CI/CD & Monitoring - January 2023 - SoftUni

Regular Exam

The whole process is fully automated

  1. Creating Vagrantfile which creates three virtual machine with the following configuration:
  2. Sequence of actions:
    • Install docker on docker machine:
      • Change Docker configuration to expose Prometheus metrics by copying daemon.json to /etc/docker/ folder
    • Install and setup gitea via docker compose using the following configuration file docker-compose.yml
      • Setup gitea with following data:
        • GITEA__server__DOMAIN=[192.168.99.202]
        • GITEA__server__ROOT_URL=[http://192.168.99.202:3000]
        • GITEA__webhook__ALLOWED_HOST_LIST=[192.168.99.0/24]
      • Clone the following repository shekeriev/fun-facts
      • Copy local files to repository folder and push to gitea public project with name: exam
      • Add webhook for the exam project
    • Install and run Node Exporter on docker VM
    • Install Jenkins and needed components (like java-17)
    • Setup Jenkins
      • Set credentials for docker user: needed to push images to docker hub
      • Configure jenkins via configuration scripts to automate the process like creating admin account, installing needed plugins and etc.
      • Download Jenkins CLI
      • Create vagrant credentials
      • Create Docker Hub credentials
      • Add slave node
      • Add and build the exam job
    • Install and run Node Exporter on jenkins VM
    • Install docker on monitoring VM
    • Install and setup Prometheus and Grafana via docker compose using the following configuration file docker-compose.yml
      • Copy Prometheus custom configuration file prometheus.yml to /tmp folder
        • scrape metrics configuration for two job [docker] and [node-exporter]
      • Grafana is provision by following configuration files:
      • Using docker compose with the following configuration docker-compose.yml run the Prometheus & Grafana containers
  3. The result:

About

DevOps - Containerization, CI/CD & Monitoring - January 2023 - SoftUni - Exam

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published