Added APCU installation option for the workspace container
This commit is contained in:
parent
6c8cb6dd85
commit
cd1d7014e4
@ -183,6 +183,7 @@ WORKSPACE_INSTALL_YAML=false
|
||||
WORKSPACE_INSTALL_RDKAFKA=false
|
||||
WORKSPACE_INSTALL_MAILPARSE=false
|
||||
WORKSPACE_INSTALL_XMLRPC=false
|
||||
WORKSPACE_INSTALL_APCU=false
|
||||
WORKSPACE_PUID=1000
|
||||
WORKSPACE_PGID=1000
|
||||
WORKSPACE_CHROME_DRIVER_VERSION=2.42
|
||||
|
@ -136,6 +136,7 @@ services:
|
||||
- INSTALL_LIBPNG=${WORKSPACE_INSTALL_LIBPNG}
|
||||
- INSTALL_GRAPHVIZ=${WORKSPACE_INSTALL_GRAPHVIZ}
|
||||
- INSTALL_IONCUBE=${WORKSPACE_INSTALL_IONCUBE}
|
||||
- INSTALL_APCU=${WORKSPACE_INSTALL_APCU}
|
||||
- INSTALL_MYSQL_CLIENT=${WORKSPACE_INSTALL_MYSQL_CLIENT}
|
||||
- INSTALL_PING=${WORKSPACE_INSTALL_PING}
|
||||
- INSTALL_SSHPASS=${WORKSPACE_INSTALL_SSHPASS}
|
||||
|
@ -1338,6 +1338,21 @@ RUN if [ $INSTALL_PHALCON = true ]; then \
|
||||
php -m | grep -q 'phalcon' \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
# APCU:
|
||||
###########################################################################
|
||||
|
||||
ARG INSTALL_APCU=false
|
||||
|
||||
RUN if [ ${INSTALL_APCU} = true ]; then \
|
||||
apt-get update -yqq \
|
||||
&& pecl channel-update pecl.php.net; \
|
||||
pecl install apcu; \
|
||||
echo "extension=apcu.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/apcu.ini; \
|
||||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/apcu.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/50-apcu.ini; \
|
||||
php -m | grep -q 'apcu' \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
USER root
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user