From 04770bc4ec152a688556023debda9dcc4f18cf42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Mathieu?= Date: Fri, 29 Sep 2017 14:56:28 +0200 Subject: [PATCH] Add PHP LDAP extension if needed --- docker-compose.yml | 1 + env-example | 1 + workspace/Dockerfile-70 | 13 +++++++++++++ workspace/Dockerfile-71 | 13 +++++++++++++ 4 files changed, 28 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 1940b86..f3f34e2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,6 +18,7 @@ services: - INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG} - INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE} - INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP} + - INSTALL_LDAP=${WORKSPACE_INSTALL_LDAP} - INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO} - INSTALL_PHPREDIS=${WORKSPACE_INSTALL_PHPREDIS} - INSTALL_MSSQL=${WORKSPACE_INSTALL_MSSQL} diff --git a/env-example b/env-example index b026ae7..2fd338b 100644 --- a/env-example +++ b/env-example @@ -30,6 +30,7 @@ PHP_INTERPRETER=php-fpm ### WORKSPACE ########################################################################################################## WORKSPACE_INSTALL_XDEBUG=false +WORKSPACE_INSTALL_LDAP=false WORKSPACE_INSTALL_SOAP=false WORKSPACE_INSTALL_MONGO=false WORKSPACE_INSTALL_PHPREDIS=false diff --git a/workspace/Dockerfile-70 b/workspace/Dockerfile-70 index 543eaf9..819d88d 100644 --- a/workspace/Dockerfile-70 +++ b/workspace/Dockerfile-70 @@ -69,6 +69,19 @@ RUN if [ ${INSTALL_SOAP} = true ]; then \ apt-get -y install libxml2-dev php7.0-soap \ ;fi +##################################### +# LDAP: +##################################### + +ARG INSTALL_LDAP=false +ENV INSTALL_LDAP ${INSTALL_LDAP} + +RUN if [ ${INSTALL_LDAP} = true ]; then \ + apt-get update -yqq && \ + apt-get install -y libldap2-dev && \ + apt-get install -y php7.0-ldap \ +;fi + ##################################### # Set Timezone ##################################### diff --git a/workspace/Dockerfile-71 b/workspace/Dockerfile-71 index 42a3a23..383689d 100644 --- a/workspace/Dockerfile-71 +++ b/workspace/Dockerfile-71 @@ -69,6 +69,19 @@ RUN if [ ${INSTALL_SOAP} = true ]; then \ apt-get -y install libxml2-dev php7.1-soap \ ;fi +##################################### +# LDAP: +##################################### + +ARG INSTALL_LDAP=false +ENV INSTALL_LDAP ${INSTALL_LDAP} + +RUN if [ ${INSTALL_LDAP} = true ]; then \ + apt-get update -yqq && \ + apt-get install -y libldap2-dev && \ + apt-get install -y php7.1-ldap \ +;fi + ##################################### # Set Timezone #####################################