I crafted a docker image using alpine 3.5 as base Image. I want my php
apllication running inside container to communicate with a redis server.But
I don't find any php7-redis client in Alpine.
Is there a redis client for php in alpine ? Is there any workway round it.
I tried to use pecl to install redis but there is no pecl package in
alpine.I tried with pear but pear doesn't have redis package. Any thoughts
on this issue ?
Thanks and Regards
SmrutiRanjan Tripathy
Hi
It seems we have php7-redis
https://pkgs.alpinelinux.org/package/edge/community/x86_64/php7-redis
As you see it is a community package. The following steps could be
added to a script called from your Dockerfile
echo http://dl-cdn.alpinelinux.org/alpine/v3.6/community > \
/etc/apk/repositories
apk update
apk add php7-redis
See also: https://wiki.alpinelinux.org/wiki/Enable_Community_Repository
Best,
Jean-Louis
On Thu, May 25, 2017 at 05:22:13PM +0530, Smruti Tripathy wrote:
> I crafted a docker image using alpine 3.5 as base Image. I want my php> apllication running inside container to communicate with a redis server.But> I don't find any php7-redis client in Alpine.> > Is there a redis client for php in alpine ? Is there any workway round it.> I tried to use pecl to install redis but there is no pecl package in> alpine.I tried with pear but pear doesn't have redis package. Any thoughts> on this issue ?> > Thanks and Regards> > SmrutiRanjan Tripathy
Hi
I just saw a small but significant typo > should be >>.
echo http://dl-cdn.alpinelinux.org/alpine/v3.6/community >> \
/etc/apk/repositories
apk update
apk add php7-redis
Best,
Jean-Louis
On Thu, May 25, 2017 at 05:22:13PM +0530, Smruti Tripathy wrote:
> I crafted a docker image using alpine 3.5 as base Image. I want my php> apllication running inside container to communicate with a redis server.But> I don't find any php7-redis client in Alpine.> > Is there a redis client for php in alpine ? Is there any workway round it.> I tried to use pecl to install redis but there is no pecl package in> alpine.I tried with pear but pear doesn't have redis package. Any thoughts> on this issue ?> > Thanks and Regards> > SmrutiRanjan Tripathy