Laravel Sail on M1 Mac fails
I am trying to get a dev environment setup using Laravel Sail on my m1 Mac, and my "sail up" command fails with:
=> ERROR [ 5/12] RUN pecl install swoole 1.1s
[ 5/12] RUN pecl install swoole:
#8 1.019 No releases available for package "pecl.php.net/swoole"
#8 1.019 install failed
I am attempting to use Laravel defaults, but have changed the docker-compose.yml file to use the x86_64 platform for mysql8.0.
Any ideas on how to work around this?
Just a heads up for anyone else having the issue: I was able to solve for this by swapping out the php version in my docker-compose.yml file from:
PHP 8.0
context: ./vendor/laravel/sail/runtimes/8.0
to:
PHP 7.4
context: ./vendor/laravel/sail/runtimes/7.4
Please or to participate in this conversation.