Cloud hub deployment

18
CloudHub Deployment CloudHub is an integration platform as a service (iPaaS). There are two options to deploy an application from Anypoint Studio(Runtime Manager) to CloudHu 1.Through from Anypoint Studio. Deploy application as Cloudhub b . 2.From Anypoint Studio export as mule deployable archive.

Transcript of Cloud hub deployment

Page 1: Cloud hub deployment

CloudHub Deployment

CloudHub is an integration platform as a service (iPaaS). There are two options to deploy an application

from Anypoint Studio(Runtime Manager) to CloudHu

1. Through from Anypoint Studio. Deploy application as Cloudhub b .

2. From Anypoint Studio export as mule deployable archive.

Page 2: Cloud hub deployment

Figure 1: Mule Cloudhub Architecture

Pre requisites

1. Download and install Anypoint Studio2. Preinstalled jdk 1.7

Creating an Anypoint Platform Organization for CloudHubTo deploy this application to CloudHub, you first need to create an organization in the Anypoint Platform. After you’ve created your account, you can use CloudHub for one month with a single resource unit, or "worker". If you need additional resources or would like to continue using CloudHub, you can sign up for a paid subscription.

1. Go to http://anypoint.mulesoft.com to create an organization if you do not already have one. Otherwise, sign in using your credentials for your existing Anypoint Platform account.

2. Enter your information, choose a username and password, and click Create account. Your new organization is created along with a user account. The resulting user account automatically becomes the administrator for the organization.

After you create your Anypoint Platform account, you are directed to the landing page. From the top menu, click the Runtime Manager link to go to the Runtime Manager dashboard.

3.

Process

1. Creating a New Anypoint Studio Project

The first time you start Anypoint Studio, you see a Welcome page. If this is the case, click Create aProject. If you already launched Anypoint Studio and closed the Welcome page, click File > New > Mule Project.

Page 3: Cloud hub deployment
Page 4: Cloud hub deployment

Create project name as HelloWorld then click on finish

Building the Project

In the Palette search for the HTTP connector, select it, and drag it onto the canvas. you can place it

anywhere

Page 5: Cloud hub deployment

Double click on the HTTP Connector in and configure as below

Page 6: Cloud hub deployment

Configure the HTTP component as shown in below. Add global http endpoint

Page 7: Cloud hub deployment

Click Ok to close this dialogue box and save the File.

Drag the Set Payload transformer next to HTTP and Configure as shown in below.

Page 8: Cloud hub deployment

In the Set Payload properties editor, enter Hello World in the Value field.

Click the save icon to apply your changes.

1. Through from Anypoint Studio. Deploy application as Cloudhub

Page 9: Cloud hub deployment

We can easily deploy your applications to CloudHub, directly from Anypoint Studio. Without creating the ZIP file and upload manually.

Right click on the project, select Deploy to Anypoint Platform > Cloud then we can see a window like below details. Enter the cloudhub credentials and then Sign In

1. Sign in.

The Deploying Application page opens.

2. Choose a unique domain in which to deploy the application, for example helloworld.

The domain name can be up to 42 characters. A green confirmation check mark displays.

3. Select a Mule Version and environment, such as PRODUCTION, or accept the defaults.

Page 10: Cloud hub deployment

4. Change the Mule Runtime value to 3.7.0 or newer.

5. Click Deploy Application.

1. Anypoint Studio packages, uploads, and deploys your application to CloudHub.

2. Browse to the URL of yourdomain.cloudhub.io (also shown in the pop-up window above). You should see your application running on CloudHub! (Deployment may take a few minutes.)

Page 11: Cloud hub deployment

2. From Anypoint Studio export as mule deployable archive

Deploy a CloudHub application from:

Anypoint Studio - Right-click on project and click Deploy to Anypoint Platform → Cloud.

Go to http://anypoint.mulesoft.com to create an organization if you do not already have

one. Otherwise, sign in using your credentials for your existing Anypoint Platform account.

After creating Anypoint Platform account, the page will be open. Runtime Manager icon

and click on it, or click Open

Click Deploy application:

Page 12: Cloud hub deployment

The Deploy Application page opens:

Creating an Application Name:

In the Deploy Application dialog, enter a unique application name. The Application Name also

becomes the cloudhub.io domain name that you use to access your application.

Page 13: Cloud hub deployment

Application File:

Upload a new file for deployment. Click the Choose file button, select your application file, and then click Open.We can also click the Get from sandbox button to copy a file from a non-production environment into your current environment. The application file size limit is 200 MB.

Runtime Version

Using the drop-down menu, select the Runtime version to which you to deploy

Page 14: Cloud hub deployment

After deploying the application, we can allocate an amount and a size for the Worker size of our application.

To select the worker size and amount of each, select options from the drop-down menu to configure.

Page 15: Cloud hub deployment
Page 16: Cloud hub deployment
Page 17: Cloud hub deployment

1. Hit the URL of domainname.cloudhub.io . or domainname.cloudhub.io/test if any path configured on http

2. http://simple.cloudhub.io/test

3. We can able to see the output on the browser as well as on logs

Page 18: Cloud hub deployment

Anticipated Issues

NOTE: NA if not applicable

Issue 1

In the Http component configure path as /* or /test otherwise , we can get resource not

found.

References

1. https://docs.mulesoft.com/runtime-manager/hello-world-on-cloudhub.