diff --git a/.env.example b/.env.example index 620b8c5..5561ca1 100644 --- a/.env.example +++ b/.env.example @@ -286,6 +286,7 @@ PHP_WORKER_INSTALL_IMAGEMAGICK=false PHP_WORKER_IMAGEMAGICK_VERSION=latest PHP_WORKER_INSTALL_GMP=false PHP_WORKER_INSTALL_GNUPG=false +PHP_WORKER_INSTALL_LDAP=false PHP_WORKER_INSTALL_PGSQL=false PHP_WORKER_INSTALL_MONGO=false PHP_WORKER_INSTALL_BCMATH=false @@ -327,6 +328,7 @@ LARAVEL_HORIZON_INSTALL_BZ2=false LARAVEL_HORIZON_INSTALL_GD=false LARAVEL_HORIZON_INSTALL_GMP=false LARAVEL_HORIZON_INSTALL_GNUPG=false +LARAVEL_HORIZON_INSTALL_LDAP=false LARAVEL_HORIZON_INSTALL_IMAGEMAGICK=false LARAVEL_HORIZON_IMAGEMAGICK_VERSION=latest LARAVEL_HORIZON_INSTALL_SOCKETS=false diff --git a/docker-compose.yml b/docker-compose.yml index cbc2379..6c15b9a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -316,6 +316,7 @@ services: - INSTALL_IMAGEMAGICK=${PHP_WORKER_INSTALL_IMAGEMAGICK} - INSTALL_GMP=${PHP_WORKER_INSTALL_GMP} - INSTALL_GNUPG=${PHP_WORKER_INSTALL_GNUPG} + - INSTALL_LDAP=${PHP_WORKER_INSTALL_LDAP} - INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL} - INSTALL_MONGO=${PHP_WORKER_INSTALL_MONGO} - INSTALL_BCMATH=${PHP_WORKER_INSTALL_BCMATH} @@ -359,6 +360,7 @@ services: - INSTALL_GD=${LARAVEL_HORIZON_INSTALL_GD} - INSTALL_GMP=${LARAVEL_HORIZON_INSTALL_GMP} - INSTALL_GNUPG=${LARAVEL_HORIZON_INSTALL_GNUPG} + - INSTALL_LDAP=${LARAVEL_HORIZON_INSTALL_LDAP} - INSTALL_IMAGEMAGICK=${LARAVEL_HORIZON_INSTALL_IMAGEMAGICK} - INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL} - INSTALL_ZIP_ARCHIVE=${LARAVEL_HORIZON_INSTALL_ZIP_ARCHIVE} diff --git a/laravel-horizon/Dockerfile b/laravel-horizon/Dockerfile index a0903d6..8823a02 100644 --- a/laravel-horizon/Dockerfile +++ b/laravel-horizon/Dockerfile @@ -72,6 +72,14 @@ RUN set -eux; if [ ${INSTALL_GNUPG} = true ]; then \ docker-php-ext-enable gnupg; \ fi +#Install LDAP +ARG INSTALL_LDAP=false; +RUN set -eux; if [ ${INSTALL_LDAP} = true ]; then \ + apk add --no-cache --no-progress openldap-dev; \ + docker-php-ext-install ldap; \ + php -m | grep -oiE '^ldap$'; \ + fi + #Install GD package: ARG INSTALL_GD=false RUN if [ ${INSTALL_GD} = true ]; then \ diff --git a/php-worker/Dockerfile b/php-worker/Dockerfile index 9f4bfb2..b901770 100644 --- a/php-worker/Dockerfile +++ b/php-worker/Dockerfile @@ -72,6 +72,14 @@ RUN set -eux; if [ ${INSTALL_GNUPG} = true ]; then \ docker-php-ext-enable gnupg; \ fi +#Install LDAP +ARG INSTALL_LDAP=false; +RUN set -eux; if [ ${INSTALL_LDAP} = true ]; then \ + apk add --no-cache --no-progress openldap-dev; \ + docker-php-ext-install ldap; \ + php -m | grep -oiE '^ldap$'; \ + fi + #Install GD package: ARG INSTALL_GD=false RUN if [ ${INSTALL_GD} = true ]; then \