Devops Assignment
Devops Assignment
Tech(Software Engineering)
DevOps and automation
Assignment
Report Submitted By
Name : Sandeep M
Registration Number : 220928012
Name : Uma D
Registration Number : 220928007
MAY-2023
Internal
We have developer application as per the requirement. SESLCMDashboard
Git links :
Front end : https://github.com/MTech2022/dev-ops-SESLCM-dashboard.git
Backend : https://github.com/MTech2022/dev-ops-backend-api.git
Below are the table and data used for backend – mysql
Internal
CREATE TABLE login (
id BIGINT PRIMARY KEY,
uname VARCHAR(16) NOT NULL,
passwd VARCHAR(16) NOT NULL,
login_role VARCHAR(10) NOT NULL
);
Internal
(2002, 'Dr.Kaliraj', 102, 4),
(2003, 'Dr.Renuka', 103, 4),
(2004, 'Dr.Raghavendra A', 104, 4),
(2005, 'Dr.Roshan D', 105, 4),
(2006, 'Dr.Manohar Pai', 106, 4);
-- HOD
select * from marks m join students s join subjects ss where m.student_id=s.id and ss.id=m.subject_id;
-- professor
select * from marks m join professors p where m.subject_id = p.subject_id and p.login_id=4;
-- student
select * from marks m join students s join subjects ss where m.student_id=s.id and ss.id=m.subject_id and s.login_id=2;
1 Demonstrate with suitable example, how version control system is used to manage source
code. What are the issues faced while merging the code and how it is resolved
Version control, also known as source control, is the practice of tracking and managing changes to software
code. Version control systems are software tools that help software teams manage changes to source code over
time. As development environments have accelerated, version control systems help software teams work faster
and smarter. They are especially useful for DevOps teams since they help them to reduce development time and
increase successful deployments.
Version control software keeps track of every modification to the code in a special kind of database. If a
mistake is made, developers can turn back the clock and compare earlier versions of the code to help fix the
mistake while minimizing disruption to all team members.
Internal
Benefits of version control systems
Using version control software is a best practice for high performing software and DevOps teams. Version
control also helps developers move faster and allows software teams to preserve efficiency and agility as the
team scales to include more developers.
Git is one of the best version control tools that is available in the present market.
Features
Pros
A merge conflict is an event that takes place when Git is unable to automatically resolve differences in code between
two commits. Git can merge the changes automatically only if the commits are on different lines or branches
Below are the screenshots for the git push, git merge and git pull conflicts and resolving. I have attached some
screenshots of the intellij idea.
Internal
2. Pull when we have local changes not committed or stashed
4.
Internal
5.
2. Articulate with suitable example, how Jenkins CI/CD pipeline is used to create an artifact
(using appropriate build tool like maven). Also mention which build trigger option used in
this scenario
Internal
Below is an example of how the mvn deploy pushes to artifactory server. Other maven commands
3 Demonstrate how docker container is created and the artifact is deployed with suitable
code snippet
A Docker container image is a lightweight, standalone, executable package of software that includes everything
needed to run an application: code, runtime, system tools, system libraries and settings.
Docker image artifacts are used as references to images in registries , such as GCR , or Docker Hub . The artifacts can be
deployed to Kubernetes or App Engine, and generally trigger pipelines from notifications sent by their registry
Internal
Example of Docker application and architecture.
Below are the commands for docker image, container, and registry push.
example1
example 2
Internal
docker run -it --name sandee_container2 mysql
Example
or
example :
Internal