VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

46
VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together Eduardo Patrocinio Technical Leader Client Cloud Implementation @patrocinio

Transcript of VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Page 1: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put

togetherEduardo Patrocinio

Technical Leader Client Cloud Implementation

@patrocinio

Page 2: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

What??

Page 3: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Scenario: etherpad lite

• Collaboration tool

• Node.js and a database

• https://beta.etherpad.org/p/athens

Node.js

Database (DirtyDB, mysql)

Page 4: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

VMware vSphere

Page 5: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

VMware vSphere

• Server (x86) Virtualization

• Powerful storage (VMFS, Thin Provisioning)

• High availability (vMotion)

Page 6: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

VMware Steps• Request IP address

• Create Virtual Machine

• Assign IP address

• Install many libraries

• Install node.js

• Clone git repository

• Run

Page 7: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together
Page 8: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

VMware - Good and bad

Good

• Everywhere

• Widely known

• HA capable

Bad

• Vendor lock-in

• Familiarity

• Many steps

Page 9: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Chef

Page 10: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Chef

• Configuration Management

• Ruby

• Chef Server Chef solo

Page 11: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

chef Steps• Request IP address

• Create Virtual Machine

• Assign IP address

• Install chef-solo

• Download chef recipes

• Run chef solo

• Run etherpad

Page 12: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together
Page 13: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

chef - Good and bad

Good

• Idempotent

• DevOps

• Cross Platform

Bad

• Difficult to configure

• ruby

• Knowledge on chef

Page 14: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

SoftLayer

Page 15: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

SoftLayer

• Managed Hosting / Cloud Provider

• IaaS

• Flexible (API,BareMetal)

Page 16: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

SoftLayer Steps• Request Virtual Machine

• Install many libraries

• Install node.js

• Install npm

• Clone git repository

• Run

Page 17: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together
Page 18: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

SoftLayer - Good and bad

Good

• Simple

• Public Cloud

• Many Data Centers

Bad

• Public Cloud

Page 19: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

OpenStack

Page 20: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

OpenStack

• Cloud Software Platform

• Open source

• Many projects /components

Page 21: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

OpenStack Steps

• Request Virtual Machine

• Install many libraries

• Install node.js

• Clone git repository

• Run

Page 22: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together
Page 23: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

OpenStack - Good and bad

Good

• Simple

• No Vendor Lock-in

Bad

• Need to understand OpenStack concepts

Page 24: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

OpenStack Heat

Page 25: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

OpenStack Heat

• Orchestration

• Composite cloud application

• Application resilience

Page 26: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Heat Steps

• Launch a Stack

• Point to Etherpad Heat template

Page 27: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together
Page 28: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

heat_template_version: 2013-05-23

description: Simple template to deploy a single compute instance

resources: my_instance: type: OS::Nova::Server properties: image: Eduardo-CentOS-2 flavor: m1.small user_data: | #!/bin/bash yum -y install gzip git curl python openssl-devel > /tmp/install.log yum -y groupinstall "Development Tools" >> /tmp/install.log curl --silent --location https://rpm.nodesource.com/setup | bash - yum -y install nodejs >> /tmp/install.log git clone git://github.com/ether/etherpad-lite.git cd etherpad-lite bin/run.sh --root >> /tmp/install.log

outputs: URL: description: Etherpad URL value: str_replace: template: http://host:9001 params: host: { get_attr: [my_instance, first_address] }

Hea

t Tem

plat

e

Page 29: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Heat- Good and bad

Good

• Deploys application in 1 shot

• Auto-scaling

• Resilience

Bad

• Writing Heat Templates can be frustrating

Page 30: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Cloud Foundry

Page 31: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Cloud Foundry

• PaaS

• Supports full lifecycle (continuous delivery)

• Scalable

Page 32: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Cloud Foundry Steps• Obtain an account in a Cloud Foundry

environment (Bluemix, for example)

• Download CF CLI

• Download Etherpad for CF

• Log in

• Push the application

Page 33: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together
Page 34: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Cloud Foundry - Good and bad

Good

• Scalable PaaS

• Focus on development

• Magical

Bad

• Rethink the way you develop apps

Page 35: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Docker

Page 36: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Docker

Page 37: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Docker Steps

• Log on to a Docker environment (Bluemix or your local Linux machine)

• Run the Docker application

• Obtain the mapped port

Page 38: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together
Page 39: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Dockerfile# DOCKER-VERSION 0.4.0

from ubuntu:12.04 run echo 'deb http://us.archive.ubuntu.com/ubuntu/ precise universe' >> /etc/apt/sources.list run apt-get -y update run apt-get -y install python-software-properties run add-apt-repository ppa:chris-lea/node.js

# Install required packages run apt-get -y update run apt-get -y install nodejs git-core curl python libssl-dev pkg-config build-essential

# Install etherpad-lite run mkdir /src run git clone https://github.com/ether/etherpad-lite.git /src/etherpad-lite #add ./settings.json /src/etherpad-lite/settings.json run /src/etherpad-lite/bin/installDeps.sh

expose :9001

entrypoint ["/src/etherpad-lite/bin/run.sh", "--root"]

Page 40: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Docker - Good and bad

Good

• Density

• Fast

• Enables microservice

Bad

• Rethink the way you develop apps

• Not for all workloads

Page 41: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Kubernettes

Page 42: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Kubernettes

Page 43: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Ansible

Page 44: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Ansible

Page 45: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Ansible Steps

• Install Ansible

• Set up an SSH key pair

• Copy the key pair

• Download ansible playbook

Page 46: VMware, SoftLayer, OpenStack, Heat, Cloud Foundry and Docker put together

Conclusion