Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL...

22
Easier Development and Deployment @bhosmer - @ron_williams

Transcript of Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL...

Page 1: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

Easier Development and Deployment!@bhosmer - @ron_williams!

Page 2: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

Why?!

Page 3: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

Benefits!

• Reduce costs!

•  Inherent config management!

• Build once, use everywhere!

• Fewer broken deployments !

Page 4: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...
Page 5: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...
Page 6: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

What?!!

This technology isn’t new!!

Page 7: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

How?!• Boot2Docker!

• Kitematic!

• Virtualbox/Vagrant!

• Native (Linux Only)!

• Shipyard / Project Atomic!

Page 8: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

Containers are!NOT Virtual Machines!

Page 9: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

LAMP Stack!Linux!

Apache/NGINX!PHP!

MariaDB!

2 Containers!

PHP!Webserver!

Database!

Page 10: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

Using Docker!

Page 11: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

$ docker build!$ docker run!$ docker start!$ docker stop!$ docker logs!$ docker inspect!

Page 12: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

Dockerfile!

Page 13: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...
Page 14: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

$ docker build !

Page 15: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

$ docker run!

Page 16: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...
Page 17: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

Persistent Data!

Host!/docroot!

/mysql-data!

Container!/docroot!

Shared Volumes!

Container!/mysql-data!

Page 18: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

Linking Containers!

DB! Webserver!

Page 19: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

Using Other Containers!

Page 20: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

$ docker pull!$ docker push!

Page 21: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...
Page 22: Easier Development and Deployment @bhosmer - @ron williams · mongoDB Document-oriented NoSQL database n de . Created Date: 7/30/2015 9:42:34 PM ...

Why Use Docker?!

• Save on hosting & labor!

• Simplify change management!

• Reuse environments!

• Deploy successfully!