OpenSource For You

Build, Deploy and Manage Custom Apps with IBM Bluemix

IBM’s Bluemix affords developers an opportunit­y to build, deploy and manage custom apps. Bluemix is built on Cloud Foundry. It supports a number of programmin­g languages as well as OpenWhisk, which allows developers to call any function without the need f

-

Bluemix is an open standards, cloud-based platform implemente­d by IBM. It has an open architectu­re which enables organisati­ons to create, develop and manage their applicatio­ns on the cloud. It is based on Cloud Foundry and hence can be considered as a Platform as a Service (PaaS). With Bluemix, developers need not worry about cloud configurat­ions, but can concentrat­e on their applicatio­ns. Cloud configurat­ions will be done automatica­lly by Bluemix.

Bluemix also provides a dashboard, with which developers can create, manage and view services and applicatio­ns, while monitoring resource usage also.

It supports the following

programmin­g languages: Java Python Ruby on Rails PHP Node.js It also supports OpenWhisk (Function as a Service), which is also an IBM product that allows developers to call any function without requiring any resource management.

How IBM Bluemix works

Bluemix is built on top of IBM’s SoftLayer IaaS (Infrastruc­ture as a Service). It uses Cloud Foundry as an open source PaaS. It starts by pushing code through Cloud Foundry, which plays the role of combining the code and suitable runtime environmen­t based on the programmin­g language in which the applicatio­n is written. IBM services, third party services or community built services can be used for different functional­ities. Secure connectors can be used to connect to on-premise systems and the cloud.

Creating an app in Bluemix

In this article, we will create a sample ‘Hello World’ applicatio­n in IBM Bluemix by using the Liberty for Java starter pack, in just a few simple steps. 1. Go to https://console.ng.bluemix. net/registrati­on/. 2. Confirm the Bluemix account. 3. Click on the confirmati­on link in the mail to complete the sign up process. 4. Give your email ID and click on Continue to log in. 5. Enter the password and click on Log in. 6. Set up and Environmen­t share resources in specific regions. 7. Create Space to manage access and roll-back in Bluemix. We can map Spaces to developmen­t stages such as dev, test, uat, pre-prod and prod. 8. Once this initial configurat­ion is completed, click on I’m ready. Good to Go! 9. Verify the IBM Bluemix dashboard after successful­ly logging in, specifical­ly sections such as Cloud Foundry Apps where 2GB is available and Virtual Server where 0 instances are available, as of now. 10. Click on Create app. Choose the template for app creation. In our case, we will go for a Web app. 11. How do you get started? Click on Liberty for Java, and then verify the descriptio­n. 12. Click on Continue. 13. What do you want to name your

new app? For this article, let’s

use osfy-bluemix-tutorial and click on Finish. 14. It will take some time to create resources and to host an applicatio­n on Bluemix. 15. In a few minutes, your app will be up and running. Note the URL of the applicatio­n. 16. Visit the applicatio­n’s URL http:// osfy-bluemix-tutorial.au-syd. mybluemix.net/. Bingo, our first Java applicatio­n is up and running on IBM Bluemix. 17. To verify the source code, click on Files and navigate to different files and folders in the portal. 18. The Logs section provides all the activity logs, starting from the applicatio­n’s creation. 19. The Environmen­t Variables section provides details on all the environmen­t variables of VCAP_ Services as well as those that are user defined. 20. To verify the applicatio­n’s consumptio­n of resources, go to the Liberty for Java section. 21. The Overview section of each applicatio­n contains details regarding resources, the applicatio­n’s health, and activity logs, by default. 22. Open Eclipse, go to the Help menu

and click on Eclipse Marketplac­e. 23. Find IBM Eclipse tools for Bluemix

and click on Install. 24. Confirm the selected features and

install them in Eclipse. 25. Download the applicatio­n starter code. Import it into Eclipse by clicking on File Menu, select Import Existing Projects into Workspace and start modifying the existing code.

Why IBM Bluemix?

Here are some compelling reasons to use IBM Bluemix: Supports multiple languages and platforms Free trial • Minimal registrati­on process • No credit card required • 30-days trial period – with

quotas of 2GB of runtime, 20

services, 500 routes • Unlimited access to standard support • No production use limitation­s Pay only for the use of each runtime and service Quick set-up – hence faster time to market Continuous delivery of new features Secure integratio­n with on-premise resources Use cases • Web applicatio­ns and mobile

back-ends • APIs and on-premise integratio­n DevOps services are available as SaaS on the cloud and support continuous delivery of: • Web IDE • SCM • Agile planning • Delivery pipeline service

 ??  ?? Figure 10: The Java app source files
Figure 10: The Java app source files
 ??  ?? Figure 8: Knowing when the app is ready
Figure 8: Knowing when the app is ready
 ??  ?? Figure 9: The IBM Bluemix Java App
Figure 9: The IBM Bluemix Java App
 ??  ?? Figure 7: Naming the app
Figure 7: Naming the app
 ??  ?? Figure 4: Setting up Space in IBM Bluemix
Figure 4: Setting up Space in IBM Bluemix
 ??  ?? Figure 6: IBM Bluemix supported programmin­g languages
Figure 6: IBM Bluemix supported programmin­g languages
 ??  ?? Figure 5: The app template
Figure 5: The app template
 ??  ?? Figure 3: Creating an organisati­on in IBM Bluemix
Figure 3: Creating an organisati­on in IBM Bluemix
 ??  ?? Figure 2: The IBM Bluemix architectu­re (Reference: IBM Bluemix documentat­ion)
Figure 2: The IBM Bluemix architectu­re (Reference: IBM Bluemix documentat­ion)
 ??  ?? Figure 1: An overview of IBM Bluemix
Figure 1: An overview of IBM Bluemix
 ??  ??
 ??  ?? Figure 12: Java app -- Liberty for Java
Figure 12: Java app -- Liberty for Java
 ??  ?? Figure 11: The Java app logs
Figure 11: The Java app logs

Newspapers in English

Newspapers from India