herding your cattle from dev to ops

36
Herding your cattle from dev to ops

Upload: bastiaan-schaap

Post on 02-Aug-2015

80 views

Category:

Software


2 download

TRANSCRIPT

Page 1: Herding your cattle from dev to ops

Herding your cattle from dev to ops

Page 2: Herding your cattle from dev to ops

Herding… wut?!

from http://gmccance.net/

Page 3: Herding your cattle from dev to ops

Why shouldyou ?care

Page 4: Herding your cattle from dev to ops

Dev to Ops the old way..

Page 5: Herding your cattle from dev to ops

Dev to Ops the new way!

Page 6: Herding your cattle from dev to ops

“”

It’s pretty much the best thing for cloud computing

since the movement from bare metalto virtual machines

Ho Ming Li (DockerCon 2014 attendant)

Page 7: Herding your cattle from dev to ops

“”

Docker aims to reduce the cycle time between

code being writtenand code being tested, deployed, and

used.

James Turnbull (author of The Docker Book)

Page 8: Herding your cattle from dev to ops

“”

Docker is one of those technologies that, without any great fuss and without anyone

noticing, is now everywhere. […]I wouldn’t call Docker a “Swiss Army Knife”— it has so many more uses than that.

Dr Mike Norman (Cloud Services Architect @ JP Morgan)

Page 9: Herding your cattle from dev to ops
Page 10: Herding your cattle from dev to ops

#whoami

• DevOps engineer

• Linux, middleware & cloudtechnologies

• 18+ yrs IT experience

• Docker trainer @ Amazic

Page 11: Herding your cattle from dev to ops

DevOps means giving a shit about your job enough

to want to learn all the parts and not just your little world.

John E. Vincent (blog.lusis.org)

“”

Page 12: Herding your cattle from dev to ops

10,000 feetWAY UP

Page 13: Herding your cattle from dev to ops
Page 14: Herding your cattle from dev to ops
Page 15: Herding your cattle from dev to ops
Page 16: Herding your cattle from dev to ops

The real value of Docker is not technology, it’s getting people to agree on something.

Solomon Hykes (Founder of Docker)

“”

Page 17: Herding your cattle from dev to ops
Page 18: Herding your cattle from dev to ops
Page 19: Herding your cattle from dev to ops
Page 20: Herding your cattle from dev to ops

Linux ContainersNEXT UP

Page 21: Herding your cattle from dev to ops

Almost everything in Googleruns in a container.

Brian Dorsey (Google Cloud)

“”

Page 22: Herding your cattle from dev to ops

What is Container Virtualisation?

• Alternative to “traditional” virtualisation on Hypervisors such as VMWare

• No guest operating system (or booting) required for containers

• Virtualisation layer runs as an application inside the host OS

• Sandboxed execution environment

• Lightweight, high performance (especially on bare metal hardware)

Page 23: Herding your cattle from dev to ops
Page 24: Herding your cattle from dev to ops

Where does Docker fit in?

• Built on top of Linux container technology (LXC, AUFS)

• Provides tools to build, run, share and version “images”

• Handles communication between running “containers” (network, fs)

• Docker containers run practically everywhere

• Extremely reproducible; you could start from scratch every time!

Page 25: Herding your cattle from dev to ops

Docker containers

Page 26: Herding your cattle from dev to ops

Images versus Containers

• Docker images consist of one or more read-only layered file-systems

• The bottom layer is called the base image (Linux kernel, e.g. Red Hat)

• A Dockerfile is the equivalent of a build file to create an image

• Docker containers are the running, stateful instances of images

• Modified containers can also be committed back to images

Page 27: Herding your cattle from dev to ops
Page 28: Herding your cattle from dev to ops

Docker build demoNEXT UP

Page 29: Herding your cattle from dev to ops

FROM jboss/wildfly

MAINTAINER Bastiaan Schaap <http://github.com/siteminds>

RUN /opt/jboss/wildfly/bin/add-user.sh --silent admin admin

ADD sample.war /opt/jboss/wildfly/standalone/deployments/

EXPOSE 8080EXPOSE 9990

Sample Dockerfile

Page 30: Herding your cattle from dev to ops
Page 31: Herding your cattle from dev to ops

ConclusionFINALLY..

Page 32: Herding your cattle from dev to ops

Pros

• Standardized way of getting code from development to production

• Easy to use DevOps workflow

• Fast container startup

• Isolation of processes and their configuration

Page 33: Herding your cattle from dev to ops

Cons

• Very easy to do, can be very hard to do right

• Networking can be difficult

• Ecosystem evolving (rapidly)

• Which orchestration tools/platforms/frameworks to use

Page 34: Herding your cattle from dev to ops
Page 35: Herding your cattle from dev to ops

Questions?THANK YOU

Page 36: Herding your cattle from dev to ops

@bjwschaap

[email protected]