Best Angular 17 Classroom & Online training - Naresh IT
Codemotion Rome 2015 IBM Bluemix and Docker
1. ROME 27-28 march 2015
IBM Bluemix e Docker un matrimonio ricco di
sorprese per soluzioni Hybrid Cloud
giulio_santoli@it.ibm.com – IBM
@gjuljo
Giulio Santoli
ibm.biz/Bluemix2015
2. ROME 27-28 march 2015 - Giulio Santoli
IBM Bluemix
+ =
To the bride and groom!
3. ROME 27-28 march 2015 - Giulio Santoli
Bluemix is an open-standards, cloud-based platform for building, running, and
managing applications.
IBM DevOps Services
Manage the software lifecycle, from planning
to production
Internet of Things
Integrate your apps with the physical world
Watson Services
Leverage the power of Cognitive Computing in your apps
Dallas
(now)
London
(now)
Bluemix Public Location
SoftLayer Data Center
What is Bluemix?
4. ROME 27-28 march 2015 - Giulio Santoli
Infrastructure
as a Service
Code
Data
Runtime
Middleware
OS
Virtualization
Servers
Storage
Networking
Code
Data
Runtime
Middleware
OS
Virtualization
Servers
Storage
Networking
Platform
as a Service
Code
Data
Runtime
Middleware
OS
Virtualization
Servers
Storage
Networking
Traditional
on-premises
We started as a public PaaS
Customer Managed
Service Provider Managed
5. ROME 27-28 march 2015 - Giulio Santoli
Code
Data
Runtime
Middleware
OS
Virtualization
Servers
Storage
Networking
Code
Data
Runtime
Middleware
OS
Virtualization
Servers
Storage
Networking
Code
Data
Runtime
Middleware
OS
Virtualization
Servers
Storage
Networking
But now Bluemix is much more
*Bluemix Local coming Summer 2015
Customer Managed
Service Provider Managed
Infrastructure
as a Service
Platform
as a Service
Traditional
on-premises
6. ROME 27-28 march 2015 - Giulio Santoli
Bluemix DevOps Services
Cloud
Foundry
Docker
Containers
Open Stack
VMs
Agile
Planning
Web IDE
(Orion)
Delivery
Pipeline
Git
Hosting
BETA
Bluemix & DevOps Services
Bluemix is an application run-time environment, DevOps Services handles the
software lifecycle, from project to delivery.
BETA
7. ROME 27-28 march 2015 - Giulio Santoli
7
Introducing Docker
What is Docker?
“Docker is an open platform for developers and system admins to
build, ship, and run distributed applications.”
How is this different from Virtual Machines?
“Docker runs as an isolated process in userspace on the host
operating system, sharing the kernel with other containers. Thus, it
enjoys the resource isolation and allocation benefits of VMs but is
much more portable and efficient. ”
8. ROME 27-28 march 2015 - Giulio Santoli
• Image – layered file system where each layer references the layer below
• Container – runtime instance of an image plus a read/write layer
• Dockerfile – build script that defines:
– an existing image as the starting point
– a set of instructions to augment that image (each of which results in
a new layer in the file system)
– meta-data such as the ports exposed
– the command to execute when the image is run
• Docker Hub – centralised repository of Docker images
8
bootfs (Kernel)
ubuntu:14.04 debian:wheezy
ibm-jre:8.0
websphere-liberty:8.5.5 websphere-liberty:beta
app-a app-b app-c app-eapp-d
c1 c2 c3 c4 c5 c6
mongo:latest
c7 c8
= container
= image
Docker Terminology
9. ROME 27-28 march 2015 - Giulio Santoli
• Machine
– Create a new Docker host/VM
• Swarm
– Manage multiple Docker hosts as if they were one big one
• Compose (Fig)
– Group multiple containers into a single deployable unit
Additional Docker Projects
10. ROME 27-28 march 2015 - Giulio Santoli
• Member of the Governance Advisory Board
• Strategic partnership with Docker
– IBM will deliver Docker Hub Enterprise (DHE) as an on-premise solution
• IBM Containers service on Bluemix
– Security
– Multi-container, single- & multi-host
– Scaling group and auto-recovery
• Docker portings to Linux on Power and System z
• Docker support for PureApplications Patterns
• Containerised IBM software on Docker Hub
IBM & Docker
11. ROME 27-28 march 2015 - Giulio Santoli
• Scenario 1: everything on local
– Both application and database running on the laptop
• Scenario 2: running on Bluemix (Cloud Foundry style)
– Application running on Bluemix using Cloudant
• Scenario 3: dockerized application on local
– Dockerized application using the local database
• Scenario 4: dockerized application on Bluemix
– Dockerized application on Bluemix using Cloudant
Demo (Node.js & CouchDB)
12. ROME 27-28 march 2015 - Giulio Santoli
Scenario 1
Local: everything (application & database) running on the laptop
15. ROME 27-28 march 2015 - Giulio Santoli
Scenario 4
Dockerized on Bluemix: application running on Bluemix + Cloudant
Docker Cloudant
Bluemix
$> docker tag myimage registry-ice.ng.bluemix.net/gjuljo/myimage
$> docker push registry-ice.ng.bluemix.net/gjuljo/myimage
$> ice run -n mycontainer -b myapplication -p 3000 gjuljo/myimage
$> ice ip bind xxx.xxx.xxx.xxx mycontainer
docker push
16. ROME 27-28 march 2015 - Giulio Santoli
Thank you!
Put to see with Bluemix & Docker
ibm.biz/Bluemix2015
17. ROME 27-28 march 2015 - Giulio Santoli
References and Docs
- BLUEMIX WEBINARS AND DOCS
http://webinars.mybluemix.net/
https://www.ng.bluemix.net/docs
https://developer.ibm.com/bluemix
- PREREQUISITES AND DOWNLOAD
https://developer.ibm.com/bluemix/support/#prereqs
- COMMAND LINE AND VCAP_SERVICES ENVIRONMENT VARIABLE
https://www.ng.bluemix.net/docs/#cli/index.html#cli
http://docs.cloudfoundry.org/devguide/deploy-apps/environment-variable.html
- MANIFEST GUIDE (manifest.yml)
http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html
- BUILDPACK FROM CLOUD FOUNDRY COMMUNITY
https://github.com/cloudfoundry-community/cf-docs-contrib/wiki/Buildpacks
18. ROME 27-28 march 2015 - Giulio Santoli
Tutorials
- BUILD YOUR FIRST NODE.JS WEB SITE
https://www.youtube.com/watch?v=GRQnwVhYeWU
http://www.ibm.com/developerworks/library/wa-simplenode1-app/index.html
- EXAMPLE HYBRID MOBILE APP AND PUSH NOTIFICATION
http://www.ibm.com/developerworks/mobile/library/mo-push-apache-cordova-app
- EXAMPLE JAVA EE AND CLOUDANT
https://developer.ibm.com/bluemix/2014/07/08/cloudant_on_bluemix
- EXAMPLE MEAN STACK (MongoDB, Express, AngularJS, Node.js)
http://www.ibm.com/developerworks/web/library/wa-nodejs-polling-app/index.html
- EXAMPLE NODE-RED, TWITTER AND WATSON Q&A
http://www.ibm.com/developerworks/cloud/library/cl-twitterbot-watson-bluemix-app/index.html
- GETTING STARTED WITH DOCKER
https://developer.ibm.com/bluemix/2014/12/04/ibm-containers-beta-docker
19. ROME 27-28 march 2015 - Giulio Santoli
Leave your feedback on Joind.in!
https://joind.in/event/view/3347