Posts

  Jenkins Installation in RedHat Linux Server  Jenkins Installation in RedHat Linux Server    sudo su - yum install wget -y wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key yum install fontconfig java-11-openjdk -y yum install jenkins -y systemctl enable jenkins systemctl start jenkins systemctl status jenkins at  September 21, 2022   Email This BlogThis! Share to Twitter Share to Facebook Share to Pinterest Labels:  Jenkins Friday, September 11, 2020 Sample Jenkinsfile 1  Sample Jenkinsfile timestamps {  timeout(time: 60, unit: 'SECONDS') {   node {                try{      /*           def jobname = env.JOB_NAME def buildnum = env.BUILD_NUMBER.toInteger() def job = Jenkins.instance.getItemByFullName(jobnam...
  Oracle Java Installation - Linux    Java Installation  in RHEL #Login as a root user sudo su - ##Change dir to /opt cd /opt yum install wget -y wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm yum install jdk-8u131-linux-x64.rpm -y java -version     at  October 07, 2022   Email This BlogThis! Share to Twitter Share to Facebook Share to Pinterest Labels:  Java Monday, September 27, 2021 Java Installation in Ubuntu Linux Server Java Installation in Ubuntu Linux Server    By default, Ubuntu 18.04 includes OpenJDK version 11,which is an open-source variant of the JRE and JDK. To install this version, first update the package index with below command. #sudo apt update Then execute below commands based on which version you want to install. #apt install default-jre : For Defauly version. #apt install openjdk-1...
  Install Nginx HTTP server by using specific version package - RHEL 8    Install Nginx HTTP Server Installation  Method 3 #Login as root user and execute the below command for install nginx http server. sudo su - yum - y install wget wget https://nginx.org/packages/rhel/6Server/x86_64/RPMS/nginx-1.18.0-2.el6.ngx.x86_64.rpm yum install nginx-1.18.0-2.el6.ngx.x86_64.rpm systemctl start nginx systemctl enable nginx nginx - V at  March 22, 2022   Email This BlogThis! Share to Twitter Share to Facebook Share to Pinterest Labels:  HTTP Server Sunday, March 21, 2021 Install Nginx HTTP server - RHEL 8    Install Nginx HTTP Server Installation  Method 2 #Login as root user and execute the below command for install nginx http server. sudo su - dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm sudo yum install nginx #Enable the service as follows. systemctl enable nginx.service #Start the HTTP server as follows. sy...
 DevopsWithDinesh Jenkins Docker Swarm Integration  Jenkins Docker Swarm Integration ========================= 1) CI/CD Pipeline Scrit to build and deploy single service in docker swarm 2) CI/CD Pipeline Scrit to build and deploy multiple services using docker stack(Compose File) in docker swarm Pre Requisite: ========== 1) Docker Swarm Cluster       https://www.youtube.com/watch?v=cuNW5Qwd-D4    2)  Setup CI/CD (Jenkins) Server    =========Install Java, Jenkins, Docker in Ubuntu============== sudo apt update -y sudo apt install openjdk-8-jdk -y wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add - sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' sudo apt-get update -y sudo apt-get install jenkins -y sudo systemctl status jenkins sudo curl -fsSL get.docker.com | /bin/bash # Add jenkins user to docker group sudo usermod -aG docker jenkins # R...
  DevopswithDinesh Docker Commands  docker info:  It will give status of weather docker is running or not  and also It will display the detailed information about docker engine.  docker version:  Show the Docker version information. docker images (OR) docker image ls :  List all images that are locally stored with the Docker engine. docker run <<Docker Image>> :  It will run the docker image. Example: docker run hello-world:  This command will download the hello-world image, if it is not already present, and run the hello-world as a container. docker images <<Image Name>>:  It will display the information about image. docker images -q: It will display only the images IDs. docker rmi << Image ID/Image Name>> (OR) docker image rm << Image ID/Image Name>>:  It will delete an image from the local image store. Example:  docker rmi nginx docker rmi $(docker images -q) (OR) docker rmi -f...