...

Intro to IBM Bluemix DevOps Services, Part 1: IBM Ecosystem Development 19

by user

on
Category: Documents
12

views

Report

Comments

Transcript

Intro to IBM Bluemix DevOps Services, Part 1: IBM Ecosystem Development 19
IBM Ecosystem Development
Intro to IBM Bluemix DevOps Services, Part 1:
Fork and deploy a simple java app.
Francisco Javier Ramos Muñoz
[email protected]
Ecosystem Development, IT Specialist
IBM
19th June 2015
(First published 19th June 2015)
In this three part introductory series on Bluemix and DevOps Services, you discover how using
these products can prevent you from wasting time. You learn how to quickly and easily deploy
a simple app, deploy an app that makes use of a Bluemix service. You'll even try out the web
IDE (no setup required) and learn how to use agile planning tools. As a bonus to all of the
knowledge you'll get by working through the examples in this series, you also get an
application that checks the prices of items in online stores for you, so you don't have to surf
the web to see if your favorite items are on sale!
This workshop is an adaptation of the original series written by Lauren Hayward Schaefer,
but adapted to the Java language. I tried to keep all the excellent text written by Lauren as
much I could, but... at the end, sincerelly... I prefer to go to the beach instead of shopping.
Lauren Hayward Schaefer:
https://www.ibm.com/developerworks/community/profiles/html/profileView.do?
key=d48395c0-6616-450d-94dc-d98f63480a6b&lang=en&tabid=dwAboutMe
Original tutorial series:
http://www.ibm.com/developerworks/cloud/library/cl-intro1-app/index.html
Sign up for IBM Bluemix™This cloud platform is stocked with free
services, runtimes, and infrastructure to help youquickly build and deploy
your next mobile or web application.
As a developer, I'm always on the lookout for ways to get things done easier. I despise wasting
time setting up development environments, configuring servers, and, generally, doing anything
that can be automated. (Less time working means more time for beach!) That's why I love
using IBM Bluemix DevOps Services.
© Copyright IBM Corporation 2014, 2015
Page 1 of 4
IBM Ecosystem Development
What Part 1 covers
In Part 1, learn how to:
• Fork an existing app
• Deploy an app to Bluemix from Bluemix DevOps Services
About the app
In this workshop, you work with a sample online store called "Lauren's Lovely Landscapes."
The store currently sells three prints; each print's page displays the name, image, and price
associated with the print.
What you need to get started
Before you begin, you need to register at Bluemix and Bluemix DevOps Services. You'll also
need one of the following browsers:
•
•
•
•
Firefox 15 or later
Chrome 21 or later
Internet Explorer 10 or later
Safari 7 or later
© Copyright IBM Corporation 2014, 2015
Page 2 of 4
IBM Ecosystem Development
Launch the online store
As you are working with and testing the Fabulous Price Finder that you'll use in workshops 2
and 3, having an online store where you can easily manipulate prices will be helpful. To get the
online store, fork the "Lauren's Lovely Landscapes" app and deploy it to Bluemix.
At Bluemix DevOps Services, forking a project means taking a copy of the code in an existing
project and putting it in a new project.
Step 1. Fork Lauren's Lovely Landscapes
•
•
•
•
•
Go to the Laurens Lovely Landscapes project overview page.
Click Edit Code in the upper-right corner. You might be prompted to authenticate if you
have not already done so. The web IDE opens.
Click FORK in the upper-left corner.
Type a name for your project, leave the Add features for Scrum development and
Make this a Bluemix Project boxes checked, and click CREATE.
Note that when the project has finished forking, your new project name is listed in the
upper-left corner.
Now you have a copy of the code in your own project. The next step is to deploy it.
Step 2. Deploy Lauren’s Lovely Landscapes
To deploy an application means to bundle the project artifacts, create an app at Bluemix,
transfer the bundled app to Bluemix, and start the app. Bluemix application names and URLs
are createdusing properties, which are often defined in the manifest.yml file in a project. The
"Lauren's LovelyLandscapes" project already has the manifest created for you.
•
•
In the left navigation pane of the web IDE, select manifest.yml.
Click the deploy button (>) in the top bar.
Note: When you deploy through the Web IDE, you are deploying the changes that are in your
Web IDE's workspace. For example, you may have changes you are currently working on that
you have not yet pushed to your project's repository. Those changes will be deployed.
Step 3. See Lauren’s Lovely Landscapes running
After your application is deployed to Bluemix, a green dot displays in the status area of the top
gray bar.
•
•
Click the Open URL button ([/]) in the top bar.
Browse your application that is running live on Bluemix. Click on the Antarctica page
and note that the current price is $100.00.
© Copyright IBM Corporation 2014, 2015
Page 3 of 4
IBM Ecosystem Development
Fork and launch the Fabulous Price Finder app
Now you must repeat all the steps to fork the “Fabulous Price Finder” app and deploy it to
Bluemix. This is the project where we're going to work with the delivery pipeline service, orion
web editor or eclipse IDE as your wish, and track and plan tool in DevOps.
You can access the project page at https://hub.jazz.net/project/FcoRamos/Fabulous%20Price
%20Finder%20-%20Java/overview
© Copyright IBM Corporation 2014, 2015
Page 4 of 4
Fly UP