Slide 1

Slide 1 text

Learn what Docker is all about and see how to dockerize a Rails application Introduction to Docker.

Slide 2

Slide 2 text

Important disclaimer.

Slide 3

Slide 3 text

Code is just text.

Slide 4

Slide 4 text

Code is just text. { with fancy chars }

Slide 5

Slide 5 text

Wouldn’t run on its own.

Slide 6

Slide 6 text

LGTM!

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

A tiny flashback.

Slide 15

Slide 15 text

Silly question, get dressed and go to work!

Slide 16

Slide 16 text

Simple code, runs on any Ruby

Slide 17

Slide 17 text

Simple code, runs on any Ruby

Slide 18

Slide 18 text

Simple code, runs on any Ruby Not anymore…

Slide 19

Slide 19 text

Let’s dockerize

Slide 20

Slide 20 text

Let’s dockerize

Slide 21

Slide 21 text

Keep building

Slide 22

Slide 22 text

Keep building

Slide 23

Slide 23 text

Images and containers

Slide 24

Slide 24 text

Images and containers

Slide 25

Slide 25 text

It’s all about isolation

Slide 26

Slide 26 text

Language runtime It’s all about isolation

Slide 27

Slide 27 text

Language runtime File system It’s all about isolation

Slide 28

Slide 28 text

Language runtime File system Binary dependencies It’s all about isolation

Slide 29

Slide 29 text

Language runtime File system Binary dependencies Network ports It’s all about isolation

Slide 30

Slide 30 text

Language runtime File system Binary dependencies Network ports Users and groups It’s all about isolation

Slide 31

Slide 31 text

Not a virtual machine

Slide 32

Slide 32 text

Docker

Slide 33

Slide 33 text

Docker

Slide 34

Slide 34 text

Docker Great for local development

Slide 35

Slide 35 text

Docker Code + environment image/container Great for local development

Slide 36

Slide 36 text

Docker Code + environment image/container Great for local development Tutorials lie, it’s never one image

Slide 37

Slide 37 text

Docker Code + environment image/container Great for local development Tutorials lie, it’s never one image

Slide 38

Slide 38 text

Rule of . 1 container == 1 process

Slide 39

Slide 39 text

Rule of . 1 container == 1 process Rule them all: docker-compose

Slide 40

Slide 40 text

DEMO TIME

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

Docker vs. Kubernetes

Slide 44

Slide 44 text

Kubernetes

Slide 45

Slide 45 text

Kubernetes

Slide 46

Slide 46 text

Kubernetes Great for production

Slide 47

Slide 47 text

Docker vs. Kubernetes ❤

Slide 48

Slide 48 text

https://youtu.be/4ht22ReBjno

Slide 49

Slide 49 text

https://github.com/lewagon/rails-k8s-demo

Slide 50

Slide 50 text

https://progapanda.org