DevOps Tutorial : Simple DevOps Project

12 Comments



Hello Friends ,

Welcome to DevOps tutorial,

Below are the Steps for creating Complete flow.
Create the Docker File
# Define te Image
FROM tomcat:8-jre8
# Maintainer
MAINTAINER “abhishek”
# Copy the war file into the tomcat webapps location
COPY WebApp.war /usr/local/tomcat/webapps
# expose the 8080 port
EXPOSE 8080
Publish over SSH Download this Plugins and set Below Details .
Key — define the private Key ( you will get from .pem while when you will open as text file)

ssh Server –

Name – define the name of the server.
HostName – Provide the IP address of your server.
UserName – Provide the user name here ex. if we are using Ubuntu ec2 instance then username is ubuntu

Click Save and Apply
Create the new FreeStyle Project
Git URL – https://github.com/Abhishek08/webapp.git

WebHook Connection URL – http://IPADDRESS/github-webhook/ (push)

BUILD – Package
Post Build Action Define below details.
sudo mv ./home/ubuntu/com/target/WebApp.war /home/ubuntu/com; // Copy the war file into the your Server Location
cd /home/ubuntu/com; // Goto the Location where DockerFile is present.
docker stop mycontainer; // Stop the Container if its running
docker rm mycontainer; // Remove the container
docker build -t myimage .; // Create the new Image using Docker file
docker run -d –name mycontainer -p 8090:8080 myimage; // Create new Container using the custom Image.

Reference :
https://github.com/Abhishek08/Docker

YOUTUBE PLAYLIST
https://www.youtube.com/channel/UCTPg…

#DockerSwarm #WhatIsDockerSwarm #DockerTutorials #DockerTraining #DevOpsTools #DevOpsTraining #DockerCommands #DockerForBeginners #DockerFreeTutorials #DockerforDevOps
#quarantine2020 #quarantinelearning

#RealTimeDevOpsProject #RealtimeProject

#DockerImages #DockerContainers #DockerTutorials #DevOpsTools #DevOpsTraining #DockerFreeTutorials #DockerforDevOps#Docker2020 #DockerTutorial2020
#DockerVolume #DockerBindMount #SimpleDevOpsProject

source

12 Comments
    • blank
      Ayenco Scolfield
      May 17, 2022 12:17 pm Reply

      You are good thanks for sharing and contributing your quota to the devops community

    • blank
      Dilbhani channel
      May 17, 2022 12:17 pm Reply

      Explained well

    • blank
      Ranjan Hazarika
      May 17, 2022 12:17 pm Reply

      Good explanation. May I know Jenkins setup is local or in cloud instance

    • blank
      Janakiram Kalluri
      May 17, 2022 12:17 pm Reply

      excellent sir

    • blank
      Naga Sulochana Poojari
      May 17, 2022 12:17 pm Reply

      good explanation!!! expecting more videos 🙌👏

    • blank
      Queen lady
      May 17, 2022 12:17 pm Reply

      Well explained!!

    • blank
      Nirav
      May 17, 2022 12:17 pm Reply

      very nice good explain and easy to understand .

    • blank
      Vishesh Mahale
      May 17, 2022 12:17 pm Reply

      It really helps in understanding the process. Thanks brother…

    • blank
      Nitin raut
      May 17, 2022 12:17 pm Reply

      👍

    • blank
      Ashok Kumar
      May 17, 2022 12:17 pm Reply

      Good explanation 👍 easy to understand brother

    • blank
      Sakshi Mandloi
      May 17, 2022 12:17 pm Reply

      Good going 🙏👍

    • blank
      Trishala Gupta
      May 17, 2022 12:17 pm Reply

      Well explained!!

Leave us a comment