Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

1,976 views

Published on

IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

Published in: Technology
  • Be the first to comment

IBM Bluemix and Docker Guest Lecture at Cork Institute of Technology

  1. 1. 1 IBM Bluemix http://bluemix.net IBM Bluemix and Docker Lecture @ Cork Institute of Technology November 19th 2014 Presenter Sanjay Nayak Software Architect IBM
  2. 2. 2 IBM Bluemix http://bluemix.net http://bluemix.net LLoogg i nin
  3. 3. Traditional On-Premises Applica tions Data Runtime Middlew are O/S Virtuali zation Servers Storage 3 IBM Bluemix http://bluemix.net Cloud Service Models Networ king Client Manages Applica tions Data Runtime Middlew are O/S Virtuali zation Server s Storag e Networ king Vendor Manages in Cloud Client Manages Bluemi x Platf orm as a Servi ce Applica tions Data Runtime Middlew are O/S Virtuali zation Server s Storag e Networ king Vendor Manages in Cloud Client Manages SoftL ayer Infras tructu re as a Servic e Service Engage Applica tions Data Runtime Middlew are O/S Virtuali zation Servers Storage Networ king Vendor Manages in Cloud Softw are as a Servic e
  4. 4. 4 IBM Bluemix http://bluemix.net 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 Seconds The developer can choose any language runtime or bring their own. Zero to production in one command. DevOps Development, monitoring, deployment, and logging tools allow the developer to run the entire application. APIs and Services A catalog of IBM, third party, and open source API services allow the developer to stitch an application together in minutes. On-Prem Integration Build 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 Security IBM secures the platform and infrastructure and provides you with the tools to secure your apps.
  5. 5. 5 IBM Bluemix http://bluemix.net 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.
  6. 6. 6 IBM Bluemix http://bluemix.net Bluemix Architecture
  7. 7. Why are developers using Bluemix? 7 IBM Bluemix http://bluemix.net 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.
  8. 8. IBM BluemixTM DevOps Services An 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 8 IBM Bluemix http://bluemix.net
  9. 9. IBM DevOps Services (IDS) Previously known as JazzHub 9 IBM Bluemix http://bluemix.net IBM DevOps Services (JazzHub) Web IDE SCM Eclipse Bluemix
  10. 10. DevOps Services available today 10 IBM Bluemix http://bluemix.net
  11. 11. 11 IBM Bluemix http://bluemix.net Sample Application • IBM developerWorks Article http://www.ibm.com/developerworks/library/mo-android-mobiledata-app/
  12. 12. 12 IBM Bluemix http://bluemix.net Sample Application • IBM developerWorks Article http://www.ibm.com/developerworks/library/wa-bluemix-meteor-app
  13. 13. 13 IBM Bluemix http://bluemix.net Sample Application • My IBM developerWorks Article https://www.ibm.com/developerworks/library/wa-websockets-app/
  14. 14. 14 IBM Bluemix http://bluemix.net Sample Application
  15. 15. 15 IBM Bluemix http://bluemix.net Demo Application Items • Bluemix User Interface • Runtimes, Services, Add-ons • Cloud Foundry CLI (cf) • Can install other CF build-packs
  16. 16. 16 IBM Bluemix http://bluemix.net 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 cf sp – stop app space 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
  17. 17. 17 IBM Bluemix http://bluemix.net Watson Services
  18. 18. 18 IBM Bluemix http://bluemix.net Internet of Things (IoT) www.internetofthings.ibmcloud.com
  19. 19. 19 IBM Bluemix http://bluemix.net Internet of Things – Devices with Wi-Fi Shield
  20. 20. 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 20 IBM Bluemix http://bluemix.net
  21. 21. 21 IBM Bluemix http://bluemix.net 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
  22. 22. 22 IBM Bluemix http://bluemix.net Docker
  23. 23. 23 IBM Bluemix http://bluemix.net What is Docker http://www.slideshare.net/tuna20073882/dockerhanoi-meetup-introduction-about-docker
  24. 24. 24 IBM Bluemix http://bluemix.net 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
  25. 25. 25 IBM Bluemix http://bluemix.net Containers vs VMs http://www.slideshare.net/tuna20073882/dockerhanoi-meetup-introduction-about-docker
  26. 26. 26 IBM Bluemix http://bluemix.net Docker Concepts • Containers • Images • Registry • Public: https://index.docker.io • Private: build your own • Dockerfiles • Client-server • Docker service • REST APIs • Docker client
  27. 27. 27 IBM Bluemix http://bluemix.net Docker Basics http://www.slideshare.net/tuna20073882/dockerhanoi-meetup-introduction-about-docker
  28. 28. 28 IBM Bluemix http://bluemix.net Build Docker Image • Create Dockerfile (for WebSphere Liberty Profile) FROM ubuntu:12.04 # add the files we require, jar + WLP files ADD wlp-developers-extended-8.5.5.2.jar /root/ ADD wlp-developers-runtime-8.5.5.2.jar /root/ ADD JAXWSEJBSample.jar /root/ # install WLP RUN apt-get update RUN apt-get install -y default-jre RUN 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/wlp EXPOSE 9080 CMD /root/wlp/bin/server run JAXWSEJBSample # docker build -t name/wlp .
  29. 29. 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/... 29 IBM Bluemix http://bluemix.net
  30. 30. 30 IBM Bluemix http://bluemix.net 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
  31. 31. 31 IBM Bluemix http://bluemix.net Thank You

×