[bitnami/suitecrm] Release 8.9.1-debian-12-r0 (#88270)

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
Bitnami Bot 2025-11-06 19:01:16 +01:00 committed by GitHub
parent e8ed176f33
commit 159b89e9a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 17 additions and 91 deletions

View File

@ -7,13 +7,13 @@ ARG DOWNLOADS_URL="downloads.bitnami.com/files/stacksmith"
ARG TARGETARCH
LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
org.opencontainers.image.created="2025-10-21T11:26:04Z" \
org.opencontainers.image.created="2025-11-06T17:32:23Z" \
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/suitecrm/README.md" \
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/suitecrm" \
org.opencontainers.image.title="suitecrm" \
org.opencontainers.image.vendor="Broadcom, Inc." \
org.opencontainers.image.version="8.9.0"
org.opencontainers.image.version="8.9.1"
ENV OS_ARCH="${TARGETARCH:-amd64}" \
OS_FLAVOUR="debian-12" \
@ -27,12 +27,12 @@ RUN --mount=type=secret,id=downloads_url,env=SECRET_DOWNLOADS_URL \
DOWNLOADS_URL=${SECRET_DOWNLOADS_URL:-${DOWNLOADS_URL}} ; \
mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ || exit 1 ; \
COMPONENTS=( \
"render-template-1.0.9-158-linux-${OS_ARCH}-debian-12" \
"php-8.4.13-6-linux-${OS_ARCH}-debian-12" \
"render-template-1.0.9-159-linux-${OS_ARCH}-debian-12" \
"php-8.4.14-3-linux-${OS_ARCH}-debian-12" \
"apache-2.4.65-1-linux-${OS_ARCH}-debian-12" \
"mysql-client-12.0.2-0-linux-${OS_ARCH}-debian-12" \
"libphp-8.4.13-0-linux-${OS_ARCH}-debian-12" \
"suitecrm-8.9.0-1-linux-${OS_ARCH}-debian-12" \
"libphp-8.4.14-0-linux-${OS_ARCH}-debian-12" \
"suitecrm-8.9.1-0-linux-${OS_ARCH}-debian-12" \
) ; \
for COMPONENT in "${COMPONENTS[@]}"; do \
if [ ! -f "${COMPONENT}.tar.gz" ]; then \
@ -56,9 +56,9 @@ RUN /opt/bitnami/scripts/apache-modphp/postunpack.sh
RUN /opt/bitnami/scripts/suitecrm/postunpack.sh
ENV APACHE_HTTPS_PORT_NUMBER="" \
APACHE_HTTP_PORT_NUMBER="" \
APP_VERSION="8.9.0" \
APP_VERSION="8.9.1" \
BITNAMI_APP_NAME="suitecrm" \
IMAGE_REVISION="4" \
IMAGE_REVISION="0" \
PATH="/opt/bitnami/common/bin:/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/opt/bitnami/apache/bin:/opt/bitnami/mysql/bin:$PATH"
EXPOSE 8080 8443

View File

@ -19,13 +19,7 @@ set -o pipefail
# Enable required Apache modules
apache_enable_module "mpm_prefork_module"
php_version="$("${PHP_BIN_DIR}/php" -v | grep ^PHP | cut -d' ' -f2))"
php_major_version="$(get_sematic_version "$php_version" 1)"
if [[ "$php_major_version" -eq "8" ]]; then
apache_enable_module "php_module" "modules/libphp.so"
else
apache_enable_module "php${php_major_version}_module" "modules/libphp${php_major_version}.so"
fi
apache_enable_module "php_module" "modules/libphp.so"
# Disable incompatible Apache modules
apache_disable_module "mpm_event_module"

View File

@ -23,12 +23,6 @@ elif [[ -f /opt/bitnami/scripts/libmariadb.sh ]]; then
. /opt/bitnami/scripts/libmariadb.sh
fi
# Rewrite env variables if SuiteCRM 7 is detected
if [[ ! -d "${SUITECRM_BASE_DIR}/public" ]]; then
export SUITECRM_CONF_FILE="${SUITECRM_BASE_DIR}/config.php"
export SUITECRM_SILENT_INSTALL_CONF_FILE="${SUITECRM_BASE_DIR}/config_si.php"
fi
########################
# Validate settings in SUITECRM_* env vars
# Globals:
@ -125,35 +119,14 @@ suitecrm_initialize() {
local -r template_dir="${BITNAMI_ROOT_DIR}/scripts/suitecrm/bitnami-templates"
if ! is_boolean_yes "$SUITECRM_SKIP_BOOTSTRAP"; then
# If SuiteCRM 7, use legacy install wizard
if [[ ! -d "${SUITECRM_BASE_DIR}/public" ]]; then
# Render configuration file for silent install ('config_si.php')
(
export url_protocol=http
is_boolean_yes "$SUITECRM_ENABLE_HTTPS" && url_protocol=https
render-template "${template_dir}/config_si.php.tpl" > "$SUITECRM_SILENT_INSTALL_CONF_FILE"
)
web_server_start
suitecrm_7_pass_wizard
# Configure SMTP via application wizard
if ! is_empty_value "$SUITECRM_SMTP_HOST"; then
info "Configuring SMTP"
suitecrm_pass_smtp_wizard
fi
web_server_stop
# Delete configuration file for silent install as it's not needed anymore
rm "$SUITECRM_SILENT_INSTALL_CONF_FILE"
else
web_server_start
suitecrm_pass_wizard
# Configure SMTP via application wizard
if ! is_empty_value "$SUITECRM_SMTP_HOST"; then
info "Configuring SMTP"
suitecrm_pass_smtp_wizard
fi
web_server_stop
web_server_start
suitecrm_pass_wizard
# Configure SMTP via application wizard
if ! is_empty_value "$SUITECRM_SMTP_HOST"; then
info "Configuring SMTP"
suitecrm_pass_smtp_wizard
fi
web_server_stop
else
info "An already initialized SuiteCRM database was provided, configuration will be skipped"
# A very basic 'config.php' will be generated with enough information for the application to be able to connect to the database
@ -389,42 +362,6 @@ suitecrm_pass_wizard() {
suitecrm_execute suitecrm:app:install "${install_args[@]}"
}
########################
# Pass SuiteCRM 7 wizard
# Globals:
# *
# Arguments:
# None
# Returns:
# true if the wizard succeeded, false otherwise
#########################
suitecrm_7_pass_wizard() {
local -r port="${APACHE_HTTP_PORT_NUMBER:-"$APACHE_DEFAULT_HTTP_PORT_NUMBER"}"
local wizard_url curl_output
local -a curl_opts curl_data_opts
local url_protocol=http
info "Running setup wizard"
is_boolean_yes "$SUITECRM_ENABLE_HTTPS" && url_protocol=https
wizard_url="${url_protocol}://127.0.0.1:${port}/install.php?goto=SilentInstall&cli=true"
curl_opts=("--location" "--silent")
curl_data_opts=(
"--data-urlencode" "current_step=8"
"--data-urlencode" "goto=Next"
)
local wizard_exit_code=0
wizard_error() {
error "An error occurred while installing SuiteCRM: ${*}"
wizard_exit_code=1
}
if ! debug_execute curl "${curl_opts[@]}" "${wizard_url}"; then
wizard_error "The wizard could not be accessed"
fi
if ! grep -q "Save user settings" "${SUITECRM_BASE_DIR}/install.log"; then
wizard_error "Installation failed"
fi
return "$wizard_exit_code"
}
########################
# Rebuild SuiteCRM's configuration file
# Globals:

View File

@ -47,9 +47,4 @@ php_conf_set "opcache.enable" "Off"
info "Creating default web server configuration for SuiteCRM"
web_server_validate
# Not moving .htaccess because SuiteCRM generates some of them during installation
# Backward compatibility with SuiteCRM 7
if [[ -d "${SUITECRM_BASE_DIR}/public" ]]; then
ensure_web_server_app_configuration_exists "suitecrm" --type php --apache-move-htaccess "no" --document-root "${BITNAMI_ROOT_DIR}/suitecrm/public"
else
ensure_web_server_app_configuration_exists "suitecrm" --type php --apache-move-htaccess "no"
fi
ensure_web_server_app_configuration_exists "suitecrm" --type php --apache-move-htaccess "no"