Assignment#1 for DevSecOps Batch
- 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
-This command is used to get the currently installed version of docker
-This command is used to pull images from the docker repository(hub.docker.com). Usage: docker pull
-This command is used to create a container from an image..Usage: docker run -it -d
-This command is used to list the running containers.
docker ps -a
-This command is used to show all the running and exited containers
-This command is used to access the running container..Usage: docker exec -it bash
-This command stops a running container..Usage: docker stop
-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
-This command creates a new image of an edited container on the local system.
Usage: docker commit
-This command is used to login to the docker hub repository
-This command is used to push an image to the docker hub repository
-This command lists all the locally stored docker images.
-This command is used to delete a stopped container..Usage: docker rm
-This command is used to delete an image from local storage..Usage: docker rmi
-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/
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.
- 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.
- 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.
- 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.
- 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.
“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.
“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.
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.
- 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.
The “Git” plugin allows jobs to connect to remote repositories and run git operations against them.
- 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.
This plugin adds Subversion repositories as an option in the SCM section of the job configurations screen.
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.