@@ -37,7 +37,7 @@ ARG PGID=1000
3737ENV PGID ${PGID}
3838
3939# always run apt update when start and after add new source list, then clean up at end.
40- RUN apt-get update -yqq && \
40+ RUN set -xe && apt-get update -yqq && \
4141 pecl channel-update pecl.php.net && \
4242 groupadd -g ${PGID} laradock && \
4343 useradd -u ${PUID} -g laradock -m laradock -G docker_env && \
@@ -581,26 +581,29 @@ ENV PATH $PATH:/home/laradock/.yarn/bin
581581USER root
582582
583583ARG INSTALL_AEROSPIKE=false
584- ARG AEROSPIKE_PHP_REPOSITORY
585584
586- RUN if [ ${INSTALL_AEROSPIKE} = true ]; then \
585+ RUN set -xe && if [ ${INSTALL_AEROSPIKE} = true ]; then \
587586 # Fix dependencies for PHPUnit within aerospike extension
588587 apt-get -y install sudo wget && \
589588 # Install the php aerospike extension
590- curl -L -o /tmp/aerospike-client-php.tar.gz ${AEROSPIKE_PHP_REPOSITORY} \
591- && mkdir -p aerospike-client-php \
592- && tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
589+ if [ $(php -r "echo PHP_MAJOR_VERSION;" ) = "5" ]; then \
590+ curl -L -o /tmp/aerospike-client-php.tar.gz https://github.com/aerospike/aerospike-client-php5/archive/master.tar.gz; \
591+ else \
592+ curl -L -o /tmp/aerospike-client-php.tar.gz https://github.com/aerospike/aerospike-client-php/archive/master.tar.gz; \
593+ fi \
594+ && mkdir -p /tmp/aerospike-client-php \
595+ && tar -C /tmp/aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
593596 && \
594597 if [ $(php -r "echo PHP_MAJOR_VERSION;" ) = "5" ]; then \
595598 ( \
596- cd aerospike-client-php/src/aerospike \
599+ cd /tmp/ aerospike-client-php/src/aerospike \
597600 && phpize \
598601 && ./build.sh \
599602 && make install \
600603 ) \
601604 else \
602605 ( \
603- cd aerospike-client-php/src \
606+ cd /tmp/ aerospike-client-php/src \
604607 && phpize \
605608 && ./build.sh \
606609 && make install \
0 commit comments