O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Docker, your best ally to migrate & upgrading your Drupal - Drupal Dev Days Seville 2017

492 visualizações

Publicada em

In this session, Alejandro gave some very useful tips to migrate your Drupal 7 site to a Drupal 8 one by using Docker.

Publicada em: Tecnologia
  • Seja o primeiro a comentar

  • Seja a primeira pessoa a gostar disto

Docker, your best ally to migrate & upgrading your Drupal - Drupal Dev Days Seville 2017

  1. 1. Docker, your best ally to migrate & upgrading your Drupal Alejandro Gómez - @agomezmoron #DrupalDevDays 2017
  2. 2. First of all! A selfie with you! #DrupalDevDays / @drupaldevdays @agomezmoron
  3. 3. About me #DrupalDevDays / @drupaldevdays @agomezmoron agomezmoron.info.yml name: Alejandro Gómez description: “QA & Tech lover” package: #DrupalDevDays works_on: - company: { name: @ladrupalera by @emergya, role: QA & Team lead } - company: { name: @EPSUPO, role: QA teacher } type: Non-stop learner core: DDD.2017 community: @SevillaQA organizer
  4. 4. Roadmap ● Introduction ● Is updating important? ● What do we need? ● The update approach ● How can I automate it? #DrupalDevDays / @drupaldevdays @agomezmoron
  5. 5. Roadmap ● Introduction ● Is updating important? ● What do we need? ● The update approach ● How can I automate it? #DrupalDevDays / @drupaldevdays @agomezmoron
  6. 6. ● Learning about how to keep our system updated safety. ● Learning some useful procedures & tools :). Introduction #DrupalDevDays / @drupaldevdays @agomezmoron
  7. 7. Roadmap ● Introduction ● Is updating important? ● What do we need? ● The update approach ● How can I automate it? #DrupalDevDays / @drupaldevdays @agomezmoron
  8. 8. @agomezmoron#DrupalDevDays 2017 ● Security ● Fixed bugs ● Stability Is updating important?
  9. 9. Roadmap ● Introduction ● Is updating important? ● What do we need? ● The update approach ● How can I automate it? #DrupalDevDays / @drupaldevdays @agomezmoron
  10. 10. What do we need? Testing tools #DrupalDevDays / @drupaldevdays @agomezmoron
  11. 11. ● It rocks...but can you imagine doing the process by hand? ● You should keep the core, modules, etc updated. ● What about automating the process? What do we need? #DrupalDevDays / @drupaldevdays @agomezmoron
  12. 12. Roadmap ● Introduction ● Is it important updating? ● What do we need? ● The update approach ● How can I automate it? #DrupalDevDays / @drupaldevdays @agomezmoron
  13. 13. The update approach #DrupalDevDays / @drupaldevdays @agomezmoron 1. Check core updates (security) & apply them. 2. Check contrib modules updates & apply them.
  14. 14. ● drush up --security-only -n ○ drush pm-updatecode --security-only -y ○ drush updatedb -y ● drush upc --no-core -n ○ drush upc --no-core -y The update approach Core Contrib #DrupalDevDays / @drupaldevdays @agomezmoron
  15. 15. ● composer update drupal/core --with-dependencies ● composer update The update approach Core Contrib #DrupalDevDays / @drupaldevdays @agomezmoron
  16. 16. The update approach #DrupalDevDays / @drupaldevdays @agomezmoron For each update, deploy a container, apply it and run all the regression tests. Validation Pull Request 20170202_update
  17. 17. The update approach #DrupalDevDays / @drupaldevdays @agomezmoron PR_security_updated 20170202_security_update_code 20170202_security_update_db
  18. 18. The update approach #DrupalDevDays / @drupaldevdays @agomezmoron PR_security_updated 20170202_core_update_code
  19. 19. The update approach #DrupalDevDays / @drupaldevdays @agomezmoron PR_contrib_updated 20170202_contrib_update
  20. 20. Roadmap ● Introduction ● Is updating important? ● What do we need? ● The update approach ● How can I automate it? #DrupalDevDays / @drupaldevdays @agomezmoron
  21. 21. @agomezmoron How can I automate it? Testing tools #DrupalDevDays / @drupaldevdays One Jenkins to rule them all!
  22. 22. How can I manage my dockers? ● Managing your docker images can be easy. ● What about the containers? ● What about the network bridgings, volumes...? #DrupalDevDays / @drupaldevdays @agomezmoron
  23. 23. How can I manage my dockers? #DrupalDevDays / @drupaldevdays @agomezmoron
  24. 24. How can I manage my dockers? # Option 1 #DrupalDevDays / @drupaldevdays @agomezmoron
  25. 25. How can I manage my dockers? # Option 2 #DrupalDevDays / @drupaldevdays @agomezmoron
  26. 26. How can I manage my dockers? #DrupalDevDays / @drupaldevdays @agomezmoron docker run -d -p 9000:9000 --privileged -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer --name myportainer
  27. 27. Conclusions #DrupalDevDays / @drupaldevdays @agomezmoron
  28. 28. Conclusions #DrupalDevDays / @drupaldevdays @agomezmoron ● Updates are important but they can break your system. ● A continuous core update should be applied in our code and all the tests should be running.
  29. 29. Conclusions #DrupalDevDays / @drupaldevdays @agomezmoron
  30. 30. #DrupalDevDays / @drupaldevdays @agomezmoron Thanks to...
  31. 31. #DrupalDevDays / @drupaldevdays @agomezmoron Thanks to...
  32. 32. #DrupalDevDays / @drupaldevdays @agomezmoron Thanks to...
  33. 33. Thanks! #DrupalDevDays / @drupaldevdays @agomezmoron

×