Devops Project
Devops Project
Zakkiya Thasneem
|
Devops = Development + Operations
Build: Executable
Test: Check
Operations—Browser—Appstore\iStore—end user
Release—version –instamart\genie\food\cod\UPI
Testing will just debug and trouble shoot the source code where as operate is running and working in
the application
Monitor—efficiency
Release—Source code—
Continuous integration—Jenkins
Containers—docker
https://digital.ai/learn/devsecops.periodic.table/
CICD: Continuous integration and continuous deployment/delivery (interview question)
Testing—unit testing/integration/acceptance/functionality
Test
QA
UAT/CAT
Jenkins
Branching strategy
Git pull
Git rebase
1 EC2—Sonarqube
1ec2—nexus
maven integration
config file
sonarqube scanner
docker
pipeline
docker API
Jenkins
Create a job-Dashboard-gaming-config (declarative pipeline) copy paste URL from git gaming repo
Changing URL/apply and save----build now/console output/ add plugin—stage view (install)
Reload job
Phases:
The lifecycle consists of multiple phases, each representing a specific stage in the build
process. Some common phases include:
Lifecycles:
default (or build): The primary lifecycle for building and deploying the application.
clean: Removes generated artifacts from previous builds.
site: Generates project documentation and reports.
Goals: Represent specific actions within a phase. Goals are typically provided by
Maven plugins.
Plugins: Packages that contain one or more goals and contribute to building and
managing the project.
Execution Flow:
By default, Maven phases are executed sequentially. When you initiate a specific phase,
Maven automatically executes all preceding phases as well.
For instance, running the mvn package command triggers the default lifecycle, which
includes phases like validation, compilation, testing, and finally, package creation.
Tools to be installed:
1 Mavern installation:
Dashboard--Manage Jenkins—tools—JDK17
3 Sonarqube
Quality gate
Quality profile
Dockerhub.com-100%
Pipeline: A pipeline is a set of automated steps that allow you to define your software delivery
process. It's a way to model, automate, and visualize your software delivery pipeline as code.
pipelines enable you to define your entire build, test, and deployment process in a single, version-
controlled file.
1. Scripted Pipeline: This type of pipeline is written in Groovy script. It provides full
flexibility and control over the flow of your pipeline but requires more scripting
knowledge and expertise.
2. Declarative Pipeline: This type of pipeline provides a simpler and more structured
way to define pipelines using a domain-specific language (DSL). It's designed to be
easier to read, write, and maintain, especially for beginners, as it abstracts away much
of the complexity of Groovy scripting.’
Ubuntu
sudo -i
java
vi <filename>
ll - long list
./ <filename>- To run
Check status
----------------------------------------------------------------------------------------------
sudo chmod 666 /var/run/docker.sock
Final output: