yiisoft / yii2-app-advanced

Yii 2.0 Advanced Application Template
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
1.66k stars 1.28k forks source link

Docker Installation #533

Closed juppwerner closed 2 years ago

juppwerner commented 2 years ago

What steps will reproduce the problem?

Try to install composer dependenciese via docker command:

docker-compose run --rm backend composer install

This complains about a lot of missmatching dependencies.

Your lock file does not contain a compatible set of packages. Please run composer update.

Running ...composer update:

Problem 1
 -  Root composer.json requires codeception/module-filesystem ^3.0 || ^1.1 -> satisfiable by codeception/module-filesystem[3.0.0].
 - codeception/module-filesystem 3.0.0 requires php ^8.0 -> your php version (7.4.30) does not satisfy that requirement.

What's expected?

Get composer dependencies installed properly.

What do you get instead?

Composer errors.

Additional info

You can get the composer install running by changing the yii2 Docker images to PHP 8.1

backend/Dockerfile: FROM yiisoftware/yii2-php:8.1-apache

frontend/Dockerfile: FROM yiisoftware/yii2-php:8.1-apache

Q A
Yii version Yii 2
PHP version 7.4
Operating system Docker in Windows
juppwerner commented 2 years ago

I forked the repository and made a branche with the required changes. I added a pull request with my branch to this repository. This i smy first pull request, I hope I did it alright?.

Regards Joachim