why? - wordcamp central...recap - why use docker? consistent environment runs different project on...

15
Why? Adam Štipák | @new_POPE | [email protected]

Upload: others

Post on 30-Dec-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Why? - WordCamp Central...Recap - why use Docker? consistent environment runs different project on one server (less costs) exotic setup for projects. BTW, we’are using Docker on

Why?

Adam Štipák | @new_POPE | [email protected]

Page 2: Why? - WordCamp Central...Recap - why use Docker? consistent environment runs different project on one server (less costs) exotic setup for projects. BTW, we’are using Docker on

Why use it?

● Virtual environment● Independence● Clean host machine● Test environment for experiments● Build for project (“works on my machine problem”)

Page 3: Why? - WordCamp Central...Recap - why use Docker? consistent environment runs different project on one server (less costs) exotic setup for projects. BTW, we’are using Docker on

Virtual environment

● docker pull …● docker run …

Page 4: Why? - WordCamp Central...Recap - why use Docker? consistent environment runs different project on one server (less costs) exotic setup for projects. BTW, we’are using Docker on

Independence

Hands up who are using linux?

Page 5: Why? - WordCamp Central...Recap - why use Docker? consistent environment runs different project on one server (less costs) exotic setup for projects. BTW, we’are using Docker on

Independence

Docker runs everywhere

Page 6: Why? - WordCamp Central...Recap - why use Docker? consistent environment runs different project on one server (less costs) exotic setup for projects. BTW, we’are using Docker on

Clean host machine

Only one dependency

Page 7: Why? - WordCamp Central...Recap - why use Docker? consistent environment runs different project on one server (less costs) exotic setup for projects. BTW, we’are using Docker on

Test environment

● docker pull mysql

● docker pull wordpress:<tag>

○ <4.7 | 4.7.4-fpm | 4.7.4-php7.1-apache | ?latest?>

● docker run -d --name mysql -e MYSQL_ROOT_PASSWORD=password mysql

● docker run --link mysql:mysql -p 9000:80 wordpress

Page 8: Why? - WordCamp Central...Recap - why use Docker? consistent environment runs different project on one server (less costs) exotic setup for projects. BTW, we’are using Docker on

Build for project

● git clone …

● docker build ...

● docker run ...

Page 9: Why? - WordCamp Central...Recap - why use Docker? consistent environment runs different project on one server (less costs) exotic setup for projects. BTW, we’are using Docker on

Build for project - pros & cons

● fast start

● easy to use

● consistent environment for

○ team

○ project

● no need Vagrant

● build for Linux

● new tool

Page 10: Why? - WordCamp Central...Recap - why use Docker? consistent environment runs different project on one server (less costs) exotic setup for projects. BTW, we’are using Docker on

Build for project

Docker compose

- is a tool for defining and running multi-container Docker applications

Page 11: Why? - WordCamp Central...Recap - why use Docker? consistent environment runs different project on one server (less costs) exotic setup for projects. BTW, we’are using Docker on

Run in production

● end of classic hosting services

● Amazon EC2 Container Service● Google Container Service● Digital Ocean● Microsoft Azure● ...

Page 12: Why? - WordCamp Central...Recap - why use Docker? consistent environment runs different project on one server (less costs) exotic setup for projects. BTW, we’are using Docker on

Legacy project

● check requirements (php, mysql, …)● setup image for project● build● run

Win!

Page 13: Why? - WordCamp Central...Recap - why use Docker? consistent environment runs different project on one server (less costs) exotic setup for projects. BTW, we’are using Docker on

Recap - why use Docker?

● consistent environment

● runs different project on one server (less costs)

● exotic setup for projects

Page 14: Why? - WordCamp Central...Recap - why use Docker? consistent environment runs different project on one server (less costs) exotic setup for projects. BTW, we’are using Docker on

BTW, we’are using Docker on daily basis

● Catch me to talk about Docker or how to switch your project to Docker

● Come to one of our Docker trainings

rekurzia.sk # docker

Page 15: Why? - WordCamp Central...Recap - why use Docker? consistent environment runs different project on one server (less costs) exotic setup for projects. BTW, we’are using Docker on

Thank youquestions?

Adam Štipák | @new_POPE | [email protected]