Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP-FPM Fails to build with 7.4 specified #3170

Closed
dant89 opened this issue Mar 9, 2022 · 3 comments
Closed

PHP-FPM Fails to build with 7.4 specified #3170

dant89 opened this issue Mar 9, 2022 · 3 comments

Comments

@dant89
Copy link

dant89 commented Mar 9, 2022

Description:

When I run docker-compose build php-fpm I run into the below error with what looks like signing errors.

Expected Behaviour:

[+] Building 1.3s (7/83)                                                                                                                                      
 => [internal] load build definition from Dockerfile                                                                                                     0.0s
 => => transferring dockerfile: 44.33kB                                                                                                                  0.0s
 => [internal] load .dockerignore                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                          0.0s
 => [internal] load metadata for docker.io/laradock/php-fpm:latest-7.4                                                                                   0.4s
 => [internal] load build context                                                                                                                        0.0s
 => => transferring context: 6.14kB                                                                                                                      0.0s
 => CACHED [ 1/79] FROM docker.io/laradock/php-fpm:latest-7.4@sha256:e6e9efb455525276bb9a1f9abe5316b6786751fdabbf950a1902ad413ea01f6a                    0.0s
 => [ 2/79] RUN if [ false = true ]; then     sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list &&     sed -i 's/security.d  0.2s
 => ERROR [ 3/79] RUN set -xe;     apt-get update -yqq &&     pecl channel-update pecl.php.net &&     apt-get install -yqq       apt-utils       gnupg2  0.5s
------                                                                                                                                                        
 > [ 3/79] RUN set -xe;     apt-get update -yqq &&     pecl channel-update pecl.php.net &&     apt-get install -yqq       apt-utils       gnupg2       git       libzip-dev zip unzip &&       if [ 7.4 = "7.3" ] || [ 7.4 = "7.4" ] || [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then         docker-php-ext-configure zip;       else         docker-php-ext-configure zip --with-libzip;       fi &&       docker-php-ext-install zip &&       php -m | grep -q 'zip':
#6 0.234 + apt-get update -yqq
#6 0.449 W: GPG error: http://security.debian.org/debian-security bullseye-security InRelease: At least one invalid signature was encountered.
#6 0.449 E: The repository 'http://security.debian.org/debian-security bullseye-security InRelease' is not signed.
#6 0.449 W: GPG error: http://deb.debian.org/debian bullseye InRelease: At least one invalid signature was encountered.
#6 0.449 E: The repository 'http://deb.debian.org/debian bullseye InRelease' is not signed.
#6 0.449 W: GPG error: http://deb.debian.org/debian bullseye-updates InRelease: At least one invalid signature was encountered.
#6 0.449 E: The repository 'http://deb.debian.org/debian bullseye-updates InRelease' is not signed.
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c set -xe;     apt-get update -yqq &&     pecl channel-update pecl.php.net &&     apt-get install -yqq       apt-utils       gnupg2       git       libzip-dev zip unzip &&       if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ] || [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then         docker-php-ext-configure zip;       else         docker-php-ext-configure zip --with-libzip;       fi &&       docker-php-ext-install zip &&       php -m | grep -q 'zip']: exit code: 100

Context information:

Output of git rev-parse HEAD

6c85e5cf5afa9c265c96b561fea3e21fe74064a3

Output of docker version

Docker version 20.10.12, build e91ed57

Output of docker-compose version

Docker Compose version v2.2.3

System info: Mac, Windows or Linux. Include which disto/version

macOS Big Sur 11.6.2
@akbarhmu
Copy link

Got the same issue on Linux Fedora 35 with latest docker version and PHP 8.1. Any solution?

@stale
Copy link

stale bot commented Jun 23, 2022

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Jun 23, 2022
@stale
Copy link

stale bot commented Jul 14, 2022

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants