diff --git a/bitnami/wordpress/7/debian-12/Dockerfile b/bitnami/wordpress/7/debian-12/Dockerfile index d0a7fb12dfcf..30dc1d84dbd0 100644 --- a/bitnami/wordpress/7/debian-12/Dockerfile +++ b/bitnami/wordpress/7/debian-12/Dockerfile @@ -7,7 +7,7 @@ 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="2026-06-01T13:56:16Z" \ + org.opencontainers.image.created="2026-06-02T11:21:17Z" \ org.opencontainers.image.description="Application packaged by Broadcom, Inc." \ org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/wordpress/README.md" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/wordpress" \ @@ -61,8 +61,8 @@ ENV APACHE_HTTPS_PORT_NUMBER="" \ APACHE_HTTP_PORT_NUMBER="" \ APP_VERSION="7.0.0" \ BITNAMI_APP_NAME="wordpress" \ - IMAGE_REVISION="3" \ - LD_LIBRARY_PATH="/opt/bitnami/postgresql/lib:$LD_LIBRARY_PATH" \ + IMAGE_REVISION="4" \ + LD_LIBRARY_PATH="/opt/bitnami/postgresql/lib" \ PATH="/opt/bitnami/wp-cli/bin:/opt/bitnami/common/bin:/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/opt/bitnami/apache/bin:/opt/bitnami/mysql/bin:$PATH" EXPOSE 8080 8443 diff --git a/bitnami/wordpress/7/debian-12/docker-compose.yml b/bitnami/wordpress/7/debian-12/docker-compose.yml index 1f86715a2209..ecfbf4d274ab 100644 --- a/bitnami/wordpress/7/debian-12/docker-compose.yml +++ b/bitnami/wordpress/7/debian-12/docker-compose.yml @@ -23,6 +23,7 @@ services: environment: # ALLOW_EMPTY_PASSWORD is recommended only for development. - ALLOW_EMPTY_PASSWORD=yes + - WORDPRESS_PASSWORD=bitnami - WORDPRESS_DATABASE_HOST=mariadb - WORDPRESS_DATABASE_PORT_NUMBER=3306 - WORDPRESS_DATABASE_USER=bn_wordpress diff --git a/bitnami/wordpress/7/debian-12/rootfs/opt/bitnami/scripts/libwordpress.sh b/bitnami/wordpress/7/debian-12/rootfs/opt/bitnami/scripts/libwordpress.sh index 7d03c7c866a6..689476d0bc78 100644 --- a/bitnami/wordpress/7/debian-12/rootfs/opt/bitnami/scripts/libwordpress.sh +++ b/bitnami/wordpress/7/debian-12/rootfs/opt/bitnami/scripts/libwordpress.sh @@ -126,12 +126,11 @@ wordpress_validate() { fi # Validate credentials + check_empty_value "WORDPRESS_PASSWORD" if is_boolean_yes "${ALLOW_EMPTY_PASSWORD:-}"; then warn "You set the environment variable ALLOW_EMPTY_PASSWORD=${ALLOW_EMPTY_PASSWORD:-}. For safety reasons, do not use this flag in a production environment." else - for empty_env_var in "WORDPRESS_DATABASE_PASSWORD" "WORDPRESS_PASSWORD"; do - is_empty_value "${!empty_env_var}" && print_validation_error "The ${empty_env_var} environment variable is empty or not set. Set the environment variable ALLOW_EMPTY_PASSWORD=yes to allow a blank password. This is only recommended for development environments." - done + is_empty_value "${WORDPRESS_DATABASE_PASSWORD}" && print_validation_error "The WORDPRESS_DATABASE_PASSWORD environment variable is empty or not set. Set the environment variable ALLOW_EMPTY_PASSWORD=yes to allow a blank password. This is only recommended for development environments." fi # Validate SMTP credentials @@ -140,8 +139,8 @@ wordpress_validate() { for empty_env_var in "WORDPRESS_SMTP_USER" "WORDPRESS_SMTP_PASSWORD"; do is_empty_value "${!empty_env_var}" && warn "The ${empty_env_var} environment variable is empty or not set." done - is_empty_value "$WORDPRESS_SMTP_PORT_NUMBER" && print_validation_error "The WORDPRESS_SMTP_PORT_NUMBER environment variable is empty or not set." - ! is_empty_value "$WORDPRESS_SMTP_PORT_NUMBER" && check_valid_port "WORDPRESS_SMTP_PORT_NUMBER" + check_empty_value "WORDPRESS_SMTP_PORT_NUMBER" + check_valid_port "WORDPRESS_SMTP_PORT_NUMBER" ! is_empty_value "$WORDPRESS_SMTP_PROTOCOL" && check_multi_value "WORDPRESS_SMTP_PROTOCOL" "ssl tls" fi @@ -497,7 +496,6 @@ wordpress_conf_set() { local -r key="${1:?key missing}" local -r value="${2:-}" local -r is_literal="${3:-no}" - debug "Setting ${key} to '${value}' in WordPress configuration (literal: ${is_literal})" # Note: Using an empty --url to avoid any failure if the current URL is not properly configured local -a cmd=("wp_execute" "--url=http:" "config" "set" "$key" "$value") if is_boolean_yes "$is_literal"; then diff --git a/bitnami/wordpress/7/debian-12/rootfs/opt/bitnami/scripts/wordpress-env.sh b/bitnami/wordpress/7/debian-12/rootfs/opt/bitnami/scripts/wordpress-env.sh index dae47b7ac628..5a2ac14f8738 100644 --- a/bitnami/wordpress/7/debian-12/rootfs/opt/bitnami/scripts/wordpress-env.sh +++ b/bitnami/wordpress/7/debian-12/rootfs/opt/bitnami/scripts/wordpress-env.sh @@ -153,7 +153,7 @@ export WORDPRESS_ENABLE_XML_RPC="${WORDPRESS_ENABLE_XML_RPC:-no}" # only used du # WordPress credentials export WORDPRESS_USERNAME="${WORDPRESS_USERNAME:-user}" # only used during the first initialization -export WORDPRESS_PASSWORD="${WORDPRESS_PASSWORD:-bitnami}" # only used during the first initialization +export WORDPRESS_PASSWORD="${WORDPRESS_PASSWORD:-}" # only used during the first initialization export WORDPRESS_EMAIL="${WORDPRESS_EMAIL:-user@example.com}" # only used during the first initialization export WORDPRESS_FIRST_NAME="${WORDPRESS_FIRST_NAME:-UserName}" # only used during the first initialization export WORDPRESS_LAST_NAME="${WORDPRESS_LAST_NAME:-LastName}" # only used during the first initialization diff --git a/bitnami/wordpress/README.md b/bitnami/wordpress/README.md index 43a7091b52b6..c02473effe71 100644 --- a/bitnami/wordpress/README.md +++ b/bitnami/wordpress/README.md @@ -103,7 +103,7 @@ The following tables list the main variables you can set. | `WORDPRESS_ENABLE_REVERSE_PROXY` | Enable WordPress support for reverse proxy headers | `no` | | `WORDPRESS_ENABLE_XML_RPC` | Enable the WordPress XML-RPC endpoint | `no` | | `WORDPRESS_USERNAME` | WordPress user name. | `user` | -| `WORDPRESS_PASSWORD` | WordPress user password. | `bitnami` | +| `WORDPRESS_PASSWORD` | WordPress user password. | `nil` | | `WORDPRESS_EMAIL` | WordPress user e-mail address. | `user@example.com` | | `WORDPRESS_FIRST_NAME` | WordPress user first name. | `UserName` | | `WORDPRESS_LAST_NAME` | WordPress user last name. | `LastName` | diff --git a/bitnami/wordpress/docker-compose-mysql.yml b/bitnami/wordpress/docker-compose-mysql.yml index 9908f5959db1..5e60b1835c34 100644 --- a/bitnami/wordpress/docker-compose-mysql.yml +++ b/bitnami/wordpress/docker-compose-mysql.yml @@ -21,6 +21,7 @@ services: - mysql environment: - ALLOW_EMPTY_PASSWORD=yes + - WORDPRESS_PASSWORD=bitnami - WORDPRESS_DATABASE_HOST=mysql - WORDPRESS_DATABASE_PORT_NUMBER=3306 - WORDPRESS_DATABASE_USER=bn_wordpress diff --git a/bitnami/wordpress/docker-compose.yml b/bitnami/wordpress/docker-compose.yml index 1f86715a2209..ecfbf4d274ab 100644 --- a/bitnami/wordpress/docker-compose.yml +++ b/bitnami/wordpress/docker-compose.yml @@ -23,6 +23,7 @@ services: environment: # ALLOW_EMPTY_PASSWORD is recommended only for development. - ALLOW_EMPTY_PASSWORD=yes + - WORDPRESS_PASSWORD=bitnami - WORDPRESS_DATABASE_HOST=mariadb - WORDPRESS_DATABASE_PORT_NUMBER=3306 - WORDPRESS_DATABASE_USER=bn_wordpress