Docker + WordPress = <3

Docker + WordPress = <3

Presentation from the WordPress Meetup, on how to use Docker with WordPress to make sure you develop, run and deploy your applications in an optimal way!

http://www.meetup.com/Athens-WordPress-Meetup/events/235081369/

Ae7266b2a8b6a0fc8df19a3d732d6223?s=128

Antonis Kalipetis

November 02, 2016
Tweet

Transcript

  1. DOCKER + WORDPRESS = <3 ANTONIS KALIPETIS - @AKALIPETIS

  2. ANTONIS KALIPETIS @AKALIPETIS ▸ Docker Captain and early user ▸

    Python lover and developer ▸ Technology lead at SourceLair / stolos.io I love automating stuff and sharing knowledge around all things containers, DevOps and optimizing developer workflows.
  3. CREATING A CLOUD-NATIVE DEV ENVIRONMENT AGENDA ▸ Developing a WordPress

    website ▸ What is wrong? ▸ Docker to the rescue ▸ Entering the ‘ cloud
  4. CURRENT STATE IN WORDPRESS DEVELOPMENT

  5. CURRENT STATE IN WORDPRESS DEVELOPMENT ▸ Use the production installation

    ▸ Seriously? ▸ Use a staging installation for all developers ▸ Better, but still… ▸ Locally ▸ How do you handle dependency management and updates?
  6. DOCKER

  7. DOCKER IS AN OPERATING SYSTEM FOR THE CLOUD

  8. THE DOCKER CONTAINER RUNTIME ▸ Process level isolation ▸ Resource

    management ▸ Networking, volumes, images etc
  9. None
  10. WHY DOCKER? ▸ Containers are very lightweight ▸ Different PHP

    versions per container ▸ Different MySQL databases ▸ Many images ready for you
  11. WHAT DO I GET WITH DOCKER? ▸ Same runtime between

    dev, staging and production ▸ Lightning fast provisioning of environments ▸ Deployment using Docker Swarm Mode for top notch orchestration
  12. DOCKER COMPOSE Manage a complete stack ▸ Containers need special

    configuration, depending on the actual application ▸ Containers need to connect with each other in a semantic way ▸ Containers have dependencies
  13. DEMO TIME!

  14. CLOUD DEV ENVIRONMENTS THE GREAT OF BOTH WORLDS

  15. THE CHALLENGES

  16. THE CHALLENGES ▸ How you give easy access to these

    environments? ▸ There should be no complication on accessing these environments ▸ You still need to code using your local tools ▸ Each developer has her unique needs and wants ▸ There needs to be an offline fallback ▸ Feeling bound to an Internet connection produces insecurity
  17. DEMO TIME!

  18. THANKS ANTONIS KALIPETIS - @AKALIPETIS