using rancher and docker with rightscale at industrie it

17
Using Rancher and Docker with RightScale at Industrie IT Ameer Deen & Chris Fordham

Upload: rightscale

Post on 15-Apr-2017

1.138 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Using Rancher and Docker with RightScale at Industrie IT

Using Rancher and Docker with RightScale at Industrie IT

Ameer Deen & Chris Fordham

Page 2: Using Rancher and Docker with RightScale at Industrie IT

Docker Please !

○○

Page 3: Using Rancher and Docker with RightScale at Industrie IT

Design Goals - Where We Wanted To Go

Page 4: Using Rancher and Docker with RightScale at Industrie IT

Our Approach

Page 5: Using Rancher and Docker with RightScale at Industrie IT

Cloud Broker (MultiCloud) Environments (dev, tst, stg, prod etc.)

Bare Metal Service Discovery

Server Provisioning (container hosts) Container scheduling/orchestration

Infrastructure Management (e.g. networking) Overlay Network (internal/private)

Autoscaling (container hosts) Load Balancing

Monitoring & Alerting Reverse proxy

Managed Server Login (SSH) TLS termination

Page 6: Using Rancher and Docker with RightScale at Industrie IT

RightScale manages the cloud

Rancher orchestrates services

Docker runs the containers on the ships

Industrie IT provides the stacked solution

+ your CI continuously integrates and deploys

Page 7: Using Rancher and Docker with RightScale at Industrie IT
Page 8: Using Rancher and Docker with RightScale at Industrie IT

© 2015 Rancher Labs, Inc.

Build Environment

DevOps builds software in the container service

- DevOps teams create Build Environments- Adds resources and Jenkins slaves- Developer Pushes Code to Repo- Jenkins creates build containers- Build and Unit Tests run in build container- Outputs Artifacts- Jenkins creates Packaging container- Push Docker Image to registry- Build environments scale elastically

BuildDocker File

PackagingDocker File

TestCode Build Docker

File

Develop Build Package Test Deploy/Upgrade Operate8

Page 9: Using Rancher and Docker with RightScale at Industrie IT

© 2015 Rancher Labs, Inc.

Test Environment

DevOps tests software in the container service

- Create Test Environments- Upload Compose & Test files- Build triggers Jenkins- Jenkins triggers Rancher to deploy compose- Rancher creates containers, networks,

storage, etc.- Test container conducts integration tests

Develop Build Package Test Deploy/Upgrade Operate

Test docker-compose.yml lb: image: haproxy links: - webtomcat: image: app:buildn links: - db - cachecache: image: memcachedb: image: mysql:testn

Hosts

db- mysql:testn

cache- memcache

Lb-haproxy

tomcat-app:buildn

Test

Test

Compose Images

9

Page 10: Using Rancher and Docker with RightScale at Industrie IT

© 2015 Rancher Labs, Inc.

Production Environment

Hosts

DevOps runs production in the container service

- Production Compose- Rancher deploys

environment- Update Scaling- Health Checks & HA- Upgrade- Backup & Recovery

Develop Build Package Test Deploy/Upgrade Operate

docker-compose.yml lb: image: haproxy links: - webtomcat: image: app:buildn links: - db - cachecache: image: memcachedb: image: mysql

lb

tomcat

CacheMySQL

Health Check Interval: 2 secTimeout: 2 secFailure Retry Frequency: 3Success Retry Frequency: 2Recovery Delay: 30 sec

tomcat(build n+1)

10

Page 11: Using Rancher and Docker with RightScale at Industrie IT

Continuous Integration/Delivery Tips

● Dockerfile docker-compose.yml rancher-compose.ymlMakefile

Page 12: Using Rancher and Docker with RightScale at Industrie IT

Getting Started

Page 13: Using Rancher and Docker with RightScale at Industrie IT

Getting Started - CMP

● Import direct from the Marketplace● Spin up your Rancher Server● Generate an API key pair for RightScale

○ Update inputs with the keys and Rancher server host● Add Rancher Hosts using Servers or Server Arrays

Page 14: Using Rancher and Docker with RightScale at Industrie IT

Getting Started - Self Service

● CAT available from the RightScale Services GitHub at http://bit.ly/1GJH4

● Simply download the CAT and upload it to RightScale Self Service

● Features:○ Supports AWS, Google (more to come)○ Scale up to 10 hosts○ Runs an initial application stack

(Wordpress or NGINX)○ Ability to run additional application

stacks through self service○ Usual scheduling features from self

service including cleanup on terminate

Page 16: Using Rancher and Docker with RightScale at Industrie IT

Coming Soon

Page 17: Using Rancher and Docker with RightScale at Industrie IT

Thank you

[email protected]