Posts

Showing posts from February, 2021

Git log - commit history

Image
Here is the GitOps story! we started learning more depth of every GIT commit history using git CLI. In this post, we have touched some rea-time scenario-based question and answers with practical examples which are useful for other DevOps team members.  The best question to help release management - who worked on the critical program/script which is in the release process? This can be found using the git log command.  The most interesting story if someone left the company and need to know what he did in his last commit. Tracking changes all of them done by that particular user.  The git log having many options: sorting filtering output formatting Let's see in detail by with experimenting each with an example. How to get the git log in a "Sorting order"? Here we have a couple of sorted commit history commands.  Using the --pretty value with  Oneline to going to give you the log output in simplify format. git log --pretty=oneline The output combination of ...

Git install latest version on Oracle Linux

 Hey! In this post I would like to discuss about git installation on Oracle Linux. By default git from the yum repo version is older 1.8.2. To get used of the latest features of git needs to install the latest version of git. Currently, the git version is 2.30.1. But this experiment will be same further as well. Step 1: Navigate to a path where the git installer needs to download. cd /opt wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.30.1.tar.gz #remove the default git version from yum repo yum remove git -y # extract the git tarball tar -zxf git-2.30.1.tar.gz cd git-2.30.1 Step 2: The prerequisites for git installation is as: # prerequisites yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel -y yum install gcc perl-ExtUtils-MakeMaker -y Step 3: Install the git version # installing latest version of git make prefix=/usr/local/git all make prefix=/usr/local/git install Step 4: Now all set, we need to have the latest git i...

Publishing to Docker hub your own Docker Images

Image
 Hey DevOps Engineer, In this post I would like to share my experiment on Docker image creation and pushing to the public repository. Docker Hub is the world's easiest way to create, manage, and deliver your images with the teams who are working for microservices applications that runs on containers. Docker Hub allows you to pull docker images that are built by other community members, organizations on the Hub.  Docker Hub is a cloud-based registry service that allows you to link to code repositories, build your images and test them, store manually pushed images, and links to Docker Cloud so you can deploy images to your docker hosts. Publishing custom Image to Docker Hub Steps to publish the image Please use the following steps: Register with Docker Hub Login to docker hub from your Docker Host  Commit and Pushing to Docker Hub registry Docker tag Create an account/ Docker ID. If you have already then signed into it. Login into the docker hub from the docker host  ...