diff --git a/.env.example b/.env.example index bad1453..37a4646 100644 --- a/.env.example +++ b/.env.example @@ -198,6 +198,7 @@ WORKSPACE_INSTALL_PROTOC=false WORKSPACE_INSTALL_PHPDECIMAL=false WORKSPACE_INSTALL_ZOOKEEPER=false WORKSPACE_INSTALL_SSDB=false +WORKSPACE_INSTALL_TRADER=false WORKSPACE_PROTOC_VERSION=latest WORKSPACE_INSTALL_MEMCACHED=true @@ -262,6 +263,7 @@ PHP_FPM_INSTALL_WKHTMLTOPDF=false PHP_FPM_INSTALL_PHPDECIMAL=false PHP_FPM_INSTALL_ZOOKEEPER=false PHP_FPM_INSTALL_SSDB=false +PHP_FPM_INSTALL_TRADER=false PHP_FPM_FFMPEG=false PHP_FPM_AUDIOWAVEFORM=false PHP_FPM_ADDITIONAL_LOCALES="en_US.UTF-8 es_ES.UTF-8 fr_FR.UTF-8" diff --git a/docker-compose.yml b/docker-compose.yml index 0538fe9..295be6c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -166,6 +166,7 @@ services: - INSTALL_PHPDECIMAL=${WORKSPACE_INSTALL_PHPDECIMAL} - INSTALL_ZOOKEEPER=${WORKSPACE_INSTALL_ZOOKEEPER} - INSTALL_SSDB=${WORKSPACE_INSTALL_SSDB} + - INSTALL_TRADER=${WORKSPACE_INSTALL_TRADER} - PROTOC_VERSION=${WORKSPACE_PROTOC_VERSION} - INSTALL_DOCKER_CLIENT=${WORKSPACE_INSTALL_DOCKER_CLIENT} - INSTALL_MEMCACHED=${WORKSPACE_INSTALL_MEMCACHED} @@ -267,6 +268,7 @@ services: - INSTALL_PHPDECIMAL=${PHP_FPM_INSTALL_PHPDECIMAL} - INSTALL_ZOOKEEPER=${PHP_FPM_INSTALL_ZOOKEEPER} - INSTALL_SSDB=${PHP_FPM_INSTALL_SSDB} + - INSTALL_TRADER=${PHP_FPM_INSTALL_TRADER} - DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL=${PHP_DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL} - PUID=${PHP_FPM_PUID} - PGID=${PHP_FPM_PGID} diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index d6638a9..ab63bcc 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -1029,6 +1029,19 @@ RUN if [ ${INSTALL_WKHTMLTOPDF} = true ]; then \ && apt -f install \ ;fi +##################################### +# trader: +##################################### + +USER root + +ARG INSTALL_TRADER=false + +RUN if [ ${INSTALL_TRADER} = true ]; then \ + pecl install trader \ + && echo "extension=trader.so" >> $PHP_INI_DIR/conf.d/trader.ini \ +;fi + ########################################################################### # Mailparse extension: ########################################################################### diff --git a/workspace/Dockerfile b/workspace/Dockerfile index d017a9d..a44f27c 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -1668,6 +1668,21 @@ RUN set -xe; \ && rm /tmp/ssdb-client-php.tar.gz \ && docker-php-ext-enable ssdb \ ;fi + +##################################### +# trader: +##################################### + +USER root + +ARG INSTALL_TRADER=false + +RUN if [ ${INSTALL_TRADER} = true ]; then \ + pecl install trader \ + && echo "extension=trader.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/trader.ini \ + && ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/trader.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-trader.ini \ +;fi + # #-------------------------------------------------------------------------- # Final Touch