How-tos

Quickly Develop, Build, and Deploy Applications on IBM Cloud with DevOps services – Part 2

Share this post:

In my previous post, we discussed how, for development teams getting started with new cloud projects, whether they’re mobile, web, or IOT, setting up the needed resources, DevOps services and tools can take up a significant amount of time – time the delivery team could use being productive and innovative in their approach to continuous delivery of apps. In that post, I covered how to use a template to rapidly deploy an integrated DevOps toolchain that included tools from IBM, like Delivery Pipeline or DevOps Insights, as well as repositories from GitHub, testing tools from Sauce Labs, and so on.

In this post, we’ll talk about how you can create a DevOps toolchain in Bluemix using Bluemix Continuous Delivery if you’ve already built and deployed an application.

Creating a Toolchain from an existing application

 Creating an app from the Bluemix catalog

Let’s begin by creating a new app from the Bluemix catalog. I’ve chosen a Liberty for Java implementation, which will provision a highly composable, ultra-fast, ultra-light profile of IBM WebSphere Application Server designed for the cloud. I simply provide a name for my app, and Bluemix will provision the rest for me, including a sample app.

Create App

Create a new Cloud Foundry application

As soon as the provisioning is completed, I can view the running app in my browser.

Running app

Basic Hello World! Java app

In the menu, if I select Cloud Foundry apps, and choose my app from the list, I can view the app’s parameters, including runtime information, any service connections, and logs.

App Dashboard

App Dashboard for Java App

Enabling Continuous Delivery and DevOps toolchains

Scrolling down, I can also enable continuous delivery, which will create a new DevOps toolchain for this application, allowing me to put in place an agile software development workflow that not only increases the speed in which teams can deploy software and bug fixes, but also enables developers to build software that is more inline with customers’ requests and needs.

Enable Continuous Delivery

Enable Continuous Delivery

In this case, the provisioned toolchain will include a Git repository and issue tracker hosted on Bluemix by IBM, a full featured Web IDE based on Eclipse Orion, and an automated delivery pipeline. I simply need to click create to instantiate the toolchain.

Create Toolchain

Create Toolchain

Now that the toolchain is instantiated and configured, I can go ahead and modify it if desired by clicking the Add a Tool button that will take me to the integration catalog, which includes integrations with dozens of additional tools from IBM, open source or third party suppliers.

Provisioned toolchain

Provisioned toolchain

Modifying the Application

To see the pipeline in action, I can modify some code in the Web IDE. Here, I’m just changing the text of the welcome messaging in the java servlet.

Code Editor

Edit app code in Web IDE

After I commit the code into the Git repository, the pipeline will automatically redeploy the application. My default pipeline has just two stages – one that builds the application, and one that deploys it. You can have as many stages as you need for your application, for building, deploying and testing your application. In addition, within each state, multiple jobs can be run – for example, running code coverage or unit tests, or for security or functional testing.

Delivery Pipeline

Delivery Pipeline

Once the deployment is complete, the browser can be refreshed to see the updated application.

Updated App

Updated App

Summary

Bluemix Continuous Delivery makes it easy for you to quickly develop, build, and deploy applications on IBM Cloud. Bluemix Continuous Delivery provides a unified user interface, enabling you to easily manage your software development activities in one place. As shown in this article, it’s easy to add toolchains to existing applications, just by a click of a button.

You can get started using Bluemix Continuous Delivery for developing new software projects on IBM Cloud today. Learn more by reviewing the Toolchain information on the IBM Cloud Garage Method pages, and the Bluemix Continuous Delivery user guide documentation.

DevOps Evangelist

More How-tos stories

Custom login page for App ID integration

When developing an application that integrates with App ID, the standard hosted login page has a few options to change the colours or logo. In some cases, this isn't enough and direct customisation is necessary. There exists a handy guide for a custom App ID login screen in mobile applications, however for web applications a little more effort is required.

Continue reading

Modernize your apps with containers, Kubernetes and AI

Follow the GitHub tutorial and video to update JPetStore, a traditional Java web app, into a modern sales channel using Docker containers, Kubernetes, Watson Visual Recognition and text messaging.

Continue reading

Extend your global reach with Ready for IBM Cloud branding for your Cloud Solution

If you are an Independent Software Vendor, Managed Service Provider or Cloud Solution Provider you have the opportunity to extend your brand, validate your technology and gain global exposure with the Ready for Cloud mark.

Continue reading