From 35081fd9be9ed56d80b73eac0dc1638ad84a5ea9 Mon Sep 17 00:00:00 2001 From: Shao Yu Lung Date: Wed, 17 Jun 2020 00:05:03 +0800 Subject: [PATCH] support php-xmlrpc extension --- docker-compose.yml | 3 +++ env-example | 3 +++ php-fpm/Dockerfile | 10 ++++++++++ php-worker/Dockerfile | 10 ++++++++++ workspace/Dockerfile | 10 ++++++++++ 5 files changed, 36 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index f6c63873..267a1f28 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -130,6 +130,7 @@ services: - INSTALL_YAML=${WORKSPACE_INSTALL_YAML} - INSTALL_MAILPARSE=${WORKSPACE_INSTALL_MAILPARSE} - INSTALL_GIT_PROMPT=${WORKSPACE_INSTALL_GIT_PROMPT} + - INSTALL_XMLRPC=${WORKSPACE_INSTALL_XMLRPC} - PUID=${WORKSPACE_PUID} - PGID=${WORKSPACE_PGID} - CHROME_DRIVER_VERSION=${WORKSPACE_CHROME_DRIVER_VERSION} @@ -236,6 +237,7 @@ services: - INSTALL_FFMPEG=${PHP_FPM_FFMPEG} - INSTALL_WKHTMLTOPDF=${PHP_FPM_INSTALL_WKHTMLTOPDF} - INSTALL_XHPROF=${PHP_FPM_INSTALL_XHPROF} + - INSTALL_XMLRPC=${PHP_FPM_INSTALL_XMLRPC} - PUID=${PHP_FPM_PUID} - PGID=${PHP_FPM_PGID} - LOCALE=${PHP_FPM_DEFAULT_LOCALE} @@ -291,6 +293,7 @@ services: - INSTALL_FFMPEG=${PHP_WORKER_INSTALL_FFMPEG} - INSTALL_REDIS=${PHP_WORKER_INSTALL_REDIS} - INSTALL_IMAP=${PHP_WORKER_INSTALL_IMAP} + - INSTALL_XMLRPC=${PHP_WORKER_INSTALL_XMLRPC} - PUID=${PHP_WORKER_PUID} - PGID=${PHP_WORKER_PGID} volumes: diff --git a/env-example b/env-example index 83612911..44c087b6 100644 --- a/env-example +++ b/env-example @@ -158,6 +158,7 @@ WORKSPACE_INSTALL_INOTIFY=false WORKSPACE_INSTALL_FSWATCH=false WORKSPACE_INSTALL_YAML=false WORKSPACE_INSTALL_MAILPARSE=false +WORKSPACE_INSTALL_XMLRPC=false WORKSPACE_PUID=1000 WORKSPACE_PGID=1000 WORKSPACE_CHROME_DRIVER_VERSION=2.42 @@ -219,6 +220,7 @@ PHP_FPM_INSTALL_FAKETIME=false PHP_FPM_INSTALL_IONCUBE=false PHP_FPM_INSTALL_RDKAFKA=false PHP_FPM_INSTALL_GETTEXT=false +PHP_FPM_INSTALL_XMLRPC=false PHP_FPM_FAKETIME=-0 PHP_FPM_INSTALL_APCU=false PHP_FPM_INSTALL_CACHETOOL=false @@ -258,6 +260,7 @@ PHP_WORKER_INSTALL_CASSANDRA=false PHP_WORKER_INSTALL_GEARMAN=false PHP_WORKER_INSTALL_REDIS=false PHP_WORKER_INSTALL_IMAP=false +PHP_WORKER_INSTALL_XMLRPC PHP_WORKER_PUID=1000 PHP_WORKER_PGID=1000 diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index b7cd3208..7fc0095c 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -906,6 +906,16 @@ RUN if [ ${INSTALL_CACHETOOL} = true ]; then \ mv cachetool.phar /usr/local/bin/cachetool \ ;fi +########################################################################### +# XMLRPC: +########################################################################### + +ARG INSTALL_XMLRPC=false + +RUN if [ ${INSTALL_XMLRPC} = true ]; then \ + docker-php-ext-install xmlrpc \ +;fi + ########################################################################### # Check PHP version: ########################################################################### diff --git a/php-worker/Dockerfile b/php-worker/Dockerfile index f3cd1470..c13e2456 100644 --- a/php-worker/Dockerfile +++ b/php-worker/Dockerfile @@ -281,6 +281,16 @@ RUN if [ ${INSTALL_IMAP} = true ]; then \ docker-php-ext-install imap \ ;fi +########################################################################### +# XMLRPC: +########################################################################### + +ARG INSTALL_XMLRPC=false + +RUN if [ ${INSTALL_XMLRPC} = true ]; then \ + docker-php-ext-install xmlrpc \ +;fi + # #-------------------------------------------------------------------------- # Optional Supervisord Configuration diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 055a8822..5bee6cdb 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -1322,6 +1322,16 @@ RUN if [ ${INSTALL_GIT_PROMPT} = true ]; then \ rm /tmp/git-prompt \ ;fi +########################################################################### +# XMLRPC: +########################################################################### + +ARG INSTALL_XMLRPC=false + +RUN if [ ${INSTALL_XMLRPC} = true ]; then \ + docker-php-ext-install xmlrpc \ +;fi + ########################################################################### # Check PHP version: ###########################################################################