ibm bluemix and docker guest lecture at cork institute of technology

31
IBM Bluemix http://bluemix.net 1 IBM Bluemix and Docker Lecture @ Cork Institute of Technology November 19 th 2014 Presenter Sanjay Nayak Software Architect IBM

Upload: sanjay-nayak

Post on 02-Jul-2015

1.256 views

Category:

Technology


7 download

DESCRIPTION

IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

TRANSCRIPT

Page 1: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net1

IBM Bluemix and Docker

Lecture @ Cork Institute of Technology

November 19th 2014Presenter

Sanjay Nayak

Software Architect

IBM

Page 2: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net2

http://bluemix.netLog inLog in

Page 3: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net3

Cloud Service Models

Networking

StorageServers

Virtualization

O/S

Middleware

RuntimeData

Applications

Traditional On-Premises

Clie

nt M

anag

es

Networking

Storage

Servers

Virtualization

O/S

Middleware

RuntimeData

Applications V

endor M

anages in

Cloud

Client M

anages

Bluemix

Platform as a Service

Networking

Storage

Servers

Virtualization

O/S

Middleware

RuntimeData

Applications

Vendor M

anages in

Cloud

Client M

anages

SoftLayer

Infrastructure as

a Servic

e

Service Engage

Networking

StorageServers

Virtualization

O/S

Middleware

RuntimeData

Applications

Vendor M

anages in

Cloud

Software as a

Service

Page 4: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net4

What is Bluemix?

Bluemix is an open-standard, cloud-based platform for building, managing, and running applications of all types (web, mobile, big data, new smart devices, and so on).

Go Live in SecondsThe developer can choose any language runtime or bring their own. Zero to production in one command.

DevOpsDevelopment, monitoring, deployment, and logging tools allow the developer to run the entire application.

APIs and ServicesA catalog of IBM, third party, and open source API services allow the developer to stitch an application together in minutes.

On-Prem IntegrationBuild hybrid environments. Connect to on-premise assets plus other public and private clouds.

Flexible Pricing Sign up in minutes. Pay as you go and subscription models offer choice and flexibility.

Layered SecurityIBM secures the platform and infrastructure and provides you with the tools to secure your apps.

Page 5: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net5

How does Bluemix work?Bluemix embraces Cloud Foundry as an open source Platform as a Service and extends it with IBM, third party, and community built services.

Page 6: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net6

Bluemix Architecture

Page 7: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net7

Why are developers using Bluemix?

Go from zero to running code in a matter of minutes.

Automate the development and delivery of many applications.

To rapidly bring products and services to

market at lower cost

To continuously deliver new functionality to their

applications

To extend existing investments in IT

infrastructure

Extend existing investments by connecting securely to on-premise infrastructure.

Page 8: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net8

IBM BluemixTM DevOps ServicesAn Open, Integrated Rapid Development Experience that Scales

• A Premier DevOps Service for IBM Cloud Platform• Promotes incremental frictionless adoption of

DevOps Services for Bluemix • An Integrated Developer Experience

• End-to-end DevOps Solution in the cloud for developing applications.

• Integrated task tracking, agile planning, source control with auto deploy

• Complementary mobile quality and application performance monitoring

• Use your favorite tools or work from the Web IDE

• Free public and fee-based private projects (free for now now)

• Scalable, secure, enterprise-ready • Runs on SoftLayer Infrastructure

Page 9: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net9

Bluemix

IBM DevOps Services (IDS)Previously known as JazzHub

Web IDE SCM Eclipse

IBM DevOps Services (JazzHub)

Page 10: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net10

DevOps Services available today

Page 11: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net11

Sample Application• IBM developerWorks Article

http://www.ibm.com/developerworks/library/mo-android-mobiledata-app/

Page 12: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net12

Sample Application• IBM developerWorks Article

http://www.ibm.com/developerworks/library/wa-bluemix-meteor-app

Page 13: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net13

Sample Application• My IBM developerWorks Article

https://www.ibm.com/developerworks/library/wa-websockets-app/

Page 14: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net14

Sample Application

Page 15: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net15

Demo Application Items

• Bluemix User Interface

• Runtimes, Services, Add-ons

• Cloud Foundry CLI (cf)

• Can install other CF build-packs

Page 16: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net16

Command Line Interface

• Bluemix uses the CloudFoundry command line interface (CLI) – cf

• cf help – provides help page showing all the commands

• cf help <command> - provides help for specific command

cf api api.ng.bluemix.net

cf l - login cf ds – delete service

cf t – target space or organisation cf bs – bind service to application

cf a – list apps in current space cf st – start app

cf app - display status for specific app in current space

cf sp – stop app

cf p – push (deploy or update) app cf d – delete app

cf s – show service info cf scale – scale app

cf cs – create service cf logs – tail or show logs for app

Page 17: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net17

Watson Services

Page 18: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net18

Internet of Things (IoT)

www.internetofthings.ibmcloud.com

Page 19: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net19

Internet of Things – Devices

with Wi-Fi Shield

Page 20: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net20

Pre-requisite Software and Accounts

• Java 7.0 SDK (Not JRE)• http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

• Eclipse Kepler (4.3) or Luna (4.4)• Java Enterprise Edition• http://eclipse.org

• From Eclipse Marketplace• IBM Bluemix plugin

• Git• http://git-scm.com/downloads

• Ant• http://ant.apache.org

• CloudFoundry Command Line Interface• https://github.com/cloudfoundry/cli

• Create a Bluemix account• http://bluemix.net

• Create a DevOps Services for Bluemix account• http://hub.jazz.net

Page 21: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net21

Bluemix References• IBM Bluemix, get started with your IBM ID: http://bluemix.net

• Editor’s Picks: Top 15 Bluemix Tutorials: http://www.ibm.com/developerworks/cloud/library/cl-bestoflbluemix2014/

• Bluemix Articles Archive: https://developer.ibm.com/bluemix/category/general/

• IBM Academic Initiative: http://ibm.com/academicinitiative

• Bluemix Developers community: https://developer.ibm.com/bluemix

• Bluemix YouTube Channel: https://www.youtube.com/playlist?list=PLh9e82xViX4bF5LlsYUcyu26YG7GM7i3S

• Watson Services: https://ace.ng.bluemix.net/#/solutions/solution=watson

• Internet of Things (IoT) Foundation: www.internetofthings.ibmcloud.com

• Bluemix + IoT + Node-RED demo: https://www.youtube.com/watch?v=FYrS7Ph9TT8

• IoT YouTube Channel: https://www.youtube.com/channel/UCFNoGF7Ea-FfmAjfK4ReFpA

Page 22: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net22

Docker

Page 23: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net23

What is Docker

Source: http://www.slideshare.net/tuna20073882/dockerhanoi-meetup-introduction-about-docker

Page 24: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net24

What is Docker

• Light-weight packaged Linux runtimes• Primarily “one” service (can be group of

processes)

• Based on Linux control-groups (LXC)• Now libContainer

• Build images with payload

• Run images anywhere – containers• Fast startup and shutdown

Page 25: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net25

Containers vs VMs

Source: http://www.slideshare.net/tuna20073882/dockerhanoi-meetup-introduction-about-docker

Page 26: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net26

Docker Concepts

• Containers• Images• Registry

• Public: https://index.docker.io • Private: build your own

• Dockerfiles• Client-server

• Docker service• REST APIs• Docker client

Page 27: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net27

Docker Basics

Source: http://www.slideshare.net/tuna20073882/dockerhanoi-meetup-introduction-about-docker

Page 28: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net28

Build Docker Image

• Create Dockerfile (for WebSphere Liberty Profile)FROM ubuntu:12.04# add the files we require, jar + WLP filesADD wlp-developers-extended-8.5.5.2.jar /root/ADD wlp-developers-runtime-8.5.5.2.jar /root/ADD JAXWSEJBSample.jar /root/# install WLPRUN apt-get updateRUN apt-get install -y default-jreRUN java -jar /root/wlp-developers-runtime-8.5.5.2.jar --acceptLicense /root/RUN java -jar /root/wlp-developers-extended-8.5.5.2.jar --acceptLicense /root/RUN cd /root/wlp && java -jar ../JAXWSEJBSample.jar /root/wlpEXPOSE 9080CMD /root/wlp/bin/server run JAXWSEJBSample

# docker build -t name/wlp .

Page 29: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net29

Push / Pull and Run Docker Image

• On Docker image build server# docker tag name/wlp 10.0.0.1:5000/name/wlp

# docker push 10.0.0.1:5000/name/wlp

• On Docker host to run containers

# docker pull 10.0.0.1:5000/name/wlp

# docker run -p 1930:9080 -d --name test1 10.0.0.1:5000/name/wlp

• In browser, go to http://<docker-host>:1930/...

Page 30: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net30

Docker References

• Docker: https://docker.com/

• Docker Hub: https://hub.docker.com/

• Dockerfile Best Practices

• Docker Registry: https://github.com/docker/docker-registry

• Running WebSphere Liberty Profile in a Docker Container

Page 31: IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

IBM Bluemix http://bluemix.net31

Thank You