Update base images to Bullseye

In Bullseye, libldap-common is no longer a dependency of libldap2-dev,
but it's still required for LDAPS connections
This commit is contained in:
Andrés Maldonado
2024-10-30 15:06:28 +01:00
parent 1bb488f54c
commit 441d19e301
9 changed files with 35 additions and 27 deletions

View File

@@ -59,6 +59,7 @@ RUN apt-get update -y \
libjpeg62-turbo-dev \ libjpeg62-turbo-dev \
libkrb5-dev \ libkrb5-dev \
libldap2-dev \ libldap2-dev \
libldap-common \
libpng-dev \ libpng-dev \
libpq-dev \ libpq-dev \
libxml2-dev \ libxml2-dev \

View File

@@ -1,7 +1,7 @@
ARG ARCH= ARG ARCH=
# Use an image like PHP_BASE_IMAGE=x.y-apache-buster # Use an image like PHP_BASE_IMAGE=x.y-apache-buster
FROM ${ARCH}php:7.4-apache-buster FROM ${ARCH}php:7.4-apache-bullseye
# Credit/Initial maintainer: Garcia MICHEL <garcia@soamichel.fr> # Credit/Initial maintainer: Garcia MICHEL <garcia@soamichel.fr>
# Modified according to the GPL license by developers of the Dolibarr community: # Modified according to the GPL license by developers of the Dolibarr community:
@@ -59,6 +59,7 @@ RUN apt-get update -y \
libjpeg62-turbo-dev \ libjpeg62-turbo-dev \
libkrb5-dev \ libkrb5-dev \
libldap2-dev \ libldap2-dev \
libldap-common \
libpng-dev \ libpng-dev \
libpq-dev \ libpq-dev \
libxml2-dev \ libxml2-dev \

View File

@@ -1,7 +1,7 @@
ARG ARCH= ARG ARCH=
# Use an image like PHP_BASE_IMAGE=x.y-apache-buster # Use an image like PHP_BASE_IMAGE=x.y-apache-buster
FROM ${ARCH}php:8.1-apache-buster FROM ${ARCH}php:8.1-apache-bullseye
# Credit/Initial maintainer: Garcia MICHEL <garcia@soamichel.fr> # Credit/Initial maintainer: Garcia MICHEL <garcia@soamichel.fr>
# Modified according to the GPL license by developers of the Dolibarr community: # Modified according to the GPL license by developers of the Dolibarr community:
@@ -59,6 +59,7 @@ RUN apt-get update -y \
libjpeg62-turbo-dev \ libjpeg62-turbo-dev \
libkrb5-dev \ libkrb5-dev \
libldap2-dev \ libldap2-dev \
libldap-common \
libpng-dev \ libpng-dev \
libpq-dev \ libpq-dev \
libxml2-dev \ libxml2-dev \

View File

@@ -1,7 +1,7 @@
ARG ARCH= ARG ARCH=
# Use an image like PHP_BASE_IMAGE=x.y-apache-buster # Use an image like PHP_BASE_IMAGE=x.y-apache-buster
FROM ${ARCH}php:8.1-apache-buster FROM ${ARCH}php:8.1-apache-bullseye
# Credit/Initial maintainer: Garcia MICHEL <garcia@soamichel.fr> # Credit/Initial maintainer: Garcia MICHEL <garcia@soamichel.fr>
# Modified according to the GPL license by developers of the Dolibarr community: # Modified according to the GPL license by developers of the Dolibarr community:
@@ -59,6 +59,7 @@ RUN apt-get update -y \
libjpeg62-turbo-dev \ libjpeg62-turbo-dev \
libkrb5-dev \ libkrb5-dev \
libldap2-dev \ libldap2-dev \
libldap-common \
libpng-dev \ libpng-dev \
libpq-dev \ libpq-dev \
libxml2-dev \ libxml2-dev \

View File

@@ -1,7 +1,7 @@
ARG ARCH= ARG ARCH=
# Use an image like PHP_BASE_IMAGE=x.y-apache-buster # Use an image like PHP_BASE_IMAGE=x.y-apache-buster
FROM ${ARCH}php:8.1-apache-buster FROM ${ARCH}php:8.1-apache-bullseye
# Credit/Initial maintainer: Garcia MICHEL <garcia@soamichel.fr> # Credit/Initial maintainer: Garcia MICHEL <garcia@soamichel.fr>
# Modified according to the GPL license by developers of the Dolibarr community: # Modified according to the GPL license by developers of the Dolibarr community:
@@ -59,6 +59,7 @@ RUN apt-get update -y \
libjpeg62-turbo-dev \ libjpeg62-turbo-dev \
libkrb5-dev \ libkrb5-dev \
libldap2-dev \ libldap2-dev \
libldap-common \
libpng-dev \ libpng-dev \
libpq-dev \ libpq-dev \
libxml2-dev \ libxml2-dev \

View File

@@ -1,7 +1,7 @@
ARG ARCH= ARG ARCH=
# Use an image like PHP_BASE_IMAGE=x.y-apache-buster # Use an image like PHP_BASE_IMAGE=x.y-apache-buster
FROM ${ARCH}php:8.2-apache-buster FROM ${ARCH}php:8.2-apache-bullseye
# Credit/Initial maintainer: Garcia MICHEL <garcia@soamichel.fr> # Credit/Initial maintainer: Garcia MICHEL <garcia@soamichel.fr>
# Modified according to the GPL license by developers of the Dolibarr community: # Modified according to the GPL license by developers of the Dolibarr community:
@@ -59,6 +59,7 @@ RUN apt-get update -y \
libjpeg62-turbo-dev \ libjpeg62-turbo-dev \
libkrb5-dev \ libkrb5-dev \
libldap2-dev \ libldap2-dev \
libldap-common \
libpng-dev \ libpng-dev \
libpq-dev \ libpq-dev \
libxml2-dev \ libxml2-dev \

View File

@@ -1,7 +1,7 @@
ARG ARCH= ARG ARCH=
# Use an image like PHP_BASE_IMAGE=x.y-apache-buster # Use an image like PHP_BASE_IMAGE=x.y-apache-buster
FROM ${ARCH}php:8.2-apache-buster FROM ${ARCH}php:8.2-apache-bullseye
# Credit/Initial maintainer: Garcia MICHEL <garcia@soamichel.fr> # Credit/Initial maintainer: Garcia MICHEL <garcia@soamichel.fr>
# Modified according to the GPL license by developers of the Dolibarr community: # Modified according to the GPL license by developers of the Dolibarr community:
@@ -59,6 +59,7 @@ RUN apt-get update -y \
libjpeg62-turbo-dev \ libjpeg62-turbo-dev \
libkrb5-dev \ libkrb5-dev \
libldap2-dev \ libldap2-dev \
libldap-common \
libpng-dev \ libpng-dev \
libpq-dev \ libpq-dev \
libxml2-dev \ libxml2-dev \

View File

@@ -1,7 +1,7 @@
ARG ARCH= ARG ARCH=
# Use an image like PHP_BASE_IMAGE=x.y-apache-buster # Use an image like PHP_BASE_IMAGE=x.y-apache-buster
FROM ${ARCH}php:8.2-apache-buster FROM ${ARCH}php:8.2-apache-bullseye
# Credit/Initial maintainer: Garcia MICHEL <garcia@soamichel.fr> # Credit/Initial maintainer: Garcia MICHEL <garcia@soamichel.fr>
# Modified according to the GPL license by developers of the Dolibarr community: # Modified according to the GPL license by developers of the Dolibarr community:
@@ -59,6 +59,7 @@ RUN apt-get update -y \
libjpeg62-turbo-dev \ libjpeg62-turbo-dev \
libkrb5-dev \ libkrb5-dev \
libldap2-dev \ libldap2-dev \
libldap-common \
libpng-dev \ libpng-dev \
libpq-dev \ libpq-dev \
libxml2-dev \ libxml2-dev \

View File

@@ -36,11 +36,11 @@ for dolibarrVersion in "${DOLIBARR_VERSIONS[@]}"; do
# Mapping PHP version according to Dolibarr version (See https://wiki.dolibarr.org/index.php/Versions) # Mapping PHP version according to Dolibarr version (See https://wiki.dolibarr.org/index.php/Versions)
# Regarding PHP Supported version : https://www.php.net/supported-versions.php # Regarding PHP Supported version : https://www.php.net/supported-versions.php
if [ "${dolibarrVersion}" = "develop" ] || [ "${dolibarrMajor}" -ge "19" ] || [ "${dolibarrMajor}" -ge "20" ] || [ "${dolibarrMajor}" -ge "21" ]; then if [ "${dolibarrVersion}" = "develop" ] || [ "${dolibarrMajor}" -ge "19" ] || [ "${dolibarrMajor}" -ge "20" ] || [ "${dolibarrMajor}" -ge "21" ]; then
php_base_images=( "8.2-apache-buster" ) php_base_images=( "8.2-apache-bullseye" )
elif [ "${dolibarrMajor}" -ge "16" ]; then elif [ "${dolibarrMajor}" -ge "16" ]; then
php_base_images=( "8.1-apache-buster" ) php_base_images=( "8.1-apache-bullseye" )
else else
php_base_images=( "7.4-apache-buster" ) php_base_images=( "7.4-apache-bullseye" )
fi fi
for php_base_image in "${php_base_images[@]}"; do for php_base_image in "${php_base_images[@]}"; do