Skip to content

Commit

Permalink
Ldap enabled images (Dolibarr#11)
Browse files Browse the repository at this point in the history
enable LDAP extension in php
  • Loading branch information
fpeyraud authored and tuxgasy committed Mar 22, 2019
1 parent c71417f commit ee0c925
Show file tree
Hide file tree
Showing 16 changed files with 80 additions and 16 deletions.
6 changes: 5 additions & 1 deletion Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down
6 changes: 5 additions & 1 deletion images/5.0.7-php7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down
6 changes: 5 additions & 1 deletion images/5.0.7-php7.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down
6 changes: 5 additions & 1 deletion images/5.0.7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down
6 changes: 5 additions & 1 deletion images/6.0.8-php7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down
6 changes: 5 additions & 1 deletion images/6.0.8-php7.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down
6 changes: 5 additions & 1 deletion images/6.0.8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down
6 changes: 5 additions & 1 deletion images/7.0.5-php7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down
6 changes: 5 additions & 1 deletion images/7.0.5-php7.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down
6 changes: 5 additions & 1 deletion images/7.0.5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down
6 changes: 5 additions & 1 deletion images/8.0.4-php7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down
6 changes: 5 additions & 1 deletion images/8.0.4-php7.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down
6 changes: 5 additions & 1 deletion images/8.0.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down
6 changes: 5 additions & 1 deletion images/9.0.0-php7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down
6 changes: 5 additions & 1 deletion images/9.0.0-php7.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down
6 changes: 5 additions & 1 deletion images/9.0.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ENV DOLI_DB_NAME dolidb
ENV DOLI_ADMIN_LOGIN admin
ENV DOLI_ADMIN_PASSWORD admin
ENV DOLI_URL_ROOT 'http://localhost'
ENV DOLI_NOCSRFCHECK 0

ENV WWW_USER_ID 33
ENV WWW_GROUP_ID 33
Expand All @@ -24,12 +25,15 @@ RUN apt-get update -q && apt-get upgrade -yq \
&& apt-get install -yq \
libpng-dev \
libjpeg-dev \
libldap2-dev \
libxml2-dev \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip
&& docker-php-ext-install mysqli pdo pdo_mysql gd soap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap

# Get Dolibarr
ADD https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip /tmp/dolibarr.zip
Expand Down

0 comments on commit ee0c925

Please sign in to comment.