Skip to content

Instantly share code, notes, and snippets.

@ephbaum
Created July 16, 2022 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ephbaum/ed033792c1e415352fe28795c3788c0a to your computer and use it in GitHub Desktop.
Save ephbaum/ed033792c1e415352fe28795c3788c0a to your computer and use it in GitHub Desktop.
Laravel Sail - Install Existing Project

So you have you a little Laravel Repo and you want to use Sail. It was probably so easy to set up in the first place, but how in the hell are you planning to get this thing installed now?

You could use the composer/composer container to install composer dependencies, or you can use the laravelsail/php81-composer

docker run --rm -u "$(id -u):$(id -g)" -v $(pwd):/opt -w /opt laravelsail/php81-composer:latest composer install --ignore-platform-reqs

docker run --rm
-u "$(id -u):$(id -g)"
-v $(pwd):/opt
-w /opt
laravelsail/php81-composer:latest composer install --ignore-platform-reqs

docker run --rm -u "$(id -u):$(id -g)" -v $(pwd):/opt -w /opt laravelsail/php81-composer:latest composer update --ignore-platform-reqs

docker run --rm
-u "$(id -u):$(id -g)"
-v $(pwd):/opt
-w /opt
laravelsail/php81-composer:latest composer update --ignore-platform-reqs

docker run --rm -u "$(id -u):$(id -g)" -v $(pwd):/opt -w /opt laravelsail/php81-composer:latest composer dumpauto --ignore-platform-reqs

docker run --rm
-u "$(id -u):$(id -g)"
-v $(pwd):/opt
-w /opt
laravelsail/php81-composer:latest composer dumpauto --ignore-platform-reqs

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