wyveo / nginx-php-fpm

Nginx + PHP-FPM 8.2.x / 8.1.x / 8.0.x / 7.4.x / 7.3.x / 7.2.x / 7.1.x / 7.0.x + Composer built on Debian (Bullseye/Buster) image
https://hub.docker.com/r/wyveo/nginx-php-fpm
MIT License
342 stars 244 forks source link

Can not install Kafka extension in php 7.2 #78

Open ThanhQuang1410 opened 6 days ago

ThanhQuang1410 commented 6 days ago

Here is my content inside Dockerfile

FROM wyveo/nginx-php-fpm:php72 RUN apt-get update && apt-get install -y \ librdkafka-dev RUN docker-php-ext-install rdkafka && docker-php-ext-enable rdkafk Error I am getting:

4.121 E: The repository 'https://packages.sury.org/php buster InRelease' is not signed. 4.121 W: GPG error: http://nginx.org/packages/mainline/debian buster InRelease: The following signatures were invalid: EXPKEYSIG ABF5BD827BD9BF62 nginx signing key <signing-key@nginx.com> 4.121 E: The repository 'http://nginx.org/packages/mainline/debian buster InRelease' is not signed.

slash890 commented 6 days ago

The issue is related to the debian version of the image, which is Debian 10 Buster. The package repository has been dismissed for that version, here you can find more info.

All the images for php7.* have to be updated with a new Debian version. That should be done by the maintainer of this repo. Or in alternative, as a temporary fix, you have to update the debian version in your Dockerfile. But i don't know how much is it worth. Or find another image made by someone else.

ThanhQuang1410 commented 6 days ago

@slash890 Thank you. Do you know any alternative? I am stuck because this one seem to be the most pulled image

slash890 commented 6 days ago

Honestly at the moment i am on the same situation as you, and i am trying to find an alternative. If i found one, i will update you :)

ThanhQuang1410 commented 6 days ago

@slash890 thank you so much. I will do the same if I can find anything