Bluemix essentials

Bluemix essentials

Course Features

Course Details

New! This course has been updated to introduce using Bluemix Continuous Delivery toolchains to manage application deployment on Bluemix. It also now covers the use of the Bluemix (bx) command-line tool for managing applications. IBM® Bluemix® is an open-standards, cloud platform for building, running, and managing applications. With Bluemix, developers can focus on building excellent user experiences with flexible compute options, choice of DevOps tooling, and a powerful set of IBM and third-party APIs and services. This course helps you understand the fundamentals of cloud computing, IBM Bluemix, services, and Cloud Foundry applications.
Get started

Prerequisite installation IBM Bluemix and cloud computing

Lab 1: Create an app by using an application starter

FREE
Create an app by using an application starter
4 of 6
In this section, you learn how to navigate the Bluemix catalog and create a simple runtime with a programming language of your choice. Log into Bluemix Click Log In, enter your login information on the IBM id page, and then click Sign in. You should see your dashboard view. Click Catalog to open the Bluemix offering catalog. Click one of the IBM (blue icon) or Community (green icon) Cloud Foundry Apps. For the example here, the Liberty for Java™ runtime is used. In the Create a Cloud Foundry App page, provide an application name for your app. Bluemix will automatically make this the host name. The host name must be unique for this Bluemix public region. To make it unique, add your initials or company name and the date to the application name. Also, increase the memory to 256 MB. Some runtimes will work with a smaller allocation, but not all. Click Create. As your app starts, the application dashboard is displayed. This dashboard is organized with a series of pages with information about your application. In the Getting Started page, you see some information about how you can download the source code for the simple starter application. You can use this as a starting point to add your own code for this language and then push the updated application to Bluemix. In a later lab you’ll see how to do this by using the Bluemix command-line interface. Click Logs in the left navigation to watch the messages as the app builds and is started. Watch for a message confirming that the application has started: CELL/0 Container became healthy Click Routes and then select the link to your application URL. This will launch the application in a separate tab. The app is live and showing a simple “hello world” page. You have deployed a very simple application on Bluemix. You...

Continue Reading

Lab 2: create an app using Bluemix continuous delivery

FREE
Deploy an application by using Bluemix Continuous Delivery toolchains
3 of 5
In this lab, you’ll get started creating a toolchain automatically from an existing GitHub repository. This repository has a Deploy to Bluemix button that automatically creates a continuous delivery toolchain, forks a copy of the application to your own code repository, and runs the delivery pipeline in the toolchain to deploy the application. Open the sample application GitHub repository at http://github.com/ibmecod/nodejs-cloudant. Scroll down to the README and click Deploy to Bluemix. The toolchain creation page for your new application is shown. On this page, the tool integrations are shown. The Delivery Pipeline tool is selected, and you can update the proposed name based on the original repository. Customize this if you want to as you did with the starter application. You can also customize the deployment region, organization, and space for the app or accept the defaults. Select the icon for Git Repos and Issue Tracking. You see a page where you can customize the repository settings for the copy of your application source code. You can leave the default values. This repository is hosted on Bluemix using GitLab Community Edition. Click Deploy. A confirmation message and the toolchain overview is displayed. Bluemix is running the deployment now. Click the Delivery Pipeline icon to monitor the deployment status. When it finishes, the Deploy stage will show a successful execution. Click the link for the app to open it in a new tab. This application is a document and image organizer that uses a Cloudant NoSQL database to store files that are uploaded from a web browser. The app has been created with a long and random host name. This was chosen based on a property in the manifest.ymlfile. To change this, navigate back to the application dashboard. Go back to the browser tab with the Bluemix dashboard and refresh the page if your new app is not showing. Then, click on...

Continue Reading

Lab 3: use the Bluemix CLI to manage an app

FREE
Download the application code and deploy to Bluemix
3 of 6
  In this section, you download the application code. Then, you deploy it by using the Bluemix CLI. Return to the sample application GitHub repository at http://github.com/ibmecod/nodejs-cloudant. Click Clone or download. If you have installed Git on your workstation, copy the Git URL and use the command git clone to copy the repository to your workstation: git clone https://github.com/ibmecod/nodejs-cloudant.git Otherwise, use the Download ZIP link and unzip the project to a new folder or directory on your workstation. Open a terminal and set the current directory to the application code directory. The package.json and manifest.ymlfiles will be in this directory. Log in to your Bluemix region with one of the following commands: bx login -a https://api.ng.bluemix.net      // US South bx login -a https://api.eu-gb.bluemix.net   // United Kingdom bx login -a https://api.eu-de.bluemix.net   // Germany bx login -a https://api.au-syd.bluemix.net  // Sydney Enter the email and password that you used to log in to the Bluemix web UI. If prompted, select the organization and space that you want to work in. Before you deploy the application, create a Cloudant database service instance. View the available services in the Bluemix catalog by running the bx service offerings command. This command takes a little while to run because it collects all catalog entries.  $ bx service offerings Invoking 'cf marketplace'... Getting services from marketplace in org bluemixuser / space dev as [email protected] ... cloudamqp lemur, bunny*, panda*, rabbit*, tiger*, ape*, hippo* Managed HA RabbitMQ servers in the cloudcloudantNoSQLDB Lite, Standard* Cloudant NoSQL DB is a fully managed data layer designed for modern web and mobile applications that leverages a flexible JSON schema. Cloudant is built upon and compatible with Apache CouchDB and accessible through a secure HTTPS API, which scales as your application grows. Cloudant is ISO27001 and SOC2 Type 1 certified, and all data is stored in triplicate across separate physical nodes in a cluster for HA/DR within...

Continue Reading
FREE
Modify the application and republish to Bluemix
4 of 6
With the application deployed from your development workstation, you will now make a simple change to the application and then republish it to Bluemix. In a text editor, open the file app.js and modify the name of the file, the file description, and the values (lines 344, 345, and 348): Line 354: Change the docName from ‘sample_doc’ to ‘test_doc’ Line 355: Change the docDesc from ‘A sample Document’ to ‘A test Document’ Line 358: Change the value from ‘A sample Document’ to ‘A test Document’ 352 // push sample data 353 // save doc 354 var docName = 'test_doc'; 355 var docDesc = 'A test Document'; 356 db.insert({ 357 name: docName, 358 value: 'A test Document' 359 }, '', function(err, doc) { 360 if (err) { 362 console.log(err); 362 } else { Save the file after you make the updates. When the application starts, it creates a sample document in the database where uploaded files are saved as attachments. You just modified the code that creates this document in the database. Now, you will delete the document from the database and then restart the application to allow the database to be populated with the modified document. Open your application dashboard and click the Cloudant service shown in the Connections page. Access the Cloudant dashboard by clicking LAUNCH. Click the database icon on the left pane to open the Your Databases view. Click my_sample_db to open the database with the sample document. Edit the database document by clicking the pencil icon. Delete the document by clicking the trash icon. Confirm the deletion. Redeploy the updated application with the bx app push command. This time, you don’t need to include the --no-startor -m parameters. $ bx app push favapp-tor-0517 -c "node app.js" --no-manifest Open the application. You should now see the name test_doc for the automatically created document. To clean things up, delete the application and then the...

Continue Reading

Work with Eclipse and IBM Bluemix Summary

What Others Have Said



More Courses by this Instructor