Skip to main content

Let us understand DevOps

What Will You Learn ?

  • DevOps is a set of practices that combines software development (Dev) and IT operations (Ops)
  • This article will get you started with the fundamentals of DevOps and understanding how to use it in real projects
  • Understanding what DevOps is and why it's needed along with the basic terminologies
  • Getting started with DevOps and understanding its architecture and lifecycle
  • Introduction to Git and it's basic commands
  • Introduction to Docker, Docker container and it's related concepts
  • Getting started with Jenkins and understanding how to integrate it with Github
  • Basics of Selenium and Nagios

Who is the target audience ?

  • Students and industry professionals who wish to get hands-on something called DevOps
  • Users who wish to learn how to integrate the processes between software development IT teams and manage various projects

Benefits

  • Improved operational support and faster fixes
  • Good processes across IT and teams, including automation
  • Increased team flexibility and agility
  • Happier, more engaged teams
  • Cross-skilling and self-improvement

Salary

  • Average Salary: $133,378 per year

Requirements

  • Knowledge and experience with a few programming languages
  • Understanding of various tools and technologies such as Git, Virtualization and more
  • Awareness of Linux and Networking
  • Ability to think logically and broadly

DevOps

DevOps is neither a tool nor any programming language. It is an idea or way for working. It helps unify the processes and fastens the production with minimal efforts.

When the development and operations team works separately, it takes a lot of time to deliver the applications.

DevOps
DevOps Logo

DevOps is a simple methodology of bridging this get between software development and IT operation by using various automation tools.

It aims at shortening this software development life cycle and provides continuous updating and monitoring of the same.
It read closely, DevOps when split in two reads as Dev and Ops, that is, Development and Operations.

Let's further understand the anatomy of this lifecycle!

Dev team

Dev team
Dev team

More than one developer works on the codes which are then integrated together. The developer follows the following important basic steps to generate a final code:
  • Plan the code as per the requirement
  • Build the code, that is, write down the code
  • Test the code to ensure a error-free code
  • Release the code

Ops team

Ops team
Ops team

Once the code is released to the Ops team, it performs the following basic steps:
  • Check if the released code on the testing server for bugs
  • If none found, push it onto the production server
  • Continuously monitor the events happening around on the server

Magnifying the DevOps lifecycle

DevOps lifecycle
DevOps lifecycle


We understand how exactly the whole DevOps process flows. As we saw, it is a continuous and automated process happening around.

The developing, testing, deploying and monitoring is carried on continuously.

What are DevOps tools ?

DevOps tool
DevOps tool image


Let's now map the required tools with its respective process.
In this course, we are going to learn various amazing tools that are required for implementing the DevOps method.

So get ready to unleash the following tools that we are going to learn.
  • Git - Continuous development
  • Jenkins - Continuous Integration
  • Docker - Continuous Deployment
  • Selenium - Continuous Testing
  • Nagios - Continuous Monitoring
We will now explore them one by one each and get ourselves well-versed with the same.

Introduction to Git

Git
Git

Git is a distributed version control system that manages the source code of your software program efficiently. It keeps a track of the change you make to your codes. The most widely used code storing platform is GitHub.
Git manages the code on GitHub for you as per your Git commands.

You will have to create an account on GitHub in order to build your own repository where you would manage your source codes.

It is very simple task that we will surely look at in our next section.
GitHub Login
GitHub Login
Following are the simple steps to create your GitHub account:
  1. Go to github.com
  2. Enter all the information
  3. After submitting the some you will see your profile created on GitHub just like this:
GitHub Profile
GitHub Profile
Congratulations! You have your GitHub account ready.

Now let's move ahead...

Now before moving with the commands, let's first download Git tool as follows:

First, you need to download Git from
Git download
Git download
Click on Windows and you will see this:
Git download
Git download
Once the file gets downloaded, click on it and continue clicking Next with the default settings till you reach this:
Git setting
Git setting
You will see the Git Bash icon on your desktop, simply click on it and it will open the Git terminal for you just like this:
Git terminal
Git terminal
Now that we are all set, let's play around with some simple but useful. Git commands in the next section.


Git commands

Git directory
creating a directory
1) Create your own directory:
mkdir devops

2) Check the existence of your directory:
Is

3) Enter the directory:
cd devops

4) Make your directory git initialised that is you need to create your git repository:
git init

This creates a git sub directory in your devops folder which has all the necessary files for your repository.
Git sub directory
Git sub directory
5) Add a file in your directory using the nano command. Enter any text of your choice in the file:
git nano
Nano command
6) Check the status of your files in your directory using the following command:
git status

you will see something like this:
directory
directory
The untracked files message indicates that files cannot tracked by git since they are just into your directory and into the git repository.

7) Let's add them now in the git file system using the add command:
git add

Or

git.add.test.txt

The dot after the add command means add all the files from the current directory to the git repository:
Git repository
Git repository
As you can see after adding the files, you no longer see the untracked files message.

Now let's save these files in our git file system (here -m denotes a message you wish to show stating what exactly you are doing:
git commit -m "First Commit"

Following is the output
output
output
Oops! what went wrong ?

Let's fix it!
As we saw, Git didn't allow us to commit the changes to our Git file system. Why is it so ?

Because it failed to recognize the user, hence it asks for email id and your GitHub username to validate your repository.

Let's try this now and see if it helps:
git config --global user.email
"YOUR_EMAIL"

git config --global user.name
"YOUR_USERNAME"

Now try running the commit command and see what you get here:
commit command
commit command
Hurry! It works.

Comments

  1. Your website is now trending😀

    ReplyDelete
  2. What is JavaScript?
    Please make article on this.

    ReplyDelete
  3. This article is a creative one and the concept is good to enhance our knowledge. Waiting for more updates.
    Devops Online Course
    Best Devops Online Training
    Learn Devops Online

    ReplyDelete
    Replies
    1. Thanks Hema for commenting. I will definitely update this article.

      Delete
  4. Very good post. Please continue to post such awesome posts. It was so nice reading the article and it helped me improve my knowledge as an updated one. Thanks a lot.

    DevOps Certification Training in Electronic City

    ReplyDelete

Post a Comment

Popular posts from this blog

What is Hard Disk? Definition, functions and types.

In this article, you will know what is Hard Disk and what are these types? Hard disks are also often called Disk drive or "Hard Disk Drive (HDD)". Just as a library is required to handle books in the library, the same computer also needs a similar place in which it can store digital data .  Computers use two types of storage devices to store and process digital content (Document, Image, Videos, Software, Operating system, Program). In which Hard Disk is a secondary memory device. It keeps the data stored permanently. Whereas the primary memory device (RAM) serves to process the program of the computer . It is also called temporary memory. Hard Disk is seen as an important component of a computer because no computer will work without it. In this post we will tell you what is a hard disk in a computer ? In which you will get to know a lot about Hard Disk. So let's first know, what is called a hard disk and then we will talk about other aspects of it. What is hard disk

Unraveling the Mysteries of Quantum Computers: A Glimpse into the Future of Computing

In the realm of computer science, the concept of quantum computing stands as a beacon of unprecedented potential. Unlike classical computers that rely on bits to process information in binary form (0s and 1s), quantum computers harness the mind-bending principles of  quantum mechanics to manipulate quantum bits or qubits. This revolutionary approach holds the promise of solving complex problems at speeds that traditional computers could only dream of. Let's delve deeper into the enigmatic world of quantum computing. Understanding Quantum Computer: At the heart of quantum computing lies the qubit, the fundamental unit of quantum information. Qubits possess the unique ability to exist in multiple states simultaneously, thanks to a phenomenon called superposition. This allows quantum computers to perform parallel computations on a scale unimaginable with classical computers. Furthermore, quantum computers leverage another principle of quantum mechanics known as entanglement. Entangle