Spring 2021 Test Drive!

Installing Lando in WSL 2

Using the latest Docker Desktop 3.2.x and Ubuntu 18.04



Install Lando from Github

Download latest stable Lando release.
Installing the Lando executable using a .deb package (in Ubuntu WSL2).
Testing Lando executable, successful.

Fire Up Lando

Example Lando .lando.yml configuration.
Launching Lando project from Ubuntu WSL2.
Launching Lando project successful.
Empty Apache directory is sad 😩
Using Docker for Windows to Exec into container.
The Lando PHP container.

Installing Drupal with Composer

Checking Composer version inside Lando container.
composer create-project drupal/recommended-project my_site_name_dir
composer create-project drupal/recommended-project .
Make sure the /app directory is completely empty before any composer commands.
composer create-project drupal/recommended-project:8.x .
Composer install is successful.
Contents of /app directory after composer install.
The initial Drupal install page.

Running the Drupal database installer

Using root is evil!
Updating permissions on the container.
The Drupal installer page.

Configuring the database

Exec into the database container using the Docker Desktop GUI
Inspecting the Lando database container.
Inspecting the Lando database container.
Populating the database installer with Lando values.
Database credentials are legit!
Drupal 8.x install is successful!

Organic, fair-sourced DevOps and Full-Stack things. This is a BYOB Establishment — Bring Your Own hipster Beard.

Get the Medium app