phpearth / docker-php

🐳 Docker For PHP developers - Docker images with PHP, Nginx, OpenLiteSpeed, Apache, Lighttpd, and Alpine
https://docs.php.earth/docker
MIT License
261 stars 80 forks source link

[Question] php earth alpine repo is missing php7.4-mcrypt #44

Closed samundra closed 4 years ago

samundra commented 4 years ago

Docker image creation failed.

I tried to update one of our docker image to use php7.4-nginx, while doing it I found that php earth maintains it's own alpine repos which is currently missing php7.4-mcrypt package.

Alternatives tried:

Error output from alpine official package:

Step 7/14 : RUN apk update && apk add --no-cache   php7.4-gd   php7.4-imap   php7.4-intl   php7.4-mbstring   php7.4-mcrypt   php7.4-ldap   php7.4-soap   php7.4-curl
 ---> Running in 9a5beb324403
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
fetch https://repos.php.earth/alpine/v3.9/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
SSL certificate subject doesn't match host dl-cdn.alpinelinux.org
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.9/community: Permission denied
WARNING: Ignoring APKINDEX.d18d1ece.tar.gz: No such file or directory
v3.9.4-229-gc99c0aa831 [http://dl-cdn.alpinelinux.org/alpine/v3.9/main]
v3.9.4-228-g3b5d75ca3d [http://dl-cdn.alpinelinux.org/alpine/v3.9/community]
1 errors; 10119 distinct packages available
The command '/bin/sh -c apk update && apk add --no-cache   php7.4-gd   php7.4-imap   php7.4-intl   php7.4-mbstring   php7.4-mcrypt   php7.4-ldap   php7.4-soap   php7.4-curl' returned a non-zero code: 1

It mentions that we have SSL error.

SSL certificate subject doesn't match host dl-cdn.alpinelinux.org
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.9/community: Permission denied
WARNING: Ignoring APKINDEX.d18d1ece.tar.gz: No such file or directory

Any suggestion on how I should move forward. Any hint?

samundra commented 4 years ago

Update:

I have dropped mcrypt. It's already deprecated by PHP7.2 as well. So, instead used php-openssl as alternative. Closing this comment as it is no longer required.

For those who end up here can refer to discussion here to have more insights.