Transcript
Page 1: Continuous Delivery with Jenkins and Stackato

Continuous Delivery with Jenkins & Stackato

Ho Ming Li

John Wetherill

Nov 2013

Page 2: Continuous Delivery with Jenkins and Stackato

Recent Events

DevOps Days x 2

Page 3: Continuous Delivery with Jenkins and Stackato

Today’s Speakers

John WetherillDeveloper Evangelist

Ho Ming LiCloud Engineer

Page 4: Continuous Delivery with Jenkins and Stackato

What is Continuous Delivery?

• Continuous integration: your application always builds and passes its

tests, including all the pieces from different sub-teams.

• Continuous delivery: your application always builds and deploys to a test

environment and passes its tests.

• Continuous deployment: your application is always ready to deploy to

production through a largely automated process.

source: http://www.softwareknowhow.info/Blogs/tabid/63/EntryId/319/Continuous-Integration-vs-Continuous-Delivery-vs-Continuous-Deployment-what-is-the-difference.aspx

Page 5: Continuous Delivery with Jenkins and Stackato

Why CI / CD?

Automate and Streamline Everything!

Increase Operational Efficiency!

Avoids:

1. wait time

2. handoff conflicts

3. human errors

Page 6: Continuous Delivery with Jenkins and Stackato

Why CI / CD?

Know results earlier! Fix bugs faster! More stable builds!

Page 7: Continuous Delivery with Jenkins and Stackato

Tools

Good ol’ shell scripts with cron!

Extends to other languages and unix utilities

Additional Features:

Tracking, Dashboard

Page 8: Continuous Delivery with Jenkins and Stackato

Continuous Delivery

and Stackato

More, Better, Faster

Page 9: Continuous Delivery with Jenkins and Stackato

Stackato Private PaaS

A private PaaS enables enterprise developers to leverage all the benefits of a

public PaaS to easily deploy, manage, monitor, and scale applications,

while meeting the security and privacy requirements your enterprise

demands.

Based on Cloud Foundry

Your own Heroku

Your own Google App Engine

Page 10: Continuous Delivery with Jenkins and Stackato

Languages/Frameworks

DB/MSG Services

Local/Private/Public

More Options

Page 11: Continuous Delivery with Jenkins and Stackato

Any time you want.

Any frequency you want.

Weekly? Daily? Hourly?

On Commit? on Pull Request?

Deploy More

Page 12: Continuous Delivery with Jenkins and Stackato

Better

Consistent workflow : work one, work all

Self-service : Better relationship between Dev and Ops

Page 13: Continuous Delivery with Jenkins and Stackato

Faster

Automation / No re-configuration

Use containers and not VMs

Overall a Faster Time to Market

Page 14: Continuous Delivery with Jenkins and Stackato

Containerization

• resource and process isolation

• namespaces:

* pid

* mnt

* net

* uts

* ipc

* user

• compare with Solaris zones, freebsd jails

Page 15: Continuous Delivery with Jenkins and Stackato

Containerization Features for CD

Multitenancy

• dev, qa, prod on same cloud

• no resource contention

Lightweight

• very fast startup (100ms) and teardown

• small memory and disk footprint (COW)

Snapshots / Backups

• bit-for-bit copy of tested image goes to prod

• bit-for-bit copy of crashed image for analysis

Page 16: Continuous Delivery with Jenkins and Stackato

Containerization Features for CD

uts namespace

• each container has its hostname

• helpful for updates and rollbacks

net namespace

• multiple virtual interfaces per container

• firewall rules and iptables

• interface pairs for outside communication

• enables multiple services on “same port”

ex: multiple tomcats on 8080

user namespace

• unprivileged user on host can be root in container

Page 17: Continuous Delivery with Jenkins and Stackato
Page 18: Continuous Delivery with Jenkins and Stackato

Design for CI and for Cloud

• can leverage dns for version-swapping

• statelessness is key

• simplifies updates and rollbacks

• REST

Page 19: Continuous Delivery with Jenkins and Stackato

MORE

BETTER

FASTER

Page 20: Continuous Delivery with Jenkins and Stackato
Page 21: Continuous Delivery with Jenkins and Stackato

Thank you!

www.activestate.com/stackato

#Stackato on Freenode

Ho Ming Li

John Wetherill

Nov 2013


Top Related