Feat install phpredis with git (#710)
* Use git to install all extensions * Updated maxmind version
This commit is contained in:
parent
eb4df546a0
commit
213f3fc628
17
Dockerfile
17
Dockerfile
|
@ -16,7 +16,8 @@ FROM php:7.4-cli-alpine as step1
|
||||||
|
|
||||||
ENV TZ=Asia/Tel_Aviv \
|
ENV TZ=Asia/Tel_Aviv \
|
||||||
PHP_REDIS_VERSION=5.3.0 \
|
PHP_REDIS_VERSION=5.3.0 \
|
||||||
PHP_SWOOLE_VERSION=4.5.6 \
|
PHP_SWOOLE_VERSION=v4.5.6 \
|
||||||
|
PHP_MAXMINDDB_VERSION=v1.8.0 \
|
||||||
PHP_XDEBUG_VERSION=sdebug_2_9-beta
|
PHP_XDEBUG_VERSION=sdebug_2_9-beta
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
@ -26,8 +27,6 @@ RUN \
|
||||||
autoconf \
|
autoconf \
|
||||||
gcc \
|
gcc \
|
||||||
g++ \
|
g++ \
|
||||||
tar \
|
|
||||||
wget \
|
|
||||||
git \
|
git \
|
||||||
zlib-dev \
|
zlib-dev \
|
||||||
brotli-dev \
|
brotli-dev \
|
||||||
|
@ -37,9 +36,9 @@ RUN docker-php-ext-install sockets
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Redis Extension
|
# Redis Extension
|
||||||
wget -q https://github.com/phpredis/phpredis/archive/$PHP_REDIS_VERSION.tar.gz && \
|
git clone https://github.com/phpredis/phpredis.git && \
|
||||||
tar -xf $PHP_REDIS_VERSION.tar.gz && \
|
cd phpredis && \
|
||||||
cd phpredis-$PHP_REDIS_VERSION && \
|
git checkout $PHP_REDIS_VERSION && \
|
||||||
phpize && \
|
phpize && \
|
||||||
./configure && \
|
./configure && \
|
||||||
make && make install && \
|
make && make install && \
|
||||||
|
@ -47,14 +46,16 @@ RUN \
|
||||||
## Swoole Extension
|
## Swoole Extension
|
||||||
git clone https://github.com/swoole/swoole-src.git && \
|
git clone https://github.com/swoole/swoole-src.git && \
|
||||||
cd swoole-src && \
|
cd swoole-src && \
|
||||||
git checkout v$PHP_SWOOLE_VERSION && \
|
git checkout $PHP_SWOOLE_VERSION && \
|
||||||
phpize && \
|
phpize && \
|
||||||
./configure --enable-sockets --enable-http2 && \
|
./configure --enable-sockets --enable-http2 && \
|
||||||
make && make install && \
|
make && make install && \
|
||||||
cd .. && \
|
cd .. && \
|
||||||
## Maxminddb extension
|
## Maxminddb extension
|
||||||
git clone https://github.com/maxmind/MaxMind-DB-Reader-php.git && \
|
git clone https://github.com/maxmind/MaxMind-DB-Reader-php.git && \
|
||||||
cd MaxMind-DB-Reader-php/ext && \
|
cd MaxMind-DB-Reader-php && \
|
||||||
|
git checkout $PHP_MAXMINDDB_VERSION && \
|
||||||
|
cd ext && \
|
||||||
phpize && \
|
phpize && \
|
||||||
./configure && \
|
./configure && \
|
||||||
make && make install && \
|
make && make install && \
|
||||||
|
|
Loading…
Reference in a new issue