-
Notifications
You must be signed in to change notification settings - Fork 2k
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
pecl install redis on php8 fails #1118
Comments
I'm seeing similar issues on
|
same for xdebug on |
Hi, I'm facing the same issue. RUN curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; \
export GNUPGHOME="$(mktemp -d)"; \
for key in $GPG_KEYS; do \
gpg --batch --keyserver ipv4.pool.sks-keyservers.net --recv-keys "$key"; \
done; \
gpg --batch --verify php.tar.xz.asc php.tar.xz; \
gpgconf --kill all; \
rm -rf "$GNUPGHOME"; Basically this is a snippet from the official php dockerfile replacing EDIT: Unrelated comment, please disregard. |
@cdaguerre even if I take the snippet from the php8 Dockerfile with the accompanying ENV variables and prefix this before Unless you meant this would only work if building from source which is not what I wish to do here. |
@joeyleake you could possibly resolve your issue with the --ipv4 flag Thanks for pointing out alpine3.12 works, I have tried |
@joepagan you're right, my comment was totally unrelated, sorry for wasting your time. ARG PHP_VERSION="8.0"
ARG ALPINE_VERSION="3.13"
FROM php:${PHP_VERSION}-alpine${ALPINE_VERSION}
RUN mkdir -p /usr/src/php/ext/redis; \
curl -fsSL https://pecl.php.net/get/redis --ipv4 | tar xvz -C "/usr/src/php/ext/redis" --strip 1; \
docker-php-ext-install redis; |
Thanks for the suggestion @cdaguerre I can confirm that works! I presume pecl is propbably using curl behind the scenes. Using that methodology we can actually just completely bypass pecl and go straight for the release on their github... still need ipv4 flag tho: RUN mkdir -p /usr/src/php/ext/redis; \
curl -fsSL --ipv4 https://github.com/phpredis/phpredis/archive/5.3.2.tar.gz | tar xvz -C "/usr/src/php/ext/redis" --strip 1; \
docker-php-ext-install redis I believe there WAS an intention to remove pear & pecl but they've since back tracked, related threads: I suspect this issue is technically one for alpine to resolve further upstream but may as well keep this open for one of the contributors here to comment, surely this alpine (or curl) version is breaking a lot of things if they are forcing ipv6 on all curl commands Update: Looks like this change also makes installing packages from composer impossible |
I have
when trying to install redis... :/ adding
does not help |
Had the same issue and found this docker/for-mac#5020 - updating Docker for Mac to 3.1.0 fixed the problem for me. |
I can confirm that has fixed it for me too! Not sure if the repo contributors deem that a sufficient fix so will leave this for them to close. |
Had the same issue (but with the imagick package) and updating to Docker 3.1.0 seemed to do the trick for me as well... |
adding
helped, if someone cares :) |
On reflection, As this issue is likely caused upstream and can be resolved by updating I'll close this. |
but problem still exists for docker-win. |
@Gemorroj if there is no docker-win update that resolves this create an issue on the alpine repo |
|
2021-01-22 Update:
As highlighted here updating docker for mac to at least 3.1 will resolve this.
Issue appears to be to do with alpine rather than this repo.
Update:
php:8-fpm-alpine
failsphp:8-fpm-alpine3.12
workstl;dr I want to
pecl install redis
onphp:8-fpm-alpine
.When trying to build
FROM php:8-fpm-alpine
with a standardpecl install redis
I get this:It looks like
install-php-extensions redis
even fails, looks like DNS issue:It's very possible my issue is ipv6 related, after removing redis from being installed on my docker file and running ping inside the php container:
forced ipv4 ping:
forced ipv6 ping:
Is this because there is no ipv6 record on the domain, or, maybe something wrong with my docker-compose.yml or Dockerfile?
php-fpm.dockerfile:
Change: Cut out most of my RUN value in the dockerfile which is not relevant to the issue
The text was updated successfully, but these errors were encountered: