Posts

Apache Maven installation on Linux

Image
How to install Maven on CentOS/RHEL/Fedora? Hello dear DevOps Hunter! In this exciting post we will discuss on the most popular build tool 'Maven'. Maven is an Open source project under the Apache Licence. It is one of the best speeding software project management tool. Maven 3 installation on CentOS RHEL Fedora Using Apache Maven we can do the following tasks: extract source code build the package deploy to target test the application basic sanity The trending build tool for Java enterprise level Projects, it works based on 'pom.xml' file a Project Object Model (POM). The greatest advantage of Maven is plugin support for libraries.  Install Maven There are two basic distributions of Maven installers: binary and source archives. If you need the installation should be done quick then use the binary installer, where you need simple extraction of archives. On the other hand, source archives will take time and three steps you need to follow: c...

Jenkins Installation on CentOS7/RHEL/Fedora and Ubuntu

Image
Hello DevOps enthusiast, I'm here with another interesting article on one more DevOps automation tool that is Jenkins CI, where I've explored all possible new learnings which will be used by DevOps. Jenkins installation on CentOS or RHEL or Fedora Simple instructions I've made for reference, which I've used. What are the Pre-requisites for the Jenkins installation Good speed of Internet Either of the platforms will be working: Vagrant installed VirtualBox installed to pull CentOS7 box AWS RHEL instance up and running  Bring up the CentOS/7 box (optional) Note: Ignore this section if you have a Cloud instance ready. Step 1: Create your own CentOS7 vagrant box with the following DSL Vagrantfile: Vagrant.configure(2) do |config| config.vm.box = "centos/7" config.vm.boot_timeout=600 config.vm.host_name = "mydev.devopshunter.com" config.vm.network "private_network", ip: "192.168.33.100" config.vm.syn...

Git Installation on CentOS RHEL Oracle Linux

Image
Hey! DevOps engineer, In this blog post I would like to share my discussion target as 'Git for Beginners'. Here I would like to start the Git Installation and configuration on CentOS 7 or Oracle Linux or RHEL all looks like the same process. The configuration steps you can also run on the Windows Git Bash as well. Git Installation on CentOS This is a Very Simple process, let's do the experiment now. The pre-requisite is VM or Cloud instance ready to connect. The following experiment executed on the CentOS7 Virtual Box configured on the Vagrantfile. 1. Git Installation in RHEL/CentOS/Oracle Linux  Install Git from Source Select the latest stable version from the Download location: https://mirrors.edge.kernel.org/pub/software/scm/git/  Before you begin, first you need to install required software dependencies from the default repositories, along with the utilities that needed to build a binary from source: yum groupinstall -y 'Development Tools'; yum in...

HOWTO uninstall GIT old version?

Image
HOW to uninstall GIT old version on CentOS7? Hello everyone!! This is a common requirement of every GitOps engineer task.  After a while the older version you may not feel to continue once you see the latest version same way for Git. Uninstall Git from CentOS Assuming that you have Linux box already Git installed and want to remove it due to: Git long back on a CentOS7.  The installed version with yum command might be pulled older version due to repo not sync with the latest Git changes  First you need to check your git version using git --version Let see this Example: [vagrant@mydev ~]$ git --version git version 1.8.3.1 Here to uninstall you need root access, switch to root user sudo -i Sample  [vagrant@mydev ~]$ sudo -i [root@mydev ~]#  If you installed git by using yum package manager then same will be used to remove it. yum remove git [root@mydev ~]# yum remove git Loaded plugins: fastestmirror Resolving Dependencies --> Runn...

Installation of Docker CE for Docker Host and Docker Client on Ubuntu 19.04

Image
In this blog-post, I would like to discuss the detailed steps that involved for install the latest version of  Docker as Learning Lab on your own laptop or desktop. The same set of exercise can be done on any cloud instance as well. Here is the ideology for setting up a lab in your laptop both docker server and docker client in different VirtualBox. Hope this picture gives more details! Docker Host and Docker Client setup in a Laptop Docker Installation prerequisites The list of the prerequisites are : Ubuntu 19.04 64bit OS [ 16.xx above recommended ]  User with sudo privileges vagrant by default  Vagrant Installed Oracle VirtualBox Installed  Good speed internet  Let's get started now with the following sequence of steps that could carry out to build Two Docker server and Docker Client on the Ubuntu 19.04 on VirtualBox. Docker Host runs on 192.168.33.250 and the Docker client runs on the 192.168.33.251 IP address. Knowing the IP Addr...

Monitoring and Alert management tricks using Promtool and amtool

These days I am busy and exploring the most critical stuff of the cloud that is Monitoring. There were many ways to monitor the 'Kubernetes Cluster', CNCF recommendation on 'metric' data is ' Prometheus ' stack that is using Grafana , AlertManager . Install Prometheus your laptop I've chosen the Prometheus for Windows amd64 option as my system with Windows 7. download link Validating Prometheus alert rules After creating the Alert rule how do I check it is correct syntax or not. There is a nice tool that comes with Prometheus installation. Let me demonstrate the scenario where I've selected 7 important alert rules for my project. set PROMETHEUS_HOME=C:\Users\pavan\myprom\prometheus-2.8.1.windows-amd64 set AM_HOME=C:\Users\pavan\myprom\alertmanager-0.16.1.windows-amd64 set PATH=%PROMETHEUS_HOME%;%AM_HOME%;%PATH% After Setting the PATH you can validate the alerting rules with the following command: promtool check rules my-mon_alertrules.yml C...

Kubernetes cluster configuration in a Virtualbox with vagrant

Image
Thanks to Rajkumar who had developed the Vagrantfile and published in the github on Kubernetes cluster configuration in a Virtualbox with vagrant. For those who don't know about Vagrant it is a tool that will be used for virtualization into a different level and more powerful way of using your system resources to run multiple operating virtual boxes in your Laptop/Desktop systems. You just need to follow the simple steps which I had done in my experiment: Prerequisites for Kubernetes Cluster Creation Download latest Vagrant Download latest version of Oracle VirtualBox System resources requirements on VirtualBox 2 GB for each node 2 cores CPUs for each node Here I have don this expeiment on my Windows 7 laptop. You could do same on any Windows higher version as well. Total 3 VMs will be created under a group named as - "Kubernetes Cluster" as defined in Vagrantfile. Infrastructure as a Code: Vagrantfile  The Vagrantfile will be composed w...