Your path to success with Continuous Delivery

Your path to success with Continuous Delivery

Share this post:

You’ve created an app and you know the benefits of delivering it through a DevOps approach. But there’s a problem: you want to focus your energy on providing a great app, not on orchestrating a process. You need a set of tools that are integrated to speed development and automate testing and deployment. We’ve got you covered. The IBM® Bluemix® Continuous Delivery service includes all the tools you need and quick-to-provision toolchain templates to support a DevOps process. This diagram illustrates one possible lifecycle for the development and deployment of an app that uses a toolchain:

Simplified App Lifecycle

Let’s take a closer look at each of the steps.

Design your app, pick a language and tools

You can develop apps in Node.js, Java™, and many other languages.

  • To develop Node.js apps, use Git source control and Bluemix Live Sync. You can sync your code from the Web IDE and propagate changes to your running app automatically, which is helpful for debugging.
  • To develop and debug Java apps, use Eclipse or IBM Rational Team Concert™ and the IBM Eclipse Tools for Bluemix.
  • To develop and debug apps in other languages, you can use your tools of choice. When you’re ready to deploy, use Delivery Pipeline, which is part of the Continuous Delivery service, or use the Cloud Foundry cf command-line tool.

Create an app on Bluemix

You can create an app on Bluemix in several ways: Create an app by using Bluemix, use the Deploy to Bluemix button for an existing app, or create a toolchain and specify a Git repository (repo) that contains the app.

  1. Create an app on Bluemix: On the Bluemix dashboard, click Create App. If you know what type of app you want to create, select the appropriate starter. After you have a Bluemix app, you can add a toolchain to it by enabling Continuous Delivery on the Overview page of the Apps dashboard.
  2. If you’re on a page that displays a Deploy to Bluemix button, click the button to create a copy of the project and deploy it to Bluemix. You will need to log in to Bluemix. If stages are defined in the pipeline, they are copied to your new toolchain. Here’s a working example; click the button to try it:
  3. On the page that opens, click Deploy:

    Your toolchain is created and the toolchain is displayed:

You can use a toolchain template to create a toolchain with either a sample app or a repo that you already created.

Develop your code

To develop code and perform source-control tasks, you can use tools that come with Bluemix or seamlessly integrate third-party tools.

  1. An integrated tool that works with your toolchain and Bluemix is the Eclipse Orion Web IDE (the Web IDE). In your toolchain, click Eclipse Orion Web IDE.

    The Web IDE opens in your browser.
  2. If your project is a GitHub, GitHub Enterprise, or Git Repos and Issue Tracking repo, you can use any Git client, including Eclipse and Rational Team Concert. Alternatively, you can use your own editor, clone your Git repo, and use the Git command line to commit files.
  3. If your project is a GitHub, GitHub Enterprise, or Git Repos and Issue Tracking repo, you can clone it locally and use Git commands to update your repo.

To see the Web IDE commands and the equivalent Git CLI commands, see the Bluemix Docs.

Deploy your app to Bluemix

You can deploy in one of three ways:

  1. Deploy the code that is committed in your Git repo: In your toolchain, click Delivery Pipeline.

    Your pipeline opens:

    By default, your pipeline automatically deploys whenever changes are pushed to your Git repo.
  2. Deploy the code that is in your cloud workspace by using the Web IDE. From the run bar, create or use a launch file and click the Run icon:

    For Node.js apps only, you can edit and propagate changes to a running app automatically by using the Live Edit feature of Bluemix Live Sync in the Web IDE.
  3. If you are developing locally, you can deploy the code that is in your local directory by using the Cloud Foundry (cf cli) commands, the IBM Bluemix Container Service, or Mobile services.

Test and debug your app

Your options to test and debug depend on what type of app you’re developing and how you’re developing it.

  • If you’re using a pipeline, use a test stage.
  • From the Web IDE, you can update your code and use the Git page to commit and push your changes. If you pipeline is set up to redeploy on a push, the pipeline will run. If not, you can manually run your pipeline.
  • If you’re developing a Node.js app and you enabled Live Edit, use the Debug feature for Bluemix Live Sync.
  • If you’re developing your apps in Eclipse, use the Eclipse Tools for Bluemix with Development mode.

Deploy to your production site

Use the pipeline and, optionally, blue-green deployments or gates to deploy a tested version to your production site.

Learn more

By using a toolchain with the Continuous Delivery service, you get the support that you need to develop, test, and deploy your app. The tools work together so that you can focus on your app’s functionality rather than on process.

To learn more about what you can do with the Continuous Delivery service, see the documentation. To explore DevOps practices to adopt, see the IBM Cloud Garage Method site.

#awvi,#bluemix,#devops,#ibm

Bluemix

via Bluemix Blog https://ibm.co/2pQcNaA

June 2, 2017 at 03:39AM

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s