DevOps Classroomnotes 21/Aug/2022

Running servers easily

  • Register to Docker hub Refer Here
  • We can play with docker Refer Here
  • Login into playground and create a new instance
docker container run -d -P <image-name>:<tag-name>

docker container run -d -P jenkins/jenkins:lts-jdk11
docker container ls
  • We can run the sonarqube by executing the following command
 docker run -d --name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:latest

Installing Docker on Ubuntu

  • AWS:
    • Create a security group with all ports opened (not a secure approach but its okay for lab setup)
    • Create an ec2 instance with ubuntu 20.04
    • login into ec2 instance and execute the following commands
      “`
      curl -fsSL https://get.docker.com -o get-docker.sh
      sh get-docker.sh
      sudo usermod -aG docker ubuntu
      exit

    relogin

    docker info
    devsecops9

    * Now run sonar qube using following command docker run -d –name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:latest* Navigate to sonar qube usinghttp://publicip:9000`

  • Azure:
    • Create a ubuntu vm
    • login into vm after opening all ports in nsg
      “`
      curl -fsSL https://get.docker.com -o get-docker.sh
      sh get-docker.sh
      sudo usermod -aG docker ubuntu
      exit

    relogin

    docker info
    devsecops9

    * Now run sonar qube using following command docker run -d –name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:latest* Navigate to sonar qube usinghttp://publicip:9000`

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner