alex bolboacă: why you should start using docker at i t.a.k.e. unconference 2015

14
Why A talk by Alex Bolboaca [email protected] You Start Using Should

Upload: mozaic-works

Post on 07-Aug-2015

86 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Alex Bolboacă: Why You Should Start Using Docker at I T.A.K.E. Unconference 2015

Why

A talk by Alex Bolboaca

[email protected]

You

Start Using

Should

Page 2: Alex Bolboacă: Why You Should Start Using Docker at I T.A.K.E. Unconference 2015

About Me

● Polyglot programmer● Trainer● Coach● Not a Docker expert; a fan● Not affiliated with docker

Page 3: Alex Bolboacă: Why You Should Start Using Docker at I T.A.K.E. Unconference 2015

I Noticed a Trend

Page 4: Alex Bolboacă: Why You Should Start Using Docker at I T.A.K.E. Unconference 2015

Why DevOps? Agile!Reduce time to market & Adapt fast to change

Scrum for dev teams

Bugs & Code difficult to changeChangeable DesignAutomated testingCIEtc.

Operations ProblemsFast feedback on infrastructure+ many others

Page 5: Alex Bolboacă: Why You Should Start Using Docker at I T.A.K.E. Unconference 2015

Annoying Problems

“It works on my computer”

Black Tuesdays

“Cannot reproduce”

I have errors nobody else has

Page 6: Alex Bolboacă: Why You Should Start Using Docker at I T.A.K.E. Unconference 2015

Containers to The Rescue

Page 7: Alex Bolboacă: Why You Should Start Using Docker at I T.A.K.E. Unconference 2015

Actually, these containers

Page 8: Alex Bolboacă: Why You Should Start Using Docker at I T.A.K.E. Unconference 2015

Work with Containers

● Each component of your application runs in a container

● Dependencies are included in each container● Containers are shared by all developers,

sysadmins, operations etc. through SCC (eg. git)

● Containers are deployed as such

Page 9: Alex Bolboacă: Why You Should Start Using Docker at I T.A.K.E. Unconference 2015

Example: Java 8 Spark AppDockerfile

Page 10: Alex Bolboacă: Why You Should Start Using Docker at I T.A.K.E. Unconference 2015

Workflow● Build the container

– Write the dockerfile– Build it with docker. E.g. docker build -t [name]

● Commit the dockerfile OR the resulting image● Run the container locally

– Mount any folder needed (e.g. the source files during dev, the compiled app for production)

● Deploy the container– Docker needs to be installed on server

Page 11: Alex Bolboacă: Why You Should Start Using Docker at I T.A.K.E. Unconference 2015

Example: Java 8 Spark AppDockerfile

It worked on my computer!

Page 12: Alex Bolboacă: Why You Should Start Using Docker at I T.A.K.E. Unconference 2015

Quick Demo

Page 13: Alex Bolboacă: Why You Should Start Using Docker at I T.A.K.E. Unconference 2015

Why Use Docker?

Easy to start with

Free

Large community

Fast

Page 14: Alex Bolboacă: Why You Should Start Using Docker at I T.A.K.E. Unconference 2015

Your Questions?

“The important thing is

not to stop questioning”