Skip to content

Instantly share code, notes, and snippets.

@quentint
Last active April 11, 2022 09:00
Show Gist options
  • Save quentint/27d3aef3d7b359c6e416eba6f9628664 to your computer and use it in GitHub Desktop.
Save quentint/27d3aef3d7b359c6e416eba6f9628664 to your computer and use it in GitHub Desktop.

Lando with Hyperdrive

On Windows, make sure you're ready for WSL2: https://docs.lando.dev/guides/setup-lando-on-windows-with-wsl-2.html

Open an Ubuntu terminal, then:

Install Docker

https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository

Install and run Hyperdrive

curl -Ls https://github.com/lando/hyperdrive/releases/download/v0.6.1/hyperdrive > /tmp/hyperdrive
chmod +x /tmp/hyperdrive
/tmp/hyperdrive

Update Lando

wget https://github.com/lando/lando/releases/download/v3.6.2/lando-x64-v3.6.2.deb
sudo dpkg -i lando-x64-v3.6.2.deb
rm lando-x64-v3.6.2.deb

Initialize Symfony project

cd ~
mkdir my-new-project && cd my-new-project
lando composer self-update
lando init
lando composer create-project symfony/skeleton:^6.0 tmp
cd tmp
lando composer require webapp
cd ..
cp -r tmp/. . && rm -rf tmp

Start Lando

lando start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment