5.8.3-debian-10-r2 release
This commit is contained in:
parent
b8ac51639b
commit
257a92061a
|
|
@ -9,14 +9,14 @@ 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 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.27-5" --checksum 75a6ef827d8d8fd5b645cb3004d49ddd1a7d23a9ab22f68ff4a3bd98f2eb06ca
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "apache" "2.4.52-0" --checksum 90dd9776f09a61d4ed0a0c99d31fd1923639c987fe1f367e866dd31b6f6da5ca
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wp-cli" "2.5.0-0" --checksum b2be17e2065fc8d9d1a175e1dbc689e8f6a5543bb3b6a6f5470bc987b7c396ce
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "mysql-client" "10.3.32-0" --checksum 4a211faa9436c9747dfc4374cb9e8a7f9b0065dfc58dd4784cef0f5029c2e65e
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "libphp" "7.4.27-1" --checksum 2286e3101af00eaba55cdc0aab27a0ea020582a4b1b1f3af9fbf6c4c9fc23017
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wordpress" "5.8.3-0" --checksum 90e3b018731bd9b9f659a230e5ad2d1d88d85cc2faee6a5ad13ce60a984593a8
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "render-template" "1.0.1-4" --checksum 9b09b8c13e726569fd846abef20228b2e29de456805994e512f3b47f74cf742d
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-0" --checksum 3e6fc37ca073b10a73a804d39c2f0c028947a1a596382a4f8ebe43dfbaa3a25e
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "render-template" "1.0.1-5" --checksum 9e312b4a7e16a55d08e67c4fd69c91000e4dcc4af149d59915c49375b83852af
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "php" "7.4.27-7" --checksum b33c5253d44671839fd5dd01e1965f1d4d35d00eb10a8481e307303c0344d515
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "apache" "2.4.52-1" --checksum f7134097e1be937a1d6dff36fe32a835ec4279100abc828e58f0563d541895bc
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wp-cli" "2.5.0-1" --checksum 08e846b3a55d060e75141a173d43e2d969ccfc6b5545620c2f7aeefdac03f96f
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "mysql-client" "10.3.32-1" --checksum 727834a55587746f90b159966c9abf2ce31a6effbe83d8c38ee6250641c9a22a
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "libphp" "7.4.27-2" --checksum 63dc5c54bbd2a981bc1fc6d070bf6d3b0024e2d9f359112bd541624a0bb0cec2
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wordpress" "5.8.3-2" --checksum fd1f89421ee8fcad73cb6a00670c1870dd48ab17a71cab9af47c67488402cbf0
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-1" --checksum 16f1a317859b06ae82e816b30f98f28b4707d18fe6cc3881bff535192a7715dc
|
||||
RUN chmod g+rwX /opt/bitnami
|
||||
|
||||
COPY rootfs /
|
||||
|
|
@ -25,23 +25,12 @@ RUN /opt/bitnami/scripts/apache/postunpack.sh
|
|||
RUN /opt/bitnami/scripts/php/postunpack.sh
|
||||
RUN /opt/bitnami/scripts/apache-modphp/postunpack.sh
|
||||
RUN /opt/bitnami/scripts/wordpress/postunpack.sh
|
||||
ENV ALLOW_EMPTY_PASSWORD="no" \
|
||||
APACHE_ENABLE_CUSTOM_PORTS="no" \
|
||||
APACHE_HTTPS_PORT_NUMBER="" \
|
||||
RUN /opt/bitnami/scripts/wp-cli/postunpack.sh
|
||||
ENV APACHE_HTTPS_PORT_NUMBER="" \
|
||||
APACHE_HTTP_PORT_NUMBER="" \
|
||||
BITNAMI_APP_NAME="wordpress" \
|
||||
BITNAMI_IMAGE_VERSION="5.8.3-debian-10-r1" \
|
||||
MARIADB_HOST="mariadb" \
|
||||
MARIADB_PORT_NUMBER="3306" \
|
||||
MARIADB_ROOT_PASSWORD="" \
|
||||
MARIADB_ROOT_USER="root" \
|
||||
MYSQL_CLIENT_CREATE_DATABASE_NAME="" \
|
||||
MYSQL_CLIENT_CREATE_DATABASE_PASSWORD="" \
|
||||
MYSQL_CLIENT_CREATE_DATABASE_PRIVILEGES="ALL" \
|
||||
MYSQL_CLIENT_CREATE_DATABASE_USER="" \
|
||||
MYSQL_CLIENT_ENABLE_SSL="no" \
|
||||
MYSQL_CLIENT_SSL_CA_FILE="" \
|
||||
PATH="/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/opt/bitnami/apache/bin:/opt/bitnami/wp-cli/bin:/opt/bitnami/mysql/bin:/opt/bitnami/common/bin:$PATH"
|
||||
BITNAMI_IMAGE_VERSION="5.8.3-debian-10-r2" \
|
||||
PATH="/opt/bitnami/common/bin:/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/opt/bitnami/apache/bin:/opt/bitnami/wp-cli/bin:/opt/bitnami/mysql/bin:$PATH"
|
||||
|
||||
EXPOSE 8080 8443
|
||||
|
||||
|
|
|
|||
|
|
@ -1,58 +1,58 @@
|
|||
{
|
||||
"apache": {
|
||||
"arch": "amd64",
|
||||
"digest": "90dd9776f09a61d4ed0a0c99d31fd1923639c987fe1f367e866dd31b6f6da5ca",
|
||||
"digest": "f7134097e1be937a1d6dff36fe32a835ec4279100abc828e58f0563d541895bc",
|
||||
"distro": "debian-10",
|
||||
"type": "NAMI",
|
||||
"version": "2.4.52-0"
|
||||
"version": "2.4.52-1"
|
||||
},
|
||||
"gosu": {
|
||||
"arch": "amd64",
|
||||
"digest": "3e6fc37ca073b10a73a804d39c2f0c028947a1a596382a4f8ebe43dfbaa3a25e",
|
||||
"digest": "16f1a317859b06ae82e816b30f98f28b4707d18fe6cc3881bff535192a7715dc",
|
||||
"distro": "debian-10",
|
||||
"type": "NAMI",
|
||||
"version": "1.14.0-0"
|
||||
"version": "1.14.0-1"
|
||||
},
|
||||
"libphp": {
|
||||
"arch": "amd64",
|
||||
"digest": "2286e3101af00eaba55cdc0aab27a0ea020582a4b1b1f3af9fbf6c4c9fc23017",
|
||||
"digest": "63dc5c54bbd2a981bc1fc6d070bf6d3b0024e2d9f359112bd541624a0bb0cec2",
|
||||
"distro": "debian-10",
|
||||
"type": "NAMI",
|
||||
"version": "7.4.27-1"
|
||||
"version": "7.4.27-2"
|
||||
},
|
||||
"mysql-client": {
|
||||
"arch": "amd64",
|
||||
"digest": "4a211faa9436c9747dfc4374cb9e8a7f9b0065dfc58dd4784cef0f5029c2e65e",
|
||||
"digest": "727834a55587746f90b159966c9abf2ce31a6effbe83d8c38ee6250641c9a22a",
|
||||
"distro": "debian-10",
|
||||
"type": "NAMI",
|
||||
"version": "10.3.32-0"
|
||||
"version": "10.3.32-1"
|
||||
},
|
||||
"php": {
|
||||
"arch": "amd64",
|
||||
"digest": "75a6ef827d8d8fd5b645cb3004d49ddd1a7d23a9ab22f68ff4a3bd98f2eb06ca",
|
||||
"digest": "b33c5253d44671839fd5dd01e1965f1d4d35d00eb10a8481e307303c0344d515",
|
||||
"distro": "debian-10",
|
||||
"type": "NAMI",
|
||||
"version": "7.4.27-5"
|
||||
"version": "7.4.27-7"
|
||||
},
|
||||
"render-template": {
|
||||
"arch": "amd64",
|
||||
"digest": "9b09b8c13e726569fd846abef20228b2e29de456805994e512f3b47f74cf742d",
|
||||
"digest": "9e312b4a7e16a55d08e67c4fd69c91000e4dcc4af149d59915c49375b83852af",
|
||||
"distro": "debian-10",
|
||||
"type": "NAMI",
|
||||
"version": "1.0.1-4"
|
||||
"version": "1.0.1-5"
|
||||
},
|
||||
"wordpress": {
|
||||
"arch": "amd64",
|
||||
"digest": "90e3b018731bd9b9f659a230e5ad2d1d88d85cc2faee6a5ad13ce60a984593a8",
|
||||
"digest": "fd1f89421ee8fcad73cb6a00670c1870dd48ab17a71cab9af47c67488402cbf0",
|
||||
"distro": "debian-10",
|
||||
"type": "NAMI",
|
||||
"version": "5.8.3-0"
|
||||
"version": "5.8.3-2"
|
||||
},
|
||||
"wp-cli": {
|
||||
"arch": "amd64",
|
||||
"digest": "b2be17e2065fc8d9d1a175e1dbc689e8f6a5543bb3b6a6f5470bc987b7c396ce",
|
||||
"digest": "08e846b3a55d060e75141a173d43e2d969ccfc6b5545620c2f7aeefdac03f96f",
|
||||
"distro": "debian-10",
|
||||
"type": "NAMI",
|
||||
"version": "2.5.0-0"
|
||||
"version": "2.5.0-1"
|
||||
}
|
||||
}
|
||||
|
|
@ -417,8 +417,8 @@ wordpress_initialize() {
|
|||
#########################
|
||||
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" "$@")
|
||||
local -a env=("env" "WP_CLI_CONFIG_PATH=${WP_CLI_CONF_FILE}" "WP_CLI_CACHE_DIR=/dev/null")
|
||||
local -a cmd=("${PHP_BIN_DIR}/php" "${WP_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"
|
||||
|
|
|
|||
|
|
@ -96,10 +96,6 @@ unset wordpress_env_vars
|
|||
# Paths
|
||||
export WORDPRESS_BASE_DIR="${BITNAMI_ROOT_DIR}/wordpress"
|
||||
export WORDPRESS_CONF_FILE="${WORDPRESS_BASE_DIR}/wp-config.php"
|
||||
export WORDPRESS_CLI_BASE_DIR="${BITNAMI_ROOT_DIR}/wp-cli"
|
||||
export WORDPRESS_CLI_BIN_DIR="${WORDPRESS_CLI_BASE_DIR}/bin"
|
||||
export WORDPRESS_CLI_CONF_DIR="${WORDPRESS_CLI_BASE_DIR}/conf"
|
||||
export WORDPRESS_CLI_CONF_FILE="${WORDPRESS_CLI_CONF_DIR}/wp-cli.yml"
|
||||
|
||||
# WordPress persistence configuration
|
||||
export WORDPRESS_VOLUME_DIR="${BITNAMI_VOLUME_DIR}/wordpress"
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
#!/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
|
||||
|
||||
exec {{PHP_BIN_DIR}}/php {{WORDPRESS_CLI_BIN_DIR}}/wp-cli.phar "$@"
|
||||
|
|
@ -36,7 +36,6 @@ declare -a writable_dirs=(
|
|||
# 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"
|
||||
|
|
@ -44,15 +43,6 @@ for dir in "${writable_dirs[@]}"; do
|
|||
configure_permissions_ownership "$dir" -d "g+rwx" -f "g+rw" -u "$WEB_SERVER_DAEMON_USER" -g "root"
|
||||
done
|
||||
|
||||
# Configure wp-cli
|
||||
ensure_dir_exists "$WORDPRESS_CLI_CONF_DIR"
|
||||
cat >"$WORDPRESS_CLI_CONF_FILE" <<EOF
|
||||
# Global parameter defaults
|
||||
path: "${WORDPRESS_BASE_DIR}"
|
||||
EOF
|
||||
render-template "${BITNAMI_ROOT_DIR}/scripts/wordpress/bitnami-templates/wp.tpl" >"${WORDPRESS_CLI_BIN_DIR}/wp"
|
||||
configure_permissions_ownership "${WORDPRESS_CLI_BIN_DIR}/wp" -f "755"
|
||||
|
||||
info "Configuring default PHP options for WordPress"
|
||||
php_conf_set memory_limit "$PHP_DEFAULT_MEMORY_LIMIT"
|
||||
php_conf_set upload_max_filesize "$PHP_DEFAULT_UPLOAD_MAX_FILESIZE"
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@ set -o pipefail
|
|||
# Load WordPress environment
|
||||
. /opt/bitnami/scripts/wordpress-env.sh
|
||||
|
||||
# Load WP-CLI environment for 'wp_execute' (after 'wordpress-env.sh' so that MODULE is not set to a wrong value)
|
||||
. /opt/bitnami/scripts/wp-cli-env.sh
|
||||
|
||||
# Load PHP environment for 'wp_execute' (after 'wordpress-env.sh' so that MODULE is not set to a wrong value)
|
||||
. /opt/bitnami/scripts/php-env.sh
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Environment configuration for wp-cli
|
||||
|
||||
# The values for all environment variables will be set in the below order of precedence
|
||||
# 1. Custom environment variables defined below after Bitnami defaults
|
||||
# 2. Constants defined in this file (environment variables with no default), i.e. BITNAMI_ROOT_DIR
|
||||
# 3. Environment variables overridden via external files using *_FILE variables (see below)
|
||||
# 4. Environment variables set externally (i.e. current Bash context/Dockerfile/userdata)
|
||||
|
||||
# Load logging library
|
||||
. /opt/bitnami/scripts/liblog.sh
|
||||
|
||||
export BITNAMI_ROOT_DIR="/opt/bitnami"
|
||||
export BITNAMI_VOLUME_DIR="/bitnami"
|
||||
|
||||
# Logging configuration
|
||||
export MODULE="${MODULE:-wp-cli}"
|
||||
export BITNAMI_DEBUG="${BITNAMI_DEBUG:-false}"
|
||||
|
||||
# Paths
|
||||
export WP_CLI_BASE_DIR="${BITNAMI_ROOT_DIR}/wp-cli"
|
||||
export WP_CLI_BIN_DIR="${WP_CLI_BASE_DIR}/bin"
|
||||
export WP_CLI_CONF_DIR="${WP_CLI_BASE_DIR}/conf"
|
||||
export WP_CLI_CONF_FILE="${WP_CLI_CONF_DIR}/wp-cli.yml"
|
||||
export PATH="${BITNAMI_ROOT_DIR}/common/bin:${PATH}"
|
||||
|
||||
# System users (when running with a privileged user)
|
||||
export WP_CLI_DAEMON_USER="daemon"
|
||||
export WP_CLI_DAEMON_GROUP="daemon"
|
||||
|
||||
# Custom environment variables may be defined below
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
export WP_CLI_CONFIG_PATH="{{WP_CLI_CONF_FILE}}"
|
||||
export WP_CLI_CACHE_DIR="{{WP_CLI_BASE_DIR}}/.cache"
|
||||
export WP_CLI_PACKAGES_DIR="{{WP_CLI_BASE_DIR}}/.packages"
|
||||
export WP_CLI_PHP_USED="{{PHP_BIN_DIR}}/php"
|
||||
|
||||
command -v less > /dev/null || export PAGER=cat
|
||||
|
||||
exec {{PHP_BIN_DIR}}/php {{WP_CLI_BIN_DIR}}/wp-cli.phar "$@"
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
#!/bin/bash
|
||||
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
# set -o xtrace # Uncomment this line for debugging purpose
|
||||
|
||||
# Load WP-CLI environment
|
||||
. /opt/bitnami/scripts/wp-cli-env.sh
|
||||
|
||||
# Load PHP environment for WP-CLI templates (after 'wp-cli-env.sh' so that MODULE is not set to a wrong value)
|
||||
. /opt/bitnami/scripts/php-env.sh
|
||||
|
||||
# Load libraries
|
||||
. /opt/bitnami/scripts/libfile.sh
|
||||
. /opt/bitnami/scripts/libfs.sh
|
||||
. /opt/bitnami/scripts/liblog.sh
|
||||
|
||||
# Ensure the WordPress base directory exists and has proper permissions
|
||||
info "Configuring file permissions for WP-CLI"
|
||||
ensure_user_exists "$WP_CLI_DAEMON_USER" --group "$WP_CLI_DAEMON_GROUP"
|
||||
declare -a writable_dirs=(
|
||||
"${WP_CLI_BASE_DIR}/.cache" "${WP_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 "$WP_CLI_DAEMON_USER" -g "root"
|
||||
done
|
||||
|
||||
# Configure wp-cli
|
||||
ensure_dir_exists "$WP_CLI_CONF_DIR"
|
||||
cat >"$WP_CLI_CONF_FILE" <<EOF
|
||||
# Global parameter defaults
|
||||
path: "${BITNAMI_ROOT_DIR}/wordpress"
|
||||
EOF
|
||||
render-template "${BITNAMI_ROOT_DIR}/scripts/wp-cli/bitnami-templates/wp.tpl" >"${WP_CLI_BIN_DIR}/wp"
|
||||
configure_permissions_ownership "${WP_CLI_BIN_DIR}/wp" -f "755"
|
||||
|
|
@ -43,7 +43,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.8.3`, `5.8.3-debian-10-r1`, `latest` (5/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-wordpress/blob/5.8.3-debian-10-r1/5/debian-10/Dockerfile)
|
||||
- [`5`, `5-debian-10`, `5.8.3`, `5.8.3-debian-10-r2`, `latest` (5/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-wordpress/blob/5.8.3-debian-10-r2/5/debian-10/Dockerfile)
|
||||
|
||||
Subscribe to project updates by watching the [bitnami/wordpress GitHub repo](https://github.com/bitnami/bitnami-docker-wordpress).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue