laravel-served icon indicating copy to clipboard operation
laravel-served copied to clipboard

Issues on building Php 7.4-fpm

Open marufdevops opened this issue 4 years ago • 4 comments

Development Environment:

  • Mac OS, M1

When running php artisan served:up

ERROR : : #1 [internal] load build definition from Dockerfile
#1 sha256:c4efc71d75273557a7c7be51362d361b9536dcdc8da29
#1 transferring dockerfile: 2.33kB done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 sha256:41e4a846919871ed72ae59be3152c6ff843a8f948833

I am not sure where is the issue! please help

marufdevops avatar Sep 21 '21 10:09 marufdevops

Sadly I don't own a M1, so I cannot replicate the issue and thereby provide a fix. Feel free to send in a PR (or just explain how you got it working and I will look into a patch)

sinnbeck avatar Sep 21 '21 11:09 sinnbeck

not sure if this is relevant, but with docker on M1, the most common issue I've faced (in general) is with lack of support for mysql.

It maybe that the image for mysql needs to be switched to use mariadb instead?

image: mariadb:10.5.8

iammikek avatar Sep 21 '21 13:09 iammikek

I am not sure if this is the issue. The build process got stuck even before it can proceed to db image

marufdevops avatar Sep 22 '21 09:09 marufdevops

If you run the commands with -vvv you should get the actual underlying commands that docker is running. That might help in debugging.

sinnbeck avatar Sep 22 '21 12:09 sinnbeck