fits docker into devops

27
Fits Docker into Devops Evans Ye 2014.10.6

Upload: evans-ye

Post on 01-Dec-2014

51 views

Category:

Software


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Fits docker into devops

Fits Docker into Devops

Evans Ye2014.10.6

Page 2: Fits docker into devops

#TrendInsight

Let’s discuss about Devops first

Page 3: Fits docker into devops

PRE-Devops• Developer builds and tests on dev servers• Devloper hands off code to operation• likely deployed manually• Sometimes it broken in Production• Need to be fixed, Now

Page 4: Fits docker into devops

4

Page 5: Fits docker into devops

Devops• Getting changes to users quickly, reliably, and

securely• Quick release cycle from code to Production• More confidence due to automated testing• reproducibility

– bugs are not always 100% reproducible

Page 6: Fits docker into devops

6

Fast Iterationbacked by automated testing

Page 7: Fits docker into devops

"Automated tests transform fear into boredom." -- Eran Messeri, Google

Google Devops (2013)• 75 million test cases are run daily

Page 8: Fits docker into devops

Continuous Integration• Same environment in Dev, QA and Production• Auto deploy

– deploy reliability and consistency

• Automated tests– unit test– smoke test (integration test)

Page 9: Fits docker into devops

How do you test hadoop features?• Manually test on dev cluster

– Hey folks, don’t move, I’m testing my own features.

• Pig unit– adhoc-query? dev environment only

• HBase mini-cluster– does not support Windows?

• Still not exactly the same environment as Production• what if written in python, ruby, php?

Page 10: Fits docker into devops

10

What if we can do Dev and Test in the same way, efficiently?

Page 11: Fits docker into devops
Page 12: Fits docker into devops

Docker• lightweight, portable Linux containers (like VMs)

– fast creation– system isolated– resource constrained

• Build, ship, run containers everywhere– containers as dev and test environment

Page 13: Fits docker into devops

Containers offer faster automation

Page 14: Fits docker into devops

#TrendInsight

Introduction to Docker

Page 15: Fits docker into devops

15

The Docker Engine runs containers

Page 16: Fits docker into devops

Architecture

VMDocker

Page 17: Fits docker into devops

17

The Docker Hub stores and ships

images

Page 18: Fits docker into devops

Docker image• $ docker runs <IMAGE>

to create a container• base image stores /bin,

/etc, /usr (Linux distro.)• add you app(diff) on top

of base image• commit containers• push, pull images

Page 19: Fits docker into devops

Docker offers you• Deploy efficiently• Quick start• Lightweight

Page 20: Fits docker into devops

Limitation of Docker• Any Linux with kernel > 3.8.x• Linux only (Linux container, after all)

Linux

Page 21: Fits docker into devops

21

What about Windows and Macbook…?

Page 22: Fits docker into devops

Vagrant• A open source command line VM(or IaaS)

provisioning toolProviders

Vagrantfile

VM

Page 23: Fits docker into devops

Solution for OS X / Windows

OS X / Windows with vagrant and

virtualbox installed

boot2docker(2XMB, tiny core Linux)

ContainerContaine

r

$ vagrant up DONE!

docker platform auto provisioned by vagrant

docker containers

Page 24: Fits docker into devops
Page 25: Fits docker into devops

25

Hadoop Integration

Page 26: Fits docker into devops

04/09/2023

Develop and test hadoop related features

service(hadoop-client)

data(hadoop-client)

hadoop fs –put …

link

Page 27: Fits docker into devops

#TrendInsight

Q & A