Integration-Centric
Malkit Bhasin's Blog
Sunday, August 23, 2020
Understanding JavaScript Prototypal Inheritance for Java developers
Sunday, August 16, 2020
Using GCP Source Repository, Cloud Build to configure automatic deployment of docker container on Google Cloud Run
Introduction
In this article I will walk through the steps required to setup continuous integration environment and create build pipeline and automate deployment of a sample Angular App on Google Cloud Run. I will be using GCP stack end-end. Cloud Source Repositories for Git repository for version control, Cloud Build for creating docker containers which will be stored on Container Registry and then deploying the image on Cloud Run - serverless runtime environment. Finally, I will outline steps for configuring automated integration/deployment that will trigger builds and deployment of new version of application for any merge.
Key Concepts and Services
Cloud Source Repositories - Fully managed free git repository from Google Cloud to storing and version control of source code. Tightly integrated with Cloud Build for triggering build for continuous integration.
Docker - software that is most popularly used to build containers. Docker would combining the application code and set of instructions called DockerFile and produce a container that contains code all the required dependencies (listed as part of instructions in the docker file) to run the code.
Containers - a self contained environment that can be run on many platforms
Cloud Build - provide service similar to Docker and integrated with Cloud Source Repositories and can be triggered to produce container images and provides Continuous development and Continuous deployment. Cloud build can be configured to push the images to container registry and deployed to Cloud Run
Container Registry - Google Cloud Repository that can be used for hosting container images produced by Cloud Build
Cloud Run is fully managed serverless compute platform to deploy and running containerized application. Managed Serverless environment allows you to focus on your application and not worry about the underlying infrastructure or setting up and managing runtime environments.
Saturday, August 08, 2020
Installing VNC Server on Google Cloud CentOS VM
Introduction
Recently I installed VNC on CentOS 6 on GCP for some development work. Sharing my notes. The steps are similar for Redhat Enterprise Linux.
Concepts
VNC - Virtual Private Networking, a Graphical User Interface platform that can be accessed remotely
Steps
Create a VM
Create a CentOS instance in Micro VM Shape. To reduce latency choose a region close to you. Note that I'm using default VPC network that is automatically created. If you need more details on how to create VM pls refer my earlier blog
Tuesday, August 04, 2020
Hybrid Cloud - Setting up Site-to-Site IPSec VPN Connectivity between Oracle and Google Cloud
Introduction
Thursday, July 30, 2020
Creating a Utility VM on Google Cloud (GCP)
Introduction
This blog is in continuation of my previous article - Oracle OCI Cloud - Connecting a Private VM from a Public Bastion Host and walk through steps for creating a VM instance on Google Cloud GCP which we will use to establish VPN connectivity with Oracle Cloud - the steps for which will be outlined in next article in this series.
Here's a quick reference of configurations for this VM that we will be using in the next article while configuring VPN connectivity
VPC: gcp-oci-vpn-demo
VCN CIDR: 192.168.0.0/16
Subnet: subnet1
Region: europe-west1
Subnet CIDR: 192.168.0.0/16
VM: instance-1
Public IP: 35.210.10.232
Private IP: 192.168.0.2
Thursday, June 04, 2020
Oracle OCI Cloud - Connecting a Private VM from a Public Bastion Host
Introduction
This post talks about the necessary configurations of Router, Firewall, and builds a complete end-end example.
High-Level Steps
- Create VCN and two subnets (one public, one private)
- Create VMs - one in each subnet
- Configure Router
- Configure Firewall
- Test and Verify
- Access to OCI Instance
Pre-requisites
- User with necessary privileges to create VCN, VM and configure networking
- SSH key (public and private key pair) - Basic knowledge of networking - CIDR, Routers, Firewall, etc..
Monday, November 18, 2019
OIC: Monitoring REST APIs examples using curl
Getting logs
curl -X GET -H 'Authorization: Bearer access_token' -o <ics_log>.zip https://instance-name.us.oraclecloud.com/ic/api/integration/v1/monitoring/logs/{id}
curl -u username@email.com:password -X GET -H "Content-Type:application/json" -o flow_logs.zip https://instance-name.integration.ocp.oraclecloud.com/ic/api/integration/v1/monitoring/logs/icsflowlog
Valid values for log id: icsflowlog, icsdiagnosticlog, icsauditlog
You can provide additional parameter for filtering the result - for example following will return data for last one day.
curl -u username@email.com:password -X GET -H "Content-Type:application/json" -o flow_logs.log https://instance-name.integration.ocp.oraclecloud.com/ic/api/integration/v1/monitoring/logs/icsflowlog "q={timewindow: '1d'}"
For the next set of apis you can filter the result by time period, time window and also by the integration by adding following additional parameters
You can use time window as well - must be entered in - 'yyyy-MM-dd HH:mm:ss' UTC format
"q={startdate : '2016-09-23 07:07:07', enddate : '2016-09-23 08:17:07’}"
And filter the results for a given flow…
"q={timewindow: '3d', code: HELLO_WORLD, version: '01.02.0000'}”
Understanding JavaScript Prototypal Inheritance for Java developers
Inheritance is a fundamental concept in programming languages. However, it is implemented differently in Object-Oriented Languages such as J...
-
Originally published on Dec 28, 2010 Ok, so far in my previous blog entries about finding 2nd minimum (and for repeating elemen...
-
Introduction Recently I installed VNC on CentOS 6 on GCP for some development work. Sharing my notes. The steps are similar for Redhat Enter...
-
Expanding upon the last article I'm providing additional details and examples for using Oracle Integration Cloud REST APIs for managing...