why you should start using docker

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

Upload: alexandru-bolboaca

Post on 16-Jul-2015

757 views

Category:

Software


0 download

TRANSCRIPT

Why

A talk by Alex Bolboaca

[email protected]

You

Start Using

Should

About Me

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

I Noticed a Trend

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

Annoying Problems

“It works on my computer”

Black Tuesdays

“Cannot reproduce”

I have errors nobody else has

Containers to The Rescue

Actually, these containers

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

Example: Java 8 Spark AppDockerfile

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

Example: Java 8 Spark AppDockerfile

It worked on my computer!

Quick Demo

Why Use Docker?

Easy to start with

Free

Large community

Fast

Your Questions?

“The important thing is not to stop questioning”