DDEV now supports the ARM64 architecture on Linux and Windows WSL2. You can read all about ARM64 and what it means to the world (and to DDEV) in the previous blog on ARM64, Apple Silicon, and Apple’s M1 chip. Since I don’t have a big machine to test with, I got the ARM64-based Raspberry Pi 4 instead, and it’s actually worked out far better than I expected. It was a great way to have an ARM64 machine available for testing whenever needed during the development process, but it turns out some people might want to use a Pi as their desktop web development machine. All of features of DDEV work out of the box.
On this Raspberry Pi 4 I have Ubuntu 20.10, which is the first Ubuntu version to explicitly support the Raspberry Pi. I’ve previously experimented with the 64-bit Debian-10-based Raspberry Pi OS, and it worked as expected as well, although Debian 10 doesn’t have versions of Docker and docker-compose that are as recent as I’d like.
- Install docker.io and docker-compose with
sudo apt-get update && sudo apt-get install -y docker.io docker-compose
- Add your user to the Docker group with
sudo usermod -aG docker $USER. Note that on some machines or operating systems you may have to log out and log in again to see this take effect, but you can test it with
idto see if you’re in the Docker group, and if
docker psworks without sudo, it’s working.
sudo apt-get install libnss3-tools xdg-utils: libnss3-tools helps mkcert to work with Firefox and Chromium, and xdg-utils is the secret sauce behind
ddev launchon Linux.
- Install DDEV using the install script:
curl -LO https://raw.githubusercontent.com/ddev/ddev/master/scripts/install_ddev.sh && bash install_ddev.sh
ddev configin a project and
I found that with a standard setup, DDEV on the Raspberry Pi 4 was able to do everything it’s supposed to do, and with better performance than expected. It would certainly be possible to add faster disk or an SSD to it and make things even better. If you need a super-low-cost development environment, want to see what ARM64 is all about, or want to do new cool things with the Pi, here’s your chance!