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

Can not install Kafka extension in php 7.2 #78

Open
ThanhQuang1410 opened this issue Jul 4, 2024 · 6 comments
Open

Can not install Kafka extension in php 7.2 #78

ThanhQuang1410 opened this issue Jul 4, 2024 · 6 comments

Comments

@ThanhQuang1410
Copy link

ThanhQuang1410 commented Jul 4, 2024

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 <[email protected]> 4.121 E: The repository 'http://nginx.org/packages/mainline/debian buster InRelease' is not signed.

@slash890
Copy link

slash890 commented Jul 4, 2024

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
Copy link
Author

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

@slash890
Copy link

slash890 commented Jul 4, 2024

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
Copy link
Author

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

@IMSoP
Copy link

IMSoP commented Jul 21, 2024

It's worth stressing here that PHP 7.2 itself last had an official security patch 3.5 years ago https://www.php.net/eol.php

That's likely to mean more and more projects will no longer be testing and releasing versions compatible with it, even for Linux distros which are still otherwise supported. Plan A for anyone relying on it should be to migrate to a newer version, but I appreciate that's not always easy, and short-term alternatives may still be wanted.

@isra00
Copy link

isra00 commented Sep 28, 2024

Hi! I've been able to upgrade the Debian version in the 7.3 image, and it works! I've made a pull request with the changes. Before it gets merged into the main repo, or if you want to backport other versions of PHP, here you can check the changes necessary: isra00@2733f52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants