26
– not just for developers Wordcamp Vienna 2019 Silvio Heinze | @silvioheinze

not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support [email protected]

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

– not just for developersWordcamp Vienna 2019

Silvio Heinze | @silvioheinze

Page 2: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

Introduction

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 3: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

Hi, I am Silvio

Information designer and developer @ visuelles in Vienna

Open Source and Open Data enthusiast

Cat lover and dog walker

Page 4: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

Hands up, who …

… heard of Docker before.

… used Docker already.

… used Docker for a Wordpress installation.

… used the wordpress image from Docker Hub.

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 5: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

Service announcement“On Thursday, April 25th, 2019, we discovered unauthorized access to a single Hub database storing a subset of non-financial user data. Upon discovery, we acted quickly to intervene and secure the site.

During a brief period of unauthorized access to a Docker Hub database, sensitive data from approximately 190,000 accounts may have been exposed (less than 5% of Hub users). Data includes usernames and hashed passwords for a small percentage of these users, as well as Github and Bitbucket tokens for Docker autobuilds.”

Kent Lamb Director of Docker Support [email protected] 26th, 2019

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 6: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

Service announcement

• change your password on Docker Hub

• autobuilds: reconnect to your repositories and check security logs

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 7: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

Schedule for today

1. What is Docker?

2. Docker for Wordpress

3. Best practise for development

4. Best practise for testing

5. Best practise for production

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 8: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

1 What is Docker?

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 9: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

Container vs. Virtual Machine

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Containerized Applications Virtual Machine Virtual Machine Virtual Machine

Source: docker.com

Page 10: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

Docker by the numbers

100K+ Third-party projects using Docker

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

80B Container downloads 200+

Meetups Around the Globe

2M Dockerized Applications in Hub

Page 11: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

All plattforms supported

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 12: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

Why I am using Docker

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Consistency Reproducibility Automatisation

=

Page 13: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

First steps

docker version

docker run hello-world

docker ps

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 14: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

Docker Compose

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Source: docker.com

Page 15: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

Docker Compose

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

docker-compose up docker-compose up -d

docker-compose down

docker-compose pull

Page 16: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

2 Docker for wordpress

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 17: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

hub.docker.com

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 18: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

Image variants

wordpress:<version>

wordpress:latestwordpress:5

wordpress:5.1wordpress:5.1.1

wordpress:<version>-<php version>

wordpress:5.1-php7wordpress:5.1-php7.1wordpress:5.1-php7.3

wordpress:cli

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 19: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

3 Best practise for development

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 20: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

Choose your images

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 21: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

4 Best practise for testing

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 22: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

Choose your images

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 23: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

5 Best practise for production

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 24: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

Choose your images

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 25: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

all examples on github.com/silvioheinze/wordcamp-vienna-2019

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze

Page 26: not just for developers - WordCamp Vienna · 2019. 4. 28. · users, as well as Github and Bitbucket tokens for Docker autobuilds.” Kent Lamb Director of Docker Support info@docker.com

+ = <3

Docker – not just for development | Wordcamp Vienna 2019 | @silvioheinze