This topic describes how to build an iWay application for deployment through Docker/Kubernetes.
This application consists of two Docker containers:
iWay Application exposing an API (defined via RAML file) which utilized the iIT MongoDB Connector
MongoDB Server
We brought these containers up and managed communication between two by using Docker and Kubernetes technology.
Docker is the world's leading containerization platform
Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications.
I. How to use iIT to build and run an iSM container
Install Docker for Windows Edge
It will prompt you to make sure HyperV and Containers are enabled.
This will require a reboot
This took a long time
After Reboot Go to the task menu and type in Docker.
You will see a Docker App.
This must be run as an Administrator
The Whale will show up in the Task bar
Right mouse click on the Whale and select the menu item settings.
Go to General
Click on Expose daemon without TLS
Bring up a Command Prompt
Type in some commands:
docker version
docker run hello-world
docker images
Create a sample Application Project with Docker and Kubernetes support.
Click Next. The Use Maven dialog opens, as shown in the following image.
Click Next. The Application Deployment dialog opens, as shown in the following image.
Click Finish.
Import the sample API application that is provided.
The application consists of two Docker containers:
iWay Application exposing an API(defined via RAML file) which utilized the iIT MongoDB Connector
MongoDB Server
This application has several APIs:
For example /companies/POST execute the following process flow with the MongoDB connector:
The Dockerfile is essentially the build instructions to build the image. The advantage of a Dockerfile over just storing the binary image (or a snapshot / template in other virtualization systems) is that the automatic builds will ensure you have the latest version available.
Runs a sample application : package -P docker-image
You should be able to build a docker image iway:latest:
Now it is time to open a Docker Explorer to see this image.
Windows-->Show views--> Other-->Docker-->Docker Explorer