github ddev/ddev v1.10.0-alpha1
v1.10.0-alpha1: Custom commands! Real user in container

latest releases: v1.23.0, v1.23.0-rc2, v1.23.0-rc1...
pre-release4 years ago

Installation/Upgrade

See the installation instructions for details, but it's easy:

  • Please stop all projects first, this does no harm: ddev remove --all --stop-ssh-agent
  • macOS Homebrew and Linux Linuxbrew: To get this one you need to be on the ddev-edge channel: brew tap drud/ddev-edge)
  • Windows: Download the installer.
  • And anywhere, you can just download the tarball or zipball, untar or unzip it, and place the executable in your path where it belongs.
  • You'll want to do a ddev config && ddev start for each project just to update the config file so it has the current APIVersion in it. Otherwise ddev will keep pestering you to do that.

Caveats

  • Please avoid upgrading to macOS Catalina, as mkcert is not ready for it.

Key changes in v1.10.0-alpha1

  • Custom commands! You can now create custom ddev commands using a simple bash script. See the docs for how to do it.
  • There's a real user created for you inside the web and db containers, with your username and userid. And the containers have an explanatory hostname, like <projectname>-web. This also makes things easier for the times people install a package that creates a user or group, there's plenty of room for that to happen now. Those of you who use ddev ssh and ddev exec: We'd love to hear your feedback about this.
  • The first official bash custom command is the mysql command, so you can now ddev mysql to work directly with the mysql client in the db container, and you can pipe into it, etc.

Smaller Changes

  • ddev import-db now accepts stdin, so you can gzip -dc yourfile.sql.gz | mysql db to load a database. Of course, you can also do that with the new ddev mysql command.
  • ddev exec is now happy to accept input from stdin.Thanks @dasjoe!
  • PHPMyAdmin and web ports are no longer shared with the local network. This was a bit of a security risk. If you were allowing your coworkers to access your project across the network and depended on this, try ddev share. Or you can override the settings with a docker-compose.letthemin.yaml
  • Healthcheck improvements should improve battery life and CPU usage. A fair number of people had noticed that all the containers were waking up every few seconds for no particular reason. Now the healthcheck is every minute or so.
  • ddev import-db no longer automatically drops all tables in the database. Instead, your dumpfile should empty tables as necessary (or you can use another technique like ddev exec drush sql-drop -y

Thanks!

There was loads of community collaboration in this release, we so appreciate your participation!

  • @klonos kept the Backdrop drush extensions up-to-date, thanks!
  • @dasjoe updated ddev exec to make it properly accept input from stdin.

We love your PRs and issues, keep them coming! You're the reason this project works.

Commits since v1.9.1

478da82 Custom host and in-container commands, fixes #1372, fixes #1551 (#1702)
27b8fc1 Update drush for Backdrop to 1.0.0, fixes #1693 (#1694)
52c7915 Make ddev import-db accept stdin, fixes #1690 (#1704)
5124666 Reorganize web and db containers to have real user and hostname, persistent bash history, for #926 (#1688)
e8ec25f Add segment to instrumentation, fixes #1640, fixes #1344 (#1696)
93ea28d [FIX] Use Stdin for tty detection, fixes #1690 (#1700)
456994f Bind router functions only on docker interface (usually localhost), fixes #1662 (#1698)
ac4710d Stop reporting last status from ddev ssh, fixes #1681 (#1697)
527519b Update drush for Backdrop to 0.2.1, fixes #1686 (#1687)
a2b82a6 Quiet down healthchecks to save battery and CPU usage, fixes #1663 (#1674)
53fb9c0 Minor fixes to tests and documentation (#1679)
8c8a2de Improve handling of linux case where docker0 is down (#1671)
089eb3d Pre-enable common apache modules, fixes #1672 (#1675)

Don't miss a new ddev release

NewReleases is sending notifications on new releases.