drupal-project icon indicating copy to clipboard operation
drupal-project copied to clipboard

GH-420: DDEV support

Open sampoturve opened this issue 1 year ago • 0 comments

🚧👷🏻‍♂️🏗️ Work in progress still 👷🏻‍♀️🚧


Link to ticket:

https://github.com/wunderio/drupal-project/issues/420

Changes proposed in this PR:

Add a DDEV setup that works alongside Lando. Contains basic services like Adminer, Elasticsearch, GrumPHP, Kibana, Mailpit, Varnish, and some Lando commands converted to have DDEV support (GrumPHP, PHPUnit).

Summary

  • Update README with instructions on how to get DDEV environment up and running
  • Adminer
    • Use default configuration by ddev-adminer
  • Elasticsearch
    • Use default ES configuration by ddev-elasticsearch
    • Use docker-compose.elasticsearch_extra.yaml to only override the image to use ES8 + install analysis-ukrainian and analysis-icu.
  • Kibana
    • Use default configuration by ddev-kibana
    • Use docker-compose.kibana_extra.yaml to only override the image version to match ES
    • Worth to note that ddev-kibana seems to be quite small project, could be replaced with just a custom Dockerfile
  • Mailpit
    • Replaces the age-old Mailhog. Supplied by DDEV.
  • Varnish
    • Default ddev-varnish configuration
    • The small vcl bit from .lando/varnish.vcl added to default.vcl

Some more things to do and consider

  • [ ] Consider ignoring some of the default files that are coming from ddev get. For example the ddev get ddev/ddev-varnish adds a bunch of commands under .ddev/commands/varnish that are #ddev-generated and might not need to be in the repo
  • [ ] Find out the best way to initially disable some services like we now have for Lando, like ES, Kibana and Varnish (~docker profiles (?)~ omit_containers might be the best way to do this)
  • [ ] How to keep the README more tidy as the double docs for both environments aren't very nice
  • [ ] Find out rest of the things that are now Lando-specific and convert them to DDEV equivalents
  • [ ] Probably some more things

How to test

Testing in feature environment:

No feature environment to test in.

Local testing

Follow the instructions in the README.

Testing steps

Confirm that existing Lando services work on DDEV.

sampoturve avatar Aug 14 '24 12:08 sampoturve