From aa84dd861636e191463fe009267a8365e0100cfe Mon Sep 17 00:00:00 2001 From: vladyslavstartsev Date: Tue, 21 Aug 2018 14:01:12 +0300 Subject: [PATCH] added ext-gmp to workspace container (#1762) --- docker-compose.yml | 1 + env-example | 1 + workspace/Dockerfile | 14 ++++++++++++++ 3 files changed, 16 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 9541eb49..aa7badf1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -52,6 +52,7 @@ services: - INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG} - INSTALL_PHPDBG=${WORKSPACE_INSTALL_PHPDBG} - INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE} + - INSTALL_GMP=${WORKSPACE_INSTALL_GMP} - INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP} - INSTALL_LDAP=${WORKSPACE_INSTALL_LDAP} - INSTALL_IMAP=${WORKSPACE_INSTALL_IMAP} diff --git a/env-example b/env-example index 0b727829..6378c0b6 100644 --- a/env-example +++ b/env-example @@ -89,6 +89,7 @@ WORKSPACE_INSTALL_SUBVERSION=false WORKSPACE_INSTALL_XDEBUG=false WORKSPACE_INSTALL_PHPDBG=false WORKSPACE_INSTALL_LDAP=false +WORKSPACE_INSTALL_GMP=false WORKSPACE_INSTALL_SOAP=false WORKSPACE_INSTALL_IMAP=false WORKSPACE_INSTALL_MONGO=false diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 2a639f11..0030d953 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -180,6 +180,20 @@ RUN if [ ${INSTALL_DRUSH} = true ]; then \ USER root +ARG INSTALL_GMP=false +ARG PHP_VERSION=${PHP_VERSION} + +RUN if [ ${INSTALL_GMP} = true ]; then \ + # Install the PHP SOAP extension + apt-get -y install php${PHP_VERSION}-gmp \ +;fi + +########################################################################### +# SOAP: +########################################################################### + +USER root + ARG INSTALL_SOAP=false RUN if [ ${INSTALL_SOAP} = true ]; then \