Closed dshevtsov closed 2 years ago
Hi @dshevtsov, Please, try the one of these:
update composer inside docker before running the build phase
How do I do this?
Answered in slack
Changing local Composer version helped.
Though it is expected to use Composer 2 since version 2.4.2 per official system requirements.
@BaDos , any fixes required here? I think @dshevtsov is right saying that Composer 2 is recommended, so rolling back to v1.x is not an obvious solution.
@dshevtsov @YPyltiai By default MCD use Composer 1 After generating docker-compose.yaml file you can add ENV variable with specific composer version:
For example:
...
generic:
hostname: generic.magento2.docker
image: 'magento/magento-cloud-docker-php:8.0-cli-1.3.0'
env_file: ./.docker/config.env
environment:
- 'PHP_EXTENSIONS=bcmath bz2 calendar exif gd gettext intl mysqli pcntl pdo_mysql soap sockets sysvmsg sysvsem sysvshm opcache zip xsl sodium'
- 'SENDMAIL_PATH=/usr/local/bin/mhsendmail --smtp-addr=mailhog:1025'
- 'COMPOSER_VERSION=2.1.9'
...
Changing local Composer version helped.
Though it is expected to use Composer 2 since version 2.4.2 per official system requirements.
I fixed the issue with a workaround. The only concern that remains is that as a user, I expect that an environment from the template corresponds to Commerce's official system requirements.
Preconditions
Steps to reproduce
git clone --branch 2.4.3 git@github.com:magento/magento-cloud.git magento-cloud-2.4.3
cd magento-cloud-2.4.3
cp ~/.composer/auth.json . || exit
COMPOSER_MEMORY_LIMIT=-1 composer update
./vendor/bin/ece-docker build:compose
docker-compose up --detach
docker-compose run --rm build cloud-build
Expected result
Actual result