drupal-project
drupal-project copied to clipboard
GH-420: DDEV support
🚧👷🏻♂️🏗️ 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
- Use default configuration by
- Elasticsearch
- Use default ES configuration by
ddev-elasticsearch - Use
docker-compose.elasticsearch_extra.yamlto only override the image to use ES8 + installanalysis-ukrainianandanalysis-icu.
- Use default ES configuration by
- Kibana
- Use default configuration by
ddev-kibana - Use
docker-compose.kibana_extra.yamlto 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
- Use default configuration by
- Mailpit
- Replaces the age-old Mailhog. Supplied by DDEV.
- Varnish
- Default
ddev-varnishconfiguration - The small vcl bit from
.lando/varnish.vcladded todefault.vcl
- Default
Some more things to do and consider
- [ ] Consider ignoring some of the default files that are coming from
ddev get. For example theddev get ddev/ddev-varnishadds a bunch of commands under.ddev/commands/varnishthat are#ddev-generatedand 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_containersmight 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.