guaranteed delivery - delivering infrastructure and code together - matt moor

71
#atlassian

Upload: atlassian

Post on 10-Nov-2014

226 views

Category:

Software


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

#atlassian

Page 2: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Matt Moor • Senior Build Engineer • Atlassian • @imprecise_matt

Guaranteed Delivery:Shipping Infrastructure and Code

Together

Page 3: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor
Page 4: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

What?

Page 5: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor
Page 6: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Continuous Delivery?

Page 7: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor
Page 8: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Deployable, all the time

Page 9: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Code

Page 10: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor
Page 11: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Infrastructure

Page 12: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor
Page 13: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Code + Infrastructure

Page 14: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor
Page 15: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Why?

Page 16: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Avoid surprises at deployment time

Page 17: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Culture.

Page 18: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor
Page 19: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Devops

Page 20: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

establish a common ground between development and

operations

Page 21: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Devops Means Giving A Shit About Your Job Enough To Not Pass The Buck. Devops Means Giving A Shit About Your Job Enough To Want To Learn All The Parts And Not Just Your Little World. !

Developers Need To Understand Infrastructure. Operations People Need To Understand Code. People Need To Fucking Work With Each Other And Not Just Occupy Space Next To Each Other.

J o h n V i n c e n t ( @ l u s i s )

Page 22: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

another tool to help you to get people working together

Page 23: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Mean Time Between Failures (MTBF)

Page 24: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

How?

Page 25: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor
Page 26: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

3 Builds

Page 27: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

3 Builds2 Shared Artefacts

Page 28: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

3 Builds2 Shared Artefacts

1 Deployment

Page 29: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

shared artefacts?

Page 30: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

automate your infrastructure builds

Page 31: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

tests

Page 32: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

serverspec

Page 33: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

serverspec

Page 34: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

configuration management

Page 35: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Puppet

Page 36: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Puppet

Page 37: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

virtual machine images

Page 38: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

packer

Page 39: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

packer

Page 40: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

infrastructure build

config management checkout

→ →

VM image

Page 41: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

infrastructure build

config management checkout

→ →

VM imageVM image

Page 42: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

a build for your code

Page 43: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

checkout → build → unit tests →

functional tests

Page 44: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

checkout → build → unit tests →

functional tests

checkout → build → unit tests →

functional tests

Page 45: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

integration build

Page 46: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

download your machine image

Page 47: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor
Page 48: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

start a VM from your machine image

Page 49: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Vagrant

Page 50: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor
Page 51: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor
Page 52: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

download your code artefact

Page 53: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor
Page 54: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

run your code on the VM

Page 55: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor
Page 56: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

run your functional tests

Page 57: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Deployment

Page 58: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Page 59: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

tie it all together

Page 60: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor
Page 61: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

build notifications

Page 62: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor
Page 63: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

code build

Page 64: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

code buildinfra build

Page 65: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

code buildinfra build →

Page 66: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

code buildinfra build → integration build

Page 67: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

code buildinfra build → integration build→

Page 68: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

code buildinfra build → integration build→

deployment

Page 69: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

tips & tricks

Page 70: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Thank you!

Matt Moor • Senior Build Engineer • Atlassian • @imprecise_matt

Page 71: Guaranteed Delivery - Delivering Infrastructure and Code Together - Matt Moor

Questions?

Ask live: bit.ly/ask-atlassian !

Log in with your email you used to register