Assignment#1 for DevSecOps Batch

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Pre

  • Step#1 – Register and Validate your account at bestDevOps.com – https://www.bestdevops.com/wp-login.php?action=register
  • Step#2 – Login
  • Step#3 – Create a POST on following questions

Q1. Title – List of 20 popular commands of docker

docker –version
-This command is used to get the currently installed version of docker
docker pull
-This command is used to pull images from the docker repository(hub.docker.com). Usage: docker pull
docker run
-This command is used to create a container from an image..Usage: docker run -it -d
docker ps
-This command is used to list the running containers.
docker ps -a
-This command is used to show all the running and exited containers
docker exec
-This command is used to access the running container..Usage: docker exec -it bash
docker stop
-This command stops a running container..Usage: docker stop
docker kill
-This command kills the container by stopping its execution immediately.
The difference between ‘docker kill’ and ‘docker stop’ is that ‘docker stop’ gives the container time to shutdown gracefully,
in situations when it is taking too much time for getting the container to stop, one can opt to kill it
Usage: docker kill
docker commit
-This command creates a new image of an edited container on the local system.
Usage: docker commit
docker login
-This command is used to login to the docker hub repository
docker push
-This command is used to push an image to the docker hub repository
docker images
-This command lists all the locally stored docker images.
docker rm
-This command is used to delete a stopped container..Usage: docker rm
docker rmi
-This command is used to delete an image from local storage..Usage: docker rmi
docker build
-This command is used to build an image from a specified docker file.

Q2. Title – How to configure SMTP server in Sonarqube?

Configure SMTP For Outbound Emails
In order to configure outbound email, follow the steps below:

Log in to the SonarQube dashboard and click on the “Administration” tab.

Browse to the “Configuration -> General settings -> General” menu.

Under the “Email” section, fill out the required information. The settings below configure SonarQube to send emails through a Gmail account. Replace USERNAME and PASSWORD with your Gmail account username and password, respectively.

SMTP port: 587
SMTP host: smtp.gmail.com
Secure connection: starttls
SMTP password: PASSWORD
SMTP username: USERNAME@gmail.com
Save the changes.

Q3. Title – List of most popular plugins of Jenkins from plugins.jenkins.io/

  1. Kubernetes
    The “Kubernetes” plugin is great for automating build agents on a Kubernetes cluster.
    Essentially, the plugin will dynamically create Kubernetes Pods that house a build agent that has started and
    will stop the agent once the build has completed.
  2. Amazon Elastic Container Service
    A plugin that deploys build agents to an existing Amazon ECS cluster.
    These builds run within separate Docker containers that are removed upon completion of the build.
  3. Azure Container Service
    Similar to Amazon ECS, this plugin requires an existing cluster on Azure.
    Keep in mind that Azure Container Services is being deprecated by Microsoft,
    but this plugin still supports it as well as Azure Kubernetes Service.
  4. Dashboard View
    Dashboard View enables you to create a customized view within the Jenkins dashboard.
    The user is able to select which jobs they want to include in the view as well as the different portlets.
  5. Build Pipeline
    “Build Pipeline” is another interesting plugin because it gives you a view of all the jobs within your build pipeline.
    It also shows all the connected jobs that are upstream and downstream.
    What’s all really cool is if you have any jobs that require intervention before they run, manual triggers can be defined.
  6. Multijob
    “Multijob” is a free plugin that is useful for cleaning up messes with chain definitions from upstream and downstream jobs.
    It’s also handy if you want to create a hierarchy of jobs that need to be executed either sequentially or in parallel.
  7. Pipeline
    “Pipeline” is actually a group of plugins that are used for creating continuous integration pipelines.
    The interesting part is that these pipelines are written by the user in a domain-specific language.
  8. Mailer
    Once configured and added to the Post-Build action of the Jenkins job, the “Mailer” plugin will send you emails based on the job results.
  9. SCM API
    “SCM API” is a plugin that integrates with source control management systems. The built-in extension points allow developers to receive event notifications
    from SCM systems and easily browse through repositories and organizations.
  10. Git
    The “Git” plugin allows jobs to connect to remote repositories and run git operations against them.
  11. GitHub Integration
    With this plugin, you can integrate your Jenkins instance directly with Github. That means you can pull down code
    and files from Github to Jenkins, scheduled builds and process pull requests.
  12. Subversion
    This plugin adds Subversion repositories as an option in the SCM section of the job configurations screen.
  13. JUnit
    The “JUnit” plugin is a free tool that provides graphical visualizations for test results.
    It also provides a user interface for viewing test reports and failures.