~alpine/users

2

[alpine-user] Php7 Redis Client on Alpine OS

Smruti Tripathy <smrutirtripathy@gmail.com>
Details
Message ID
<CA+2M8qLDn3GYP6ZtLj+JgghQPaevYm3V0xHJO7zqC+Z9C_xy5A@mail.gmail.com>
Sender timestamp
1495713133
DKIM signature
missing
Download raw message
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
Jean-Louis Fuchs <ganwell@fangorn.ch>
Details
Message ID
<20170526143620.GA6638@vimes.1042.ch>
In-Reply-To
<CA+2M8qLDn3GYP6ZtLj+JgghQPaevYm3V0xHJO7zqC+Z9C_xy5A@mail.gmail.com> (view parent)
Sender timestamp
1495809380
DKIM signature
missing
Download raw message
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
Jean-Louis Fuchs <ganwell@fangorn.ch>
Details
Message ID
<20170526144429.GB5860@vimes.1042.ch>
In-Reply-To
<20170526143620.GA6638@vimes.1042.ch> (view parent)
Sender timestamp
1495809869
DKIM signature
missing
Download raw message
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
Reply to thread Export thread (mbox)