Closed Axel29 closed 2 years ago
I'm closing this issue since I found the solution.
For those who are in the same situation, this was due to my docker-compose.yml
file that was outdated.
I recreated it with the following command ./vendor/bin/ece-docker 'build:compose' --with-entrypoint --with-xdebug --set-docker-host --no-os --php='8.1' --expose-db-port=3307 --mode=developer --sync-engine=native --es='7.11' --rmq='3.9'
and it worked again.
I guess the issue was in this diff in the fpm_xdebug
and generic
services:
- - 'PHP_EXTENSIONS=bcmath bz2 calendar exif gd gettext intl mysqli pcntl pdo_mysql soap sockets sysvmsg sysvsem sysvshm opcache zip redis xsl blackfire sodium imagick xdebug'
+ - 'PHP_EXTENSIONS=bcmath bz2 calendar exif gd gettext intl mysqli pcntl pdo_mysql soap sockets sysvmsg sysvsem sysvshm opcache zip xsl sodium xdebug'
Reopening this issue as the fix suggested above doesn't include Imagick by default in the Docker image.
Preconditions
-1.3.2
tag, includingmagento/magento-cloud-docker-php:8.1-fpm-1.3.2
andmagento/magento-cloud-docker-php:8.1-cli-1.3.2
Steps to reproduce
Try to upgrade to Magento 2.4.4 by following the steps described in the Perform an upgrade guide:
docker-compose.yml
filecomposer require magento/composer-root-update-plugin ~2.0 --no-update
composer update
docker-compose.yml
file to use PHP 8.1-1.3.2 (or even 1.3.1)docker-compose up -d
bin/magento-docker bash
composer require-commerce magento/product-community-edition 2.4.4 --no-update
composer update
Expected result
composer update
command works fineActual result
bin/magento-docker bash
):usage: /usr/local/bin/docker-php-ext-enable [options] module-name [module-name ...] ie: /usr/local/bin/docker-php-ext-enable gd mysqli /usr/local/bin/docker-php-ext-enable pdo pdo_mysql /usr/local/bin/docker-php-ext-enable --ini-name 0-apc.ini apcu apc
Possible values for module-name: bcmath.so blackfire.so bz2.so calendar.so exif.so gd.so gettext.so gmp.so gnupg.so intl.so ldap.so mailparse.so msgpack.so mysqli.so oauth.so opcache.so pcntl.so pcov.so pdo_mysql.so pspell.so raphf.so redis.so shmop.so soap.so sockets.so sodium.so sysvmsg.so sysvsem.so sysvshm.so tidy.so xdebug.so xmlrpc.so xsl.so yaml.so zip.so zookeeper.so
Some of the above modules are already compiled into PHP; please check the output of "php -i" to see which modules are already loaded.