Thursday, March 29, 2018

Webhooks for Github & Jenkins Integration - CI/CD Pipeline

In this post we will look at how we can use Webhooks feature of GitHub to Integrate Github with Jenkins.

Webhooks is a really a cool feature which helps to Integrate GitHub with Jenkins on the Push Events in Github.

There is a feature in Jenkins to Poll SCM for every configured number of Minutes/hours for change in the code. This way Jenkins is polling on SCM. Better/Preferred way is to use Webhooks for this integration where Whenever there is a Push in Github, a Payload is sent to Jenkins with Push/Commit details and New Pipeline is Initiated.

Pre Requsites
  1. Jenkins Server Installed on any IaaS or Local VM.
  2. Github Login Credentials
  3. Code Repository in GitHub with Sample Code. I have forked a code in my repo and added JenkinsFile which you can use as it is MyGitHubRepo.  Or You can also fork from Original Repo

Architecture Diagram



Lets Get Started

Configuring Jenkins

First Step in Configuring Jenkins is to Install GitHub Integration Plugin. Log into Jenkins Server and Click Manage Jenkins. Click Manage Plugins.

Click on Available Tab and Filter with Github.



Click Download Now & Install after Restart.

Create & Configure New Pipeline

Click Create New Item and Click Pipeline. Give a name to the new pipeline & Click OK.




Thursday, March 15, 2018

Multi Node Swarm Cluster on Oracle Cloud Infrastructure Classic

In this post we will see how we can build Multi Node Docker Swarm Cluster on Oracle Cloud Infrastructure Classic.

To Start, we will create Three Nodes in the Swarm Cluster with One Nodes as Manager and other two nodes as Worker Nodes. Any Number of nodes can be added in the same fashion to scale the cluster.


Architecture Diagram




Pre Requisites 
  • Oracle Infrastructure Cloud Account :  If you do not have account, you can sign up for Free Trial account at : https://cloud.oracle.com/en_US/tryit
  • Basic Knowledge of Dockers & Containers
  • Basics of Swarm Clusters

Thursday, October 13, 2016

Create Windows Instances on Oracle Infrastructure as a Service - Step By Step

In this post we will see how we can create Windows Instances on Oracle IaaS (Infrastructure as a Service) with desired Image (Windows Version) , Compute , Memory , Disk as well as enabling Remote Desktop service. At last we will enable RDP Connections to the instance and will try to connect.

Lets Get started.

Login to the cloud portal using Identity domain, Username & Password Information. Go to Compute service console. Click Instances and click create instance.



Click on MarketPlace to search for Windows Image.



Monday, June 13, 2016

Create Oracle Cloud Database Connection in Jdeveloper 12.2.1

While doing development on J2EE and ADF very often it is needed to create Oracle Database Connection from Jdeveloper. Jdeveloper provides a wonderful easy window to create and manage multiple Database Connections.

Since the environments have started to move to Cloud much often it is required to create Database Connection for the Oracle Database which is hosted on Oracle Database Cloud Service (DBCS).

There was no way to create SSH Tunnel in Jdeveloper and one has to tunnel the traffic using Putty or SSH command and then use the localhost in jdeveloper database connection window to create successful connection to Database on Cloud.

Jdeveloper 12.2.1 solved this problem by providing a very nice SSH Tunnel window in Database Connections Set up. This SSH Tunnel Configuration can be used to do configure the tunnel and use SSH Public key and user to create the connection.

Below is the process for creating a successful Database Cloud Instance connection from Jdeveloper 12.2.1

On clicking + sign for adding new connection, below window pops up.


Sunday, April 10, 2016

OTNYathra - 2016 - AIOUG

OTNYathra event is back this year in 2016 and once again AIOUG (All India Oracle User Group) is privileged to organised this event in various parts of the Country.

OTNYathra is very typical form of series of conferences which starts from North India and covers throughout India in couple of weeks.

This year again we have very experienced speakers and we expect to have loads and loads of information on new oracle offerings and oracle's roadmaps.

The regional chapters of AIOUG will have responsibilities for organizing the event in their respective cities.

North part of OTNYathra will be managed by NIAIOUG(North India chapter of AIOUG). The event will be held on 1st of May in Noida.


Monday, April 4, 2016

Alert in Oracle Public Cloud - Notifications on Quota

There are new updates in Oracle Public Cloud portal. Now there are new Alerts which lets one set notifications for the quota usage. These notifications are both for Metered as well as Subscription based Non Metered PaaS services.

Below are the steps to set Alerts and notifications in Cloud Public Portal for PaaS Services.

Step 1 : On the Dashboard, Click on Estimated Balance of the services for which you want to set new alert.





Step 2 : Check the Amount for Database Public Cloud Service. This is total available credits. Suppose this is X amount. We will set an alert on 80% of X.

Thursday, March 3, 2016

Oracle Public Cloud - Test Throughput from Customer Place to Data Center

Most common question in mind while going to cloud is to get statistics for latency and throughput from customer location to the Data Centers based in different geography’s e.g. (US – Chicago and Ashburn ).


Below is the way to get the numbers of throughput and latency from tooling provided by OPC Interface.


Step 1 : Click on the user name and select Diagnostics.