I try to build Magento 2.4.5 with php 8.1 docker on premises environment and I followed the process described here https://devdocs.magento.com/cloud/docker/docker-installation.html.
I ended up with error:
Cannot decode string: list indices must be integers or slices, not str ERROR: 1
Below are the exact steps I followed with the exact commands:
Created project using composer
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.5 magento-community-edition
Change to directory magento-community-edition
Add the ece-tools and Cloud Docker for Commerce packages.
composer require --no-update --dev magento/ece-tools magento/magento-cloud-docker
Install ece tools and cloud docker with composer
compose update
I ran the Docker configuration generator and created docker-compose.yml
./vendor/bin/ece-docker build:compose --mode=production --php=8.1 --db=10.3
Created and started containers
./bin/magento-docker up
Run build hooks
./bin/magento-docker ece-build
At this step after it run installing various composer dependencies if fails with error:
Running "build" hook. Cannot decode string: list indices must be integers or slices, not str ERROR: 1
Any assistance is appreciated.
.magento.app.yaml
file? Also, you can try to use the template for 2.4.5: github.com/magento/magento-cloud/tree/2.4.5 Templates contain all needed config files..magento.app.yaml
file but still same problem. I cannot use above repository because I try the community edition.