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`

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Wordpress Development Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube