reorganizaion aerospike extension install (#2008)
This commit is contained in:
parent
27af2bca8c
commit
b0edaf93a1
|
@ -75,7 +75,6 @@ services:
|
||||||
- INSTALL_WP_CLI=${WORKSPACE_INSTALL_WP_CLI}
|
- INSTALL_WP_CLI=${WORKSPACE_INSTALL_WP_CLI}
|
||||||
- INSTALL_DRUPAL_CONSOLE=${WORKSPACE_INSTALL_DRUPAL_CONSOLE}
|
- INSTALL_DRUPAL_CONSOLE=${WORKSPACE_INSTALL_DRUPAL_CONSOLE}
|
||||||
- INSTALL_AEROSPIKE=${WORKSPACE_INSTALL_AEROSPIKE}
|
- INSTALL_AEROSPIKE=${WORKSPACE_INSTALL_AEROSPIKE}
|
||||||
- AEROSPIKE_PHP_REPOSITORY=${AEROSPIKE_PHP_REPOSITORY}
|
|
||||||
- INSTALL_V8JS=${WORKSPACE_INSTALL_V8JS}
|
- INSTALL_V8JS=${WORKSPACE_INSTALL_V8JS}
|
||||||
- COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
|
- COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
|
||||||
- COMPOSER_REPO_PACKAGIST=${WORKSPACE_COMPOSER_REPO_PACKAGIST}
|
- COMPOSER_REPO_PACKAGIST=${WORKSPACE_COMPOSER_REPO_PACKAGIST}
|
||||||
|
@ -146,7 +145,6 @@ services:
|
||||||
- INSTALL_OPCACHE=${PHP_FPM_INSTALL_OPCACHE}
|
- INSTALL_OPCACHE=${PHP_FPM_INSTALL_OPCACHE}
|
||||||
- INSTALL_EXIF=${PHP_FPM_INSTALL_EXIF}
|
- INSTALL_EXIF=${PHP_FPM_INSTALL_EXIF}
|
||||||
- INSTALL_AEROSPIKE=${PHP_FPM_INSTALL_AEROSPIKE}
|
- INSTALL_AEROSPIKE=${PHP_FPM_INSTALL_AEROSPIKE}
|
||||||
- AEROSPIKE_PHP_REPOSITORY=${AEROSPIKE_PHP_REPOSITORY}
|
|
||||||
- INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI}
|
- INSTALL_MYSQLI=${PHP_FPM_INSTALL_MYSQLI}
|
||||||
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
|
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
|
||||||
- INSTALL_PG_CLIENT=${PHP_FPM_INSTALL_PG_CLIENT}
|
- INSTALL_PG_CLIENT=${PHP_FPM_INSTALL_PG_CLIENT}
|
||||||
|
|
|
@ -372,11 +372,6 @@ AEROSPIKE_FABRIC_PORT=3001
|
||||||
AEROSPIKE_HEARTBEAT_PORT=3002
|
AEROSPIKE_HEARTBEAT_PORT=3002
|
||||||
AEROSPIKE_INFO_PORT=3003
|
AEROSPIKE_INFO_PORT=3003
|
||||||
|
|
||||||
# for all versions
|
|
||||||
AEROSPIKE_PHP_REPOSITORY=https://github.com/aerospike/aerospike-client-php/archive/master.tar.gz
|
|
||||||
# for php 5.6
|
|
||||||
# AEROSPIKE_PHP_REPOSITORY=https://github.com/aerospike/aerospike-client-php5/archive/3.4.15.tar.gz
|
|
||||||
|
|
||||||
### RETHINKDB #############################################
|
### RETHINKDB #############################################
|
||||||
|
|
||||||
RETHINKDB_PORT=8090
|
RETHINKDB_PORT=8090
|
||||||
|
|
|
@ -24,7 +24,7 @@ ARG LARADOCK_PHP_VERSION
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
# always run apt update when start and after add new source list, then clean up at end.
|
# always run apt update when start and after add new source list, then clean up at end.
|
||||||
RUN apt-get update -yqq && \
|
RUN set -xe && apt-get update -yqq && \
|
||||||
apt-get install -y apt-utils && \
|
apt-get install -y apt-utils && \
|
||||||
pecl channel-update pecl.php.net
|
pecl channel-update pecl.php.net
|
||||||
|
|
||||||
|
@ -338,30 +338,29 @@ RUN if [ ${INSTALL_EXIF} = true ]; then \
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
ARG INSTALL_AEROSPIKE=false
|
ARG INSTALL_AEROSPIKE=false
|
||||||
ARG AEROSPIKE_PHP_REPOSITORY
|
|
||||||
|
|
||||||
RUN if [ ${INSTALL_AEROSPIKE} = true ]; then \
|
RUN set -xe && if [ ${INSTALL_AEROSPIKE} = true ]; then \
|
||||||
# Fix dependencies for PHPUnit within aerospike extension
|
# Fix dependencies for PHPUnit within aerospike extension
|
||||||
apt-get -y install sudo wget && \
|
apt-get -y install sudo wget && \
|
||||||
# Install the php aerospike extension
|
# Install the php aerospike extension
|
||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
curl -L -o /tmp/aerospike-client-php.tar.gz https://github.com/aerospike/aerospike-client-php5/archive/master.tar.gz; \
|
curl -L -o /tmp/aerospike-client-php.tar.gz https://github.com/aerospike/aerospike-client-php5/archive/master.tar.gz; \
|
||||||
else \
|
else \
|
||||||
curl -L -o /tmp/aerospike-client-php.tar.gz ${AEROSPIKE_PHP_REPOSITORY}; \
|
curl -L -o /tmp/aerospike-client-php.tar.gz https://github.com/aerospike/aerospike-client-php/archive/master.tar.gz; \
|
||||||
fi \
|
fi \
|
||||||
&& mkdir -p aerospike-client-php \
|
&& mkdir -p /tmp/aerospike-client-php \
|
||||||
&& tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
|
&& tar -C /tmp/aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
|
||||||
&& \
|
&& \
|
||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
( \
|
( \
|
||||||
cd aerospike-client-php/src/aerospike \
|
cd /tmp/aerospike-client-php/src/aerospike \
|
||||||
&& phpize \
|
&& phpize \
|
||||||
&& ./build.sh \
|
&& ./build.sh \
|
||||||
&& make install \
|
&& make install \
|
||||||
) \
|
) \
|
||||||
else \
|
else \
|
||||||
( \
|
( \
|
||||||
cd aerospike-client-php/src \
|
cd /tmp/aerospike-client-php/src \
|
||||||
&& phpize \
|
&& phpize \
|
||||||
&& ./build.sh \
|
&& ./build.sh \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
|
|
@ -15,10 +15,6 @@ if [ -n "${PHP_VERSION}" ]; then
|
||||||
sed -i -- "s/PHP_VERSION=.*/PHP_VERSION=${PHP_VERSION}/g" .env
|
sed -i -- "s/PHP_VERSION=.*/PHP_VERSION=${PHP_VERSION}/g" .env
|
||||||
sed -i -- 's/=false/=true/g' .env
|
sed -i -- 's/=false/=true/g' .env
|
||||||
sed -i -- 's/PHPDBG=true/PHPDBG=false/g' .env
|
sed -i -- 's/PHPDBG=true/PHPDBG=false/g' .env
|
||||||
if [ "${PHP_VERSION}" == "5.6" ]; then
|
|
||||||
sed -i -- 's/^AEROSPIKE_PHP_REPOSITORY=/##AEROSPIKE_PHP_REPOSITORY=/g' .env
|
|
||||||
sed -i -- 's/^# AEROSPIKE_PHP_REPOSITORY=/AEROSPIKE_PHP_REPOSITORY=/g' .env
|
|
||||||
fi
|
|
||||||
cat .env
|
cat .env
|
||||||
docker-compose build ${BUILD_SERVICE}
|
docker-compose build ${BUILD_SERVICE}
|
||||||
docker images
|
docker images
|
||||||
|
|
|
@ -37,7 +37,7 @@ ARG PGID=1000
|
||||||
ENV PGID ${PGID}
|
ENV PGID ${PGID}
|
||||||
|
|
||||||
# always run apt update when start and after add new source list, then clean up at end.
|
# always run apt update when start and after add new source list, then clean up at end.
|
||||||
RUN apt-get update -yqq && \
|
RUN set -xe && apt-get update -yqq && \
|
||||||
pecl channel-update pecl.php.net && \
|
pecl channel-update pecl.php.net && \
|
||||||
groupadd -g ${PGID} laradock && \
|
groupadd -g ${PGID} laradock && \
|
||||||
useradd -u ${PUID} -g laradock -m laradock -G docker_env && \
|
useradd -u ${PUID} -g laradock -m laradock -G docker_env && \
|
||||||
|
@ -581,26 +581,29 @@ ENV PATH $PATH:/home/laradock/.yarn/bin
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
ARG INSTALL_AEROSPIKE=false
|
ARG INSTALL_AEROSPIKE=false
|
||||||
ARG AEROSPIKE_PHP_REPOSITORY
|
|
||||||
|
|
||||||
RUN if [ ${INSTALL_AEROSPIKE} = true ]; then \
|
RUN set -xe && if [ ${INSTALL_AEROSPIKE} = true ]; then \
|
||||||
# Fix dependencies for PHPUnit within aerospike extension
|
# Fix dependencies for PHPUnit within aerospike extension
|
||||||
apt-get -y install sudo wget && \
|
apt-get -y install sudo wget && \
|
||||||
# Install the php aerospike extension
|
# Install the php aerospike extension
|
||||||
curl -L -o /tmp/aerospike-client-php.tar.gz ${AEROSPIKE_PHP_REPOSITORY} \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
&& mkdir -p aerospike-client-php \
|
curl -L -o /tmp/aerospike-client-php.tar.gz https://github.com/aerospike/aerospike-client-php5/archive/master.tar.gz; \
|
||||||
&& tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
|
else \
|
||||||
|
curl -L -o /tmp/aerospike-client-php.tar.gz https://github.com/aerospike/aerospike-client-php/archive/master.tar.gz; \
|
||||||
|
fi \
|
||||||
|
&& mkdir -p /tmp/aerospike-client-php \
|
||||||
|
&& tar -C /tmp/aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
|
||||||
&& \
|
&& \
|
||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
( \
|
( \
|
||||||
cd aerospike-client-php/src/aerospike \
|
cd /tmp/aerospike-client-php/src/aerospike \
|
||||||
&& phpize \
|
&& phpize \
|
||||||
&& ./build.sh \
|
&& ./build.sh \
|
||||||
&& make install \
|
&& make install \
|
||||||
) \
|
) \
|
||||||
else \
|
else \
|
||||||
( \
|
( \
|
||||||
cd aerospike-client-php/src \
|
cd /tmp/aerospike-client-php/src \
|
||||||
&& phpize \
|
&& phpize \
|
||||||
&& ./build.sh \
|
&& ./build.sh \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
|
Loading…
Reference in New Issue