Introduction to Dev ops

Installation

Pre-Requests

This Tutorial uses MAC book to install the required tools.

How to Install JDK on Windows

  1. Install Java on Windows machine if not installed. https://www.java.com/en/download/win10.jsp

download the latest version JDK and double click the EXE file

you will see the Wizard as below

JDK Install Picture 1

JDK Install Picture 2

How to Install JDK on macOS

There are multiple ways to install JDK on MAC

Check the Existing JDK version

javac -version

  • Option 1: Install Directly fromJDK

    • Download JDK version from Oracle
    • Under "Java Platform, Standard Edition" ⇒ "Java SE 13.0.{x}", where {x} denotes a fast running security-update number ⇒ Click the "Oracle JDK" "Download" button.
    • Under "Java SE Development Kit 13.0.{x}" ⇒ Check "Accept License Agreement".
    • Choose the JDK for your operating platform, i.e., macOS. Download the DMG installer (e.g, jdk-13.0.{x}_osx-x64_bin.dmg - about 172MB).
    • Install JDK/JRE Double-click the downloaded Disk Image (DMG) file. Follow the screen instructions to install JDK/JRE.
    • To verify your installation, open a "Terminal" and issue this command. java -version
  • Option 2: Install using Brew

    • Make sure HomeBrew is already installed
    • use this command to install latest jdk brew cask install java
    • after complete you should able to see the JDK in cd /Library/Java/JavaVirtualMachines/<jdk_version>/Contents/Home/
    • add this path to your ~/.bash_profile
    echo 'export JAVA_HOME=/Library/Java/JavaVirtualMachines/<jdk_version>/Contents/Home' >> ~/.bash_profile
    
    echo 'export PATH=$JAVA_HOME/bin:$PATH' >> ~/.bash_profile
    

How to Install Docker on macOS

How to Install Docker on Windows

How to Install ngrok

Enabling Jenkins Port forwarding via ngrok, ngrok is required to enable Webhook on your Local mechine.

Download the above zip file and run as below, the Port should be the same Jenkins

win:/> ngrok.exe http 8080   

mac:$ ./ngrok http 8080   

After Running the Executable file

Demo Time

Useful Tips