Enabled local development env with DDEV

Created on 23 April 2025, about 1 month ago

Problem/Motivation

DDEV and ddev/ddev-drupal-contrib appear to be the de-facto local development setup for contrib modules these days.

Let's commit .ddev to the module - like many other contrib modules have done already - to speed up local dev env setup for this module.

Steps to reproduce

Proposed resolution

Remaining tasks

✨ Feature request
Status

Active

Version

1.0

Component

General code

Created by

🇭🇺Hungary mxr576 Hungary

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @mxr576
  • 🇭🇺Hungary mxr576 Hungary
  • Merge request !229Add necessary DDEV configuration files → (Open) created by mxr576
  • 🇭🇺Hungary mxr576 Hungary
  • Pipeline finished with Success
    about 1 month ago
    #479950
  • 🇦🇹Austria drunken monkey Vienna, Austria

    Thanks a lot for suggesting this improvement!
    I must admit I’m not too familiar with DDEV so am a bit overwhelmed by this MR.
    Could you please tell me some examples of other modules that have already done this? Do you have links to some issues that discuss this change?
    Adding a whole new folder with 19 files seems like a pretty big change. What exactly is the advantage of doing this, seems like most of this is auto-generated? (In fact, could you please tell me which parts are not auto-generated? Is it just the first few lines of .ddev/config.yaml? If so, wouldn’t DDEV be able to generate the rest anyways, without us including it in the repository?)
    Also, what exactly is the use case for which this is needed? Is this for including Search API in any website project, or just for testing Search API on its own in a test environment?
    Finally, why did you choose MariaDB and specifcally version 10.11? Isn’t hard-coding that in our module repo a problem?

  • 🇭🇺Hungary mxr576 Hungary

    A Slack conversation started here: https://drupal.slack.com/archives/C3E9QDZ5M/p1745499507960159
    Where I have also shared this link that lists all contribs hosted on Drupal Git with DDEV enabled: https://git.drupalcode.org/search?group_id=2&scope=blobs&search=filename...

    Yes, most of this is auto-genarated code at the moment of DDEV and necessary DDEV addons (if any is necessary) configured for the project. The benefit of committing these files that they drastically speed up contribution to projects, because whoever has DDEV installed - the official Drupal development tool for Drupal and contribs as far as I know - could just git clone the project and run ddev start and start contributing. They do not need to follow manual steps and ensure the right set of dependencies are installed, because the committed "last known good" configuration is in the version controlling system already.

    Ignoring these configs from artifacts of course is a must, because when you install a module from an artifact you most likely do not need the bundled DDEV config.

Production build 0.71.5 2024