Upgrade to Pro — share decks privately, control downloads, hide ads and more …

On Demand Dev with Docker + WordPress @ WordCamp Europe 2018

emaildano
June 16, 2018
530

On Demand Dev with Docker + WordPress @ WordCamp Europe 2018

Learn how to leverage the power and simplicity of Docker containers with WordPress to build a highly customizable and easy to managed development environment. This workshop will cover using Docker with Docker Compose, combining prebuilt containers, and best practices while using these tools specific to WordPress.

emaildano

June 16, 2018
Tweet

Transcript

  1. WordCamp Europe Workshop

    View full-size slide

  2. Daniel Olson

    View full-size slide

  3. Workshop
    Preparation Check

    View full-size slide

  4. Git Clone Workshop Examples

    View full-size slide

  5. The State of Local Dev

    View full-size slide

  6. The State of Local Dev
    MAMP
    (freemium)
    DesktopServer
    (freemium)

    View full-size slide

  7. The State of Local Dev

    View full-size slide

  8. The State of Local Dev
    XAMPP
    (Open Source)

    View full-size slide

  9. The State of Local Dev

    View full-size slide

  10. The State of Local Dev
    Vagrant
    (Open Source)
    Docker
    (Open Source)
    VirtualBox
    (Open Source)
    Ansible
    (Open Source)

    View full-size slide

  11. The State of Local Dev

    View full-size slide

  12. The State of Local Dev

    View full-size slide

  13. The State of Local Dev

    View full-size slide

  14. The State of Local Dev

    View full-size slide

  15. What is Docker?

    View full-size slide

  16. What is Docker?

    View full-size slide

  17. What is Docker?

    View full-size slide

  18. Docker Grammar

    View full-size slide

  19. Docker Grammar

    View full-size slide

  20. Docker Grammar

    View full-size slide

  21. Docker Grammar

    View full-size slide

  22. Commands Description
    docker-compose ps List Containers
    docker-compose up -d Create and start detached containers
    docker-compose stop Stop running containers
    docker-compose rmi Remove container images
    docker-compose restart Restart services
    docker-compose kill Force stop service containers
    docker-compose up -d --force-recreate Force recreate containers
    docker stop $(docker ps -a -q) Stop all containers
    docker rm -f $(docker ps -a -q) Remove all containers
    docker rmi -f $(docker images -q) Delete all images
    docker system prune --all Remove unused images
    docker volume rm $(docker volume ls -qf dangling=true) Remove volumes

    View full-size slide

  23. Docker: Hello World

    View full-size slide

  24. Docker: Hello World

    View full-size slide

  25. Docker: Hello World

    View full-size slide

  26. Docker: Hello World

    View full-size slide

  27. Docker: Hello World

    View full-size slide

  28. Docker: Hello World

    View full-size slide

  29. Docker Compose: Hello World

    View full-size slide

  30. Docker Compose: Hello World

    View full-size slide

  31. Docker Compose: Hello World

    View full-size slide

  32. Docker Compose: Hello World

    View full-size slide

  33. Docker Compose: Hello World

    View full-size slide

  34. Docker Compose: Hello World

    View full-size slide

  35. Docker: Hello World

    View full-size slide

  36. Docker: Hello World

    View full-size slide

  37. Docker Compose: WordPress

    View full-size slide

  38. Docker Compose: WordPress

    View full-size slide

  39. Docker Compose: WordPress

    View full-size slide

  40. Docker Compose: WordPress

    View full-size slide

  41. Docker Compose: WordPress

    View full-size slide

  42. Docker Compose: WordPress

    View full-size slide

  43. Docker Compose: WordPress

    View full-size slide

  44. Customize Settings

    View full-size slide

  45. Docker Compose: WordPress

    View full-size slide

  46. Docker: Hello World

    View full-size slide

  47. Docker: Hello World

    View full-size slide

  48. Commands Description
    docker-compose ps List Containers
    docker-compose up -d Create and start detached containers
    docker-compose stop Stop running containers
    docker-compose rmi Remove container images
    docker-compose restart Restart services
    docker-compose kill Force stop service containers
    docker-compose up -d --force-recreate Force recreate containers
    docker stop $(docker ps -a -q) Stop all containers
    docker rm -f $(docker ps -a -q) Remove all containers
    docker rmi -f $(docker images -q) Delete all images
    docker system prune --all Remove unused images
    docker volume rm $(docker volume ls -qf dangling=true) Remove volumes

    View full-size slide