introduction to docker session (at nairuby meetup)

14
Intro to Docker Nairuby Meetup | Ruby Thursday

Upload: stanley-ndagi

Post on 10-Feb-2017

141 views

Category:

Technology


5 download

TRANSCRIPT

Page 1: Introduction to Docker session (at Nairuby meetup)

Intro to DockerNairuby Meetup | Ruby Thursday

Page 2: Introduction to Docker session (at Nairuby meetup)

Mission: - Understand Docker- Dealing with a Django Web App- Adding Docker to development workflow

Page 3: Introduction to Docker session (at Nairuby meetup)

The problem

It’s common to hear this

“It is working locally”

“I have issues deploying ...”

“It is working on my machine but I’m having trouble helping Banta set it up”

Page 4: Introduction to Docker session (at Nairuby meetup)

The solution

- VMWare- Vagrant

DockerThe Game changer

Page 5: Introduction to Docker session (at Nairuby meetup)

Normal workflow

Build

Run

Page 6: Introduction to Docker session (at Nairuby meetup)

The Docker way

Page 7: Introduction to Docker session (at Nairuby meetup)

Build

Ship

Run

Page 8: Introduction to Docker session (at Nairuby meetup)

Setup

Docker EngineDocker

MachineDocker Swarm

MacWindows

Linux Amazon AWS

AzureWindows Server

Docker is installable on:

Page 9: Introduction to Docker session (at Nairuby meetup)

How it works

BuildDockerfiledocker-compose.yml

$ docker build -t <image-name> .

A

Page 10: Introduction to Docker session (at Nairuby meetup)

How it works

BuildDockerfiledocker-compose.yml

$ docker build -t <image-name> .

ShipDocker Hub

$ docker login$ docker push

A B

DOCKER HUB (released 2014):

- Workflow automation- Integration- Organisation (Teamwork)

Under the covers> Faster download speeds

Page 11: Introduction to Docker session (at Nairuby meetup)

It is 3-fold

Page 12: Introduction to Docker session (at Nairuby meetup)

How it works

BuildDockerfiledocker-compose.yml

$ docker build -t <image-name> .

ShipDockerhub

$ docker login$ docker push

RunDocker environment

$ docker run <image-name>

A B C

Page 13: Introduction to Docker session (at Nairuby meetup)

What next?Adding Docker to your workflow

Page 14: Introduction to Docker session (at Nairuby meetup)

@NdagiStanley