yiisoft / yii2-docker

Official Docker images suitable for Yii 2.0
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
381 stars 202 forks source link

Install unzip command #149

Closed cebe closed 2 years ago

cebe commented 2 years ago

Composer shows the following warning on composer install or composer update.

As there is no 'unzip' nor '7z' command installed zip files are being unpacked using the PHP zip extension. This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost. Installing 'unzip' or '7z' may remediate them.

image

unzip should be installed on the image by default to avoid this.

schmunk42 commented 2 years ago

@cebe Could you provide a simple composer.json to reproduce, I have trouble reproducing it.

cebe commented 2 years ago

https://gist.github.com/cebe/f55ab1d85db2a548a1119b947f71b2fa

git clone git@gist.github.com:f55ab1d85db2a548a1119b947f71b2fa.git test
cd test
docker-compose up -d
docker-compose exec web composer install

image

schmunk42 commented 2 years ago

fixed in https://github.com/yiisoft/yii2-docker/commit/5b71c2d16c5624eb2444a0e20e7f75469e2ee5bd