Customize DDEV: How to Downgrade Terminus and Install Custom Tools in Your Web Container

coding man
pressfoto / Freepik

In a recent guest post for the DDEV blog, Drupal contributor Bill Seremetis of Annertech outlines a practical workaround for DDEV users who need to downgrade bundled tools like Pantheon’s Terminus. The newer versions of Terminus have dropped support for PHP 8.1, which remains in use in many legacy Drupal projects. To address compatibility issues, Seremetis provides a step-by-step method for customizing the DDEV web container using an additional Dockerfile, restoring functionality for older setups.

The post guides readers through creating a Dockerfile to manually install an older Terminus version (3.6.2), thereby bypassing the default DDEV bundle. This technique is especially helpful when tool updates introduce bugs or break compatibility. Seremetis emphasizes that while Terminus is the focus, the method can apply to any command-line tool. The article links to broader DDEV documentation for image customization and package installation.

Expanding the concept, Seremetis also demonstrates how to add entirely new tools—like fzf, a fuzzy finder utility—by defining their versions and using curl and tar to install them in the Docker container. The tutorial is concise but assumes familiarity with Dockerfile syntax and DDEV’s configuration system. While effective, the guide would benefit from more error-handling tips or testing advice. Still, it offers immediate value for developers maintaining diverse or aging environments.

Source Reference

Date of Publication
Organization

Disclosure: This content is produced with the assistance of AI.

Disclaimer: The opinions expressed in this story do not necessarily represent that of TheDropTimes. We regularly share third-party blog posts that feature Drupal in good faith. TDT recommends Reader's discretion while consuming such content, as the veracity/authenticity of the story depends on the blogger and their motives. 

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Related Organizations

Upcoming Events

Latest Opportunities