Open marcosfreitas opened 2 years ago
The fast response is that We should use this image as a base/builder and in other images call for:
However, GD and Imagick are extensions present on the Dockerfile, and this log warns that GD isn't. 🤔
There is some problem with GD and DOM installations. 😢
As We know, GD is installed by default and I'd add the dom through apk command, but after restarting the container:
bash-5.1# composer update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires simplesoftwareio/simple-qrcode ^4.2 -> satisfiable by simplesoftwareio/simple-qrcode[4.2.0].
- simplesoftwareio/simple-qrcode 4.2.0 requires ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
Problem 2
- phpunit/phpunit[9.5.10, ..., 9.5.20] require ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
- Root composer.json requires phpunit/phpunit ^9.5.10 -> satisfiable by phpunit/phpunit[9.5.10, ..., 9.5.20].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php8/php.ini
- /etc/php8/conf.d/00_curl.ini
- /etc/php8/conf.d/00_iconv.ini
- /etc/php8/conf.d/00_mbstring.ini
- /etc/php8/conf.d/00_openssl.ini
- /etc/php8/conf.d/00_zip.ini
- /etc/php8/conf.d/01_phar.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-gd --ignore-platform-req=ext-dom` to temporarily ignore these required extensions.
This problem with php extension installations was fixed in the last release.
There is some problem with GD and DOM installations. cry
As We know, GD is installed by default and I'd add the dom through apk command, but after restarting the container:
bash-5.1# composer update Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires simplesoftwareio/simple-qrcode ^4.2 -> satisfiable by simplesoftwareio/simple-qrcode[4.2.0]. - simplesoftwareio/simple-qrcode 4.2.0 requires ext-gd * -> it is missing from your system. Install or enable PHP's gd extension. Problem 2 - phpunit/phpunit[9.5.10, ..., 9.5.20] require ext-dom * -> it is missing from your system. Install or enable PHP's dom extension. - Root composer.json requires phpunit/phpunit ^9.5.10 -> satisfiable by phpunit/phpunit[9.5.10, ..., 9.5.20]. To enable extensions, verify that they are enabled in your .ini files: - /etc/php8/php.ini - /etc/php8/conf.d/00_curl.ini - /etc/php8/conf.d/00_iconv.ini - /etc/php8/conf.d/00_mbstring.ini - /etc/php8/conf.d/00_openssl.ini - /etc/php8/conf.d/00_zip.ini - /etc/php8/conf.d/01_phar.ini You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode. Alternatively, you can run Composer with `--ignore-platform-req=ext-gd --ignore-platform-req=ext-dom` to temporarily ignore these required extensions.
There is an output for missing extensions on a Laravel project: