IBM Bluemix Lab - - Java Cache Web Application Tony Yang - - PowerPoint PPT Presentation

ibm bluemix lab java cache web application
SMART_READER_LITE
LIVE PREVIEW

IBM Bluemix Lab - - Java Cache Web Application Tony Yang - - PowerPoint PPT Presentation

IBM Bluemix Lab - - Java Cache Web Application Tony Yang Todays Lab includes Part 1: Setup accounts and prerequisites Part 2: Start your first APP on Bluemix Part


slide-1
SLIDE 1

IBM ¡ ¡Bluemix Lab

  • ­‑
  • ­‑ Java ¡

¡Cache ¡ ¡Web ¡ ¡Application

Tony ¡Yang

slide-2
SLIDE 2

Today’s ¡ ¡Lab ¡ ¡includes…

Part ¡1: Setup ¡accounts ¡and ¡prerequisites Part ¡2: Start ¡your ¡first ¡APP ¡on ¡Bluemix Part ¡3: Cloud ¡Foundry ¡CLI Part ¡4: Modify ¡APP ¡using ¡DevOps

slide-3
SLIDE 3

Lab ¡ ¡#0: ¡ ¡Pre-­‑

  • ­‑requisites
  • 1. Create ¡Bluemix ¡account ¡(IBM ¡ID) ¡
  • 2. Register ¡IBM ¡DevOps ¡Services ¡and ¡link ¡to ¡Jazz ¡ID
  • 3. Install ¡the ¡cf ¡command ¡line ¡interface
slide-4
SLIDE 4

Login ¡IBM ¡Bluemix:

http://www.bluemix.net

slide-5
SLIDE 5
slide-6
SLIDE 6
slide-7
SLIDE 7

Registration ¡has ¡been ¡completed

slide-8
SLIDE 8

Check ¡the ¡e-­‑mail ¡notification ¡from ¡IBM ¡Bluemix

slide-9
SLIDE 9

Validate ¡your ¡account

slide-10
SLIDE 10

Use ¡your ¡IBM ¡ID ¡to ¡sign-­‑in

slide-11
SLIDE 11

Congratulations!

slide-12
SLIDE 12

Register ¡IBM ¡DevOps ¡Services ¡ and ¡link ¡to ¡Jazz ¡ID

slide-13
SLIDE 13

Login ¡IBM ¡DevOps ¡Services:

https://hub.jazz.net/

slide-14
SLIDE 14
slide-15
SLIDE 15

Use ¡your ¡IBM ¡ID ¡to ¡log ¡in ¡to ¡DevOps ¡Services

slide-16
SLIDE 16
slide-17
SLIDE 17
slide-18
SLIDE 18
slide-19
SLIDE 19

Install ¡CloudFoundry ¡(cf) Command ¡Line ¡Interface

slide-20
SLIDE 20

Download ¡cf ¡Command ¡Line ¡Interface

https://github.com/cloudfoundry/cli/releases (請下載適合您作業系統的Installer)

slide-21
SLIDE 21
slide-22
SLIDE 22
slide-23
SLIDE 23

We ¡are ¡ready!

slide-24
SLIDE 24

Lab ¡ ¡#1: Create ¡ ¡a ¡ ¡Java ¡ ¡Cache ¡ ¡Web ¡ ¡ Application ¡ ¡on ¡ ¡Bluemix

slide-25
SLIDE 25

Step ¡1: ¡Login ¡Bluemix

slide-26
SLIDE 26

Step ¡2: ¡select ¡“CATALOG” ¡tab

slide-27
SLIDE 27

Step ¡3: ¡Select ¡“Java ¡Cache ¡Web ¡ Starter” ¡in ¡Boilerplates

slide-28
SLIDE 28

Step ¡4: ¡Name ¡your ¡application ¡ and ¡click ¡“CREATE”

slide-29
SLIDE 29

Step ¡5: ¡Check ¡your ¡application ¡ status

slide-30
SLIDE 30

Step ¡6: ¡Play ¡with ¡your ¡new ¡ application ¡on ¡Bluemix

slide-31
SLIDE 31

Lab ¡#1 ¡completed!

slide-32
SLIDE 32

Lab ¡ ¡#2: Use ¡ ¡cf ¡ ¡Command ¡ ¡Line ¡ ¡Interface

slide-33
SLIDE 33

Step ¡1: ¡Click ¡on ¡the ¡Java ¡Web ¡ Application ¡you ¡just ¡created

slide-34
SLIDE 34

Step ¡2: ¡Click ¡“View ¡Quick ¡Start”

slide-35
SLIDE 35

Step ¡3: ¡Download ¡the ¡Java ¡Web ¡ Application ¡package

slide-36
SLIDE 36

Step ¡4: ¡Please ¡follow ¡the ¡steps ¡ listed ¡in ¡Quick ¡Start

slide-37
SLIDE 37

Extract ¡the ¡package ¡and ¡cd ¡to ¡the ¡ directory

slide-38
SLIDE 38

Summary ¡of ¡cf ¡commands ¡used

  • Connect ¡to ¡Bluemix ¡API ¡end ¡point

cf ¡api

  • Log ¡into ¡Bluemix

cf ¡login

  • Setup ¡organization ¡and ¡space ¡target ¡(optional)

cf ¡target

  • Deploy ¡your ¡application

cf ¡push

slide-39
SLIDE 39

Demo ¡(if ¡time ¡permits)

  • Use ¡Eclipse ¡to ¡update ¡and ¡re-­‑build ¡the ¡code, ¡and ¡

use ¡cf ¡command ¡to ¡push ¡it ¡to ¡Bluemix.

slide-40
SLIDE 40

Lab ¡#2 ¡completed!

slide-41
SLIDE 41

Lab ¡ ¡#3: Modify ¡ ¡and ¡ ¡Deploy ¡ ¡Application ¡ ¡ using ¡ ¡IBM ¡ ¡DevOps Services

slide-42
SLIDE 42

Step ¡1: ¡

Click ¡on ¡the ¡sample ¡application ¡on ¡ the ¡DASHBOARD ¡tab

slide-43
SLIDE 43

Step ¡2: ¡Click ¡“ADD ¡GIT”

slide-44
SLIDE 44

Step ¡3: ¡Input ¡IBM ¡ID ¡information

slide-45
SLIDE 45

Step ¡4: ¡Continue ¡to ¡create ¡git ¡ repository

slide-46
SLIDE 46

Step ¡5: ¡Confirm ¡success.

slide-47
SLIDE 47

Step ¡6: ¡Click ¡“EDIT ¡CODE” ¡to ¡ connect ¡to ¡the ¡JazzHub

slide-48
SLIDE 48

Step ¡7: ¡On ¡the ¡JazzHub ¡web ¡editor, ¡ find ¡WebContent ¡> ¡index.html ¡

slide-49
SLIDE 49

Step ¡8: ¡Change ¡the ¡content ¡of ¡the ¡ <h1> ¡title

(Hint: ¡use ¡Ctrl-­‑F ¡to ¡search ¡for ¡“h1”)

slide-50
SLIDE 50

Step ¡9: ¡Save ¡the ¡changes ¡using ¡ File ¡> ¡Save

slide-51
SLIDE 51

Step ¡10: ¡Switch ¡to ¡“Git ¡Repository” ¡ view ¡

slide-52
SLIDE 52

Step ¡11: ¡View ¡the ¡changes, ¡add ¡ comment, ¡and ¡COMMIT

slide-53
SLIDE 53

Step ¡12: ¡Click ¡FETCH ¡to ¡sync ¡with ¡ remote ¡master

slide-54
SLIDE 54

Step ¡13: ¡PUSH ¡the ¡outgoing ¡ changes ¡to ¡remote ¡repository

slide-55
SLIDE 55

Step ¡13 ¡(cont’d)

slide-56
SLIDE 56

Step ¡14: ¡Switch ¡to ¡BUILD ¡& ¡Deploy

slide-57
SLIDE 57

Step ¡15: ¡Request ¡a ¡build ¡and ¡auto ¡ deploy ¡it ¡to ¡Bluemix

Note: ¡It ¡may ¡take ¡some ¡time ¡to ¡complete ¡the ¡build ¡and ¡deployment.

slide-58
SLIDE 58

Step ¡15: ¡Request ¡a ¡build ¡and ¡auto ¡ deploy ¡it ¡to ¡Bluemix ¡(cont’d)

Note: ¡It ¡may ¡take ¡some ¡time ¡to ¡complete ¡the ¡build ¡and ¡deployment.

slide-59
SLIDE 59

Step ¡16: ¡Check ¡your ¡changes ¡on ¡ Bluemix

slide-60
SLIDE 60

Lab ¡#3 ¡completed!

slide-61
SLIDE 61

Next ¡step

  • Start ¡play ¡with ¡the ¡Starters and ¡

Services on ¡Bluemix

  • Click ¡“VIEW ¡DOCS” ¡to ¡find ¡all ¡the ¡

information ¡you ¡need

  • Visit ¡COMMUNITY resource ¡to ¡

interesting ¡samples, ¡discussions, ¡ Q&As, ¡and ¡related ¡events.