5.7.1-debian-10-r24 release

This commit is contained in:
Bitnami Bot
2021-05-07 16:00:04 +00:00
parent 5b3386a650
commit 2df69badd5
7 changed files with 24 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ ENV HOME="/" \
COPY prebuildfs /
# Install required system packages and dependencies
RUN install_packages acl ca-certificates curl gzip less libaudit1 libbsd0 libbz2-1.0 libc6 libcap-ng0 libcom-err2 libcurl4 libexpat1 libffi6 libfftw3-double3 libfontconfig1 libfreetype6 libgcc1 libgcrypt20 libgeoip1 libglib2.0-0 libgmp10 libgnutls30 libgomp1 libgpg-error0 libgssapi-krb5-2 libhogweed4 libicu63 libidn2-0 libjemalloc2 libjpeg62-turbo libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblcms2-2 libldap-2.4-2 liblqr-1-0 libltdl7 liblzma5 libmagickcore-6.q16-6 libmagickwand-6.q16-6 libmcrypt4 libmemcached11 libmemcachedutil2 libncurses6 libnettle6 libnghttp2-14 libonig5 libp11-kit0 libpam0g libpcre3 libpng16-16 libpq5 libpsl5 libreadline7 librtmp1 libsasl2-2 libsodium23 libsqlite3-0 libssh2-1 libssl1.1 libstdc++6 libsybdb5 libtasn1-6 libtidy5deb1 libtinfo6 libunistring2 libuuid1 libwebp6 libx11-6 libxau6 libxcb1 libxdmcp6 libxext6 libxml2 libxslt1.1 libzip4 procps tar zlib1g
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "php" "7.4.18-0" --checksum 09470a7be5514796c09044b0c2d60fc8c1eeee88daf197dcc9f3e47de9802da6
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "php" "7.4.19-0" --checksum a06427120c60a05308a7f06af69397a5f2bd940dc71ad30e2a92550f7f68a6ae
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wp-cli" "2.4.0-2" --checksum 33c3b53e87e9e433291ac3511e68263c80b43aa4de3dead9502934f506b7f2e6
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "nginx" "1.19.10-2" --checksum a3b7f2f5a8ec3c8c7643c2b93979d2b109573b64d7e0eec9df1f19768bcb0bba
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "mysql-client" "10.3.28-0" --checksum 9398376ca9e2033d5bc193232e8aa9b57d91d4ccf06fa67bfa0d30ef36e44c25
@@ -20,13 +20,13 @@ RUN chmod g+rwX /opt/bitnami
COPY rootfs /
RUN /opt/bitnami/scripts/mysql-client/postunpack.sh
RUN /opt/bitnami/scripts/php/postunpack.sh
RUN /opt/bitnami/scripts/nginx/postunpack.sh
RUN /opt/bitnami/scripts/php/postunpack.sh
RUN /opt/bitnami/scripts/nginx-php-fpm/postunpack.sh
RUN /opt/bitnami/scripts/wordpress/postunpack.sh
ENV ALLOW_EMPTY_PASSWORD="no" \
BITNAMI_APP_NAME="wordpress-nginx" \
BITNAMI_IMAGE_VERSION="5.7.1-debian-10-r23" \
BITNAMI_IMAGE_VERSION="5.7.1-debian-10-r24" \
MARIADB_HOST="mariadb" \
MARIADB_PORT_NUMBER="3306" \
MARIADB_ROOT_PASSWORD="" \

View File

@@ -22,10 +22,10 @@
},
"php": {
"arch": "amd64",
"digest": "09470a7be5514796c09044b0c2d60fc8c1eeee88daf197dcc9f3e47de9802da6",
"digest": "a06427120c60a05308a7f06af69397a5f2bd940dc71ad30e2a92550f7f68a6ae",
"distro": "debian-10",
"type": "NAMI",
"version": "7.4.18-0"
"version": "7.4.19-0"
},
"render-template": {
"arch": "amd64",

View File

@@ -409,6 +409,10 @@ wp_execute_print_output() {
# Avoid creating unnecessary cache files at initialization time
local -a env=("env" "WP_CLI_CONFIG_PATH=${WORDPRESS_CLI_CONF_FILE}" "WP_CLI_CACHE_DIR=/dev/null")
local -a cmd=("${PHP_BIN_DIR}/php" "${WORDPRESS_CLI_BIN_DIR}/wp-cli.phar" "$@")
# Allow to specify extra CLI flags, but ensure they are added last
local -a wp_extra_cli_flags
read -r -a wp_extra_cli_flags <<< "$WORDPRESS_EXTRA_CLI_ARGS"
[[ "${#wp_extra_cli_flags[@]}" -gt 0 ]] && cmd+=("${wp_extra_cli_flags[@]}")
# Run as web server user to avoid having to change permissions/ownership afterwards
if am_i_root; then
gosu "$WEB_SERVER_DAEMON_USER" "${env[@]}" "${cmd[@]}"

View File

@@ -31,6 +31,7 @@ wordpress_env_vars=(
WORDPRESS_TABLE_PREFIX
WORDPRESS_PLUGINS
WORDPRESS_EXTRA_INSTALL_ARGS
WORDPRESS_EXTRA_CLI_ARGS
WORDPRESS_EXTRA_WP_CONFIG_CONTENT
WORDPRESS_SKIP_BOOTSTRAP
WORDPRESS_AUTO_UPDATE_LEVEL
@@ -115,6 +116,7 @@ export WORDPRESS_RESET_DATA_PERMISSIONS="${WORDPRESS_RESET_DATA_PERMISSIONS:-no}
export WORDPRESS_TABLE_PREFIX="${WORDPRESS_TABLE_PREFIX:-wp_}" # only used during the first initialization
export WORDPRESS_PLUGINS="${WORDPRESS_PLUGINS:-none}" # only used during the first initialization
export WORDPRESS_EXTRA_INSTALL_ARGS="${WORDPRESS_EXTRA_INSTALL_ARGS:-}" # only used during the first initialization
export WORDPRESS_EXTRA_CLI_ARGS="${WORDPRESS_EXTRA_CLI_ARGS:-}" # only used during the first initialization
export WORDPRESS_EXTRA_WP_CONFIG_CONTENT="${WORDPRESS_EXTRA_WP_CONFIG_CONTENT:-}" # only used during the first initialization
WORDPRESS_SKIP_BOOTSTRAP="${WORDPRESS_SKIP_BOOTSTRAP:-"${WORDPRESS_SKIP_INSTALL:-}"}"
export WORDPRESS_SKIP_BOOTSTRAP="${WORDPRESS_SKIP_BOOTSTRAP:-no}" # only used during the first initialization

View File

@@ -1,6 +1,8 @@
#!/bin/bash
export WP_CLI_CONFIG_PATH="{{WORDPRESS_CLI_CONF_FILE}}"
export WP_CLI_CACHE_DIR="{{WORDPRESS_CLI_BASE_DIR}}/.cache"
export WP_CLI_PACKAGES_DIR="{{WORDPRESS_CLI_BASE_DIR}}/.packages"
export WP_CLI_PHP_USED="{{PHP_BIN_DIR}}/php"
command -v less > /dev/null || export PAGER=cat

View File

@@ -30,10 +30,15 @@ set -o pipefail
# Ensure the WordPress base directory exists and has proper permissions
info "Configuring file permissions for WordPress"
ensure_user_exists "$WEB_SERVER_DAEMON_USER" --group "$WEB_SERVER_DAEMON_GROUP"
# Some directories are needed for wp-cli to be able to install languages/plugins/etc as a non-root user
# However they are not included in the WordPress source tarball, so we create them at this point with proper ownership
# All of them are used by different wp-cli commands, such as 'wp language', 'wp plugin', or 'wp media', amongst others
for dir in "$WORDPRESS_BASE_DIR" "$WORDPRESS_VOLUME_DIR" "${WORDPRESS_BASE_DIR}/wp-content/languages" "${WORDPRESS_BASE_DIR}/wp-content/upgrade" "${WORDPRESS_BASE_DIR}/wp-content/uploads"; do
declare -a writable_dirs=(
"$WORDPRESS_BASE_DIR" "$WORDPRESS_VOLUME_DIR"
# These directories are needed for wp-cli to be able to install languages/plugins/packages/etc as a non-root user
# However they are not included in the WordPress source tarball, so we create them at this point with proper ownership
# All of them are used by different wp-cli commands, such as 'wp language', 'wp plugin', or 'wp media', amongst others
"${WORDPRESS_BASE_DIR}/wp-content/languages" "${WORDPRESS_BASE_DIR}/wp-content/upgrade" "${WORDPRESS_BASE_DIR}/wp-content/uploads"
"${WORDPRESS_CLI_BASE_DIR}/.cache" "${WORDPRESS_CLI_BASE_DIR}/.packages"
)
for dir in "${writable_dirs[@]}"; do
ensure_dir_exists "$dir"
# Use daemon:root ownership for compatibility when running as a non-root user
configure_permissions_ownership "$dir" -d "g+rwx" -f "g+rw" -u "$WEB_SERVER_DAEMON_USER" -g "root"

View File

@@ -36,7 +36,7 @@ Non-root container images add an extra layer of security and are generally recom
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/).
- [`5`, `5-debian-10`, `5.7.1`, `5.7.1-debian-10-r23`, `latest` (5/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-wordpress-nginx/blob/5.7.1-debian-10-r23/5/debian-10/Dockerfile)
- [`5`, `5-debian-10`, `5.7.1`, `5.7.1-debian-10-r24`, `latest` (5/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-wordpress-nginx/blob/5.7.1-debian-10-r24/5/debian-10/Dockerfile)
Subscribe to project updates by watching the [bitnami/wordpress-nginx GitHub repo](https://github.com/bitnami/bitnami-docker-wordpress-nginx).
@@ -231,6 +231,7 @@ Available environment variables:
- `WORDPRESS_TABLE_PREFIX`: Table prefix to use in WordPress. Default: **wp_**
- `WORDPRESS_PLUGINS`: List of WordPress plugins to install and activate, separated via commas. Can also be set to `all` to activate all currently installed plugins, or `none` to skip. Default: **none**
- `WORDPRESS_EXTRA_INSTALL_ARGS`: Extra flags to append to the WordPress 'wp core install' command call. No defaults.
- `WORDPRESS_EXTRA_CLI_ARGS`: Extra flags to append to all WP-CLI command calls. No defaults.
- `WORDPRESS_EXTRA_WP_CONFIG_CONTENT`: Extra configuration to append to wp-config.php during install. No defaults.
- `WORDPRESS_ENABLE_HTTPS`: Whether to use HTTPS by default. Default: **no**
- `WORDPRESS_SKIP_BOOTSTRAP`: Skip the WordPress installation wizard. This is necessary when providing a database with existing WordPress data. Default: **no**