Closed Gildus closed 3 years ago
The error comes from a 7.1 version, but the image is 7.2?!
> docker run -it yiisoftware/yii2-php:7.2-apache php -v
usermod: no changes
PHP 7.2.34 (cli) (built: Oct 13 2020 11:32:15) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.34, Copyright (c) 1999-2018, by Zend Technologies
Besides that I can run composer install
and update
on this repo.
[addon]
Please check if you have mixed up the versions, eg. composer update
on 7.2
and install
on 7.1
- that would explain the error.
Yes, I have fetched this project and run the image, did the composer install with default dev
minimum stability and with stable
one. Everything works. It looks like this error is because of your custom dependencies so you need to fix this on your side (including upgrading your PHP if needed).
I’m sorry but do you see or check the file docker-compose.yml ?
Yes, it's a part of the project so you are free to change it however you want, like for example placing there yiisoftware/yii2-php:7.2-apache
(which I can see is available at docker hub).
We can change it in the template.
Done.
I'm sorry but in this case why not upgrade it to 7.4?
He-he :) Yes, that would be even better.
What steps will reproduce the problem?
composer install
Return:What's expected?
The all directory generated vendor with the packages like this:
What do you get instead?
Use the image yiisoftware/yii2-php:7.2-apache like minimal requirement in docker-compose.yml
Additional info