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.

More How-tos Stories

Centralized Configuration for Spring Apps on Bluemix Kubernetes

In this tutorial, we'll adapt the Centralized Configuration guide from the Spring website to be deployed to Bluemix Kubernetes. We'll host our configuration files in a Github repository. Before getting started, you should follow the guide or download the complete version.

Continue reading

Monitoring & logging for IBM Bluemix Container Service with Sematext

In this blog post we discuss how Sematext integrates with IBM Bluemix Container Service to provide monitoring and logging visibility of your containerized applications, as they run in production. In the sections below, we demonstrate how to set up a Kubernetes cluster in Bluemix and how to set up Sematext in this cluster. IBM Cloud has monitoring and logging capabilities in the platform, but we know our customers operate in a multi-cloud or hybrid cloud environment and we are very excited to partner with Sematext, enabling operational consistency across those environments. We worked with Alen Komljen, an Automation Engineer from Sematext, to create the following content and perform the technology validation.

Continue reading

99.95% availability. Balancing release velocity and reliability

Availability and reliability are rarely at the front of developers minds when delivering new applications on Bluemix. The ease and speed of creating and deploying new features is very seductive.

Continue reading