WSO2 Integration Cloud Now Supports Millions of App Types
Millions of app types ?
You mean almost all the app types available in the world ?
Are you kidding me ???
How come ?
Well.. This is how…
WSO2 Integration Cloud now supports running custom docker images.
Actually it has been a hardship that most of the people undergo that it has to be predefined by the cloud service provider to host an application of a certain app type. For an example most common programming languages these days like nodejs, go, python and ruby etc.
Now wso2 integration cloud provides 3 kinds of major application categories that you can host.
Under integration you may find
Under Services you may find
- Java web application
- Java microservices
- WSO2 Data Services
Now…..Here comes the all rounder!!!
Under Custom category you may find custom docker images app type.
STEP 01 : First create a docker image.
Create your own docker image with any base image and according to your requirement. But follow following criteria when writing the Dockerfile
- Do not use any host mounting (ie: do not use VOLUME command in dockerfile)
- Do not use root user for the container. You will have to add and set a non-root user for your image/container. You can use following two lines for ubuntu.
RUN useradd -ms /bin/bash newuser
3. Avoid SSH services running inside the container.
So Im using this github repo to build the docker image to run a node-js helloworld.
Contribute to node-js-hello development by creating an account on GitHub.github.com
You can clone that and do a docker build to build the image.
docker build -t maheshcwso2/node-js-hello:nonroot8080 .
Now you will see the docker image being pushed to docker hub.
STEP 02 : Add docker image to integration cloud
Since there are no available images to create applications, you will be redirected to add images page.
Here you have to put the docker image url. You have to be carefull when providing image url. It should be in required format.
It is same image name you give when you do the docker pull command.
Since I have pushed the image into dockerhub. We don’t need to mention the registry. Otherwise it will be something like,
In my case it will be,
and click the add image button. It will add the image to the security test queue. It will take sometime depending on your image size. So its time to go grab a coffee. :)
Once security test is done and image has passed the security test, then you will see status icon as a green tick icon otherwise it’s a red cross.
If you want to see the test report , just click on the Test Report icon.
Then test results will appear like this..
STEP 03 : Create application using verified image
There are two ways to do this,
either you can click on the Create Application button of the image.
or you can do the usual way to create an application in integration cloud as we did before. Since there are verified images, now it will keep you in the app creation page. For now, lets click on Create Application icon.
- Select image
- Give a name for your application
- Add a description(not mandatory)
- Select runtime. (As of now we support two runtimes as per the ports exposed in containers. We will be making this more customized in near future). So if your application runs in port 8080 then select 8080 runtime. If you are running a wso2 server which runs in 9443 and 9763 inside the container, then select the other runtime.
- Click Create button
Once the app is created it will redirect you to the app home page
Now click on the launch url to see your app running.
Please share your thoughts and help us to improve this feature.
send suggestions to email@example.com