diff --git a/bitnami/wordpress/5/debian-10/Dockerfile b/bitnami/wordpress/5/debian-10/Dockerfile index 32b76080c78f..3495ca97d19a 100644 --- a/bitnami/wordpress/5/debian-10/Dockerfile +++ b/bitnami/wordpress/5/debian-10/Dockerfile @@ -9,11 +9,11 @@ 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-0" --checksum e57e5a9bf4e909e4f7a18341b69a7c0780e13b122b22a78c30ee48653b8d821b -RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "apache" "2.4.51-7" --checksum 1b827e70d1633dc9c3035458ccf893dbb0d503b5dbfa01109eecb356e1e1a0db +RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "php" "7.4.27-2" --checksum 00c27d3d0d2dc5db11f1c8d5b0271c3e55d89e81e11e82b4ab9de26bfebf8b21 +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-0" --checksum 80dafaf02c34ffd1a419eff8dbd335cb19e4aa30f547256258ec27ac9e60dc49 +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.2-7" --checksum eb41af1445bf778cc83c820b8e1d2311b114287c1c3ab5629be23e80e5bf2935 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 @@ -21,8 +21,8 @@ RUN chmod g+rwX /opt/bitnami COPY rootfs / RUN /opt/bitnami/scripts/mysql-client/postunpack.sh -RUN /opt/bitnami/scripts/apache/postunpack.sh RUN /opt/bitnami/scripts/php/postunpack.sh +RUN /opt/bitnami/scripts/apache/postunpack.sh RUN /opt/bitnami/scripts/apache-modphp/postunpack.sh RUN /opt/bitnami/scripts/wordpress/postunpack.sh ENV ALLOW_EMPTY_PASSWORD="no" \ @@ -30,7 +30,7 @@ ENV ALLOW_EMPTY_PASSWORD="no" \ APACHE_HTTPS_PORT_NUMBER="" \ APACHE_HTTP_PORT_NUMBER="" \ BITNAMI_APP_NAME="wordpress" \ - BITNAMI_IMAGE_VERSION="5.8.2-debian-10-r38" \ + BITNAMI_IMAGE_VERSION="5.8.2-debian-10-r39" \ MARIADB_HOST="mariadb" \ MARIADB_PORT_NUMBER="3306" \ MARIADB_ROOT_PASSWORD="" \ diff --git a/bitnami/wordpress/5/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json b/bitnami/wordpress/5/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json index 7543a8827b1e..c0a3d7987e64 100644 --- a/bitnami/wordpress/5/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json +++ b/bitnami/wordpress/5/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json @@ -1,10 +1,10 @@ { "apache": { "arch": "amd64", - "digest": "1b827e70d1633dc9c3035458ccf893dbb0d503b5dbfa01109eecb356e1e1a0db", + "digest": "90dd9776f09a61d4ed0a0c99d31fd1923639c987fe1f367e866dd31b6f6da5ca", "distro": "debian-10", "type": "NAMI", - "version": "2.4.51-7" + "version": "2.4.52-0" }, "gosu": { "arch": "amd64", @@ -15,10 +15,10 @@ }, "libphp": { "arch": "amd64", - "digest": "80dafaf02c34ffd1a419eff8dbd335cb19e4aa30f547256258ec27ac9e60dc49", + "digest": "2286e3101af00eaba55cdc0aab27a0ea020582a4b1b1f3af9fbf6c4c9fc23017", "distro": "debian-10", "type": "NAMI", - "version": "7.4.27-0" + "version": "7.4.27-1" }, "mysql-client": { "arch": "amd64", @@ -29,10 +29,10 @@ }, "php": { "arch": "amd64", - "digest": "e57e5a9bf4e909e4f7a18341b69a7c0780e13b122b22a78c30ee48653b8d821b", + "digest": "00c27d3d0d2dc5db11f1c8d5b0271c3e55d89e81e11e82b4ab9de26bfebf8b21", "distro": "debian-10", "type": "NAMI", - "version": "7.4.27-0" + "version": "7.4.27-2" }, "render-template": { "arch": "amd64", diff --git a/bitnami/wordpress/5/debian-10/prebuildfs/opt/bitnami/scripts/libcomponent.sh b/bitnami/wordpress/5/debian-10/prebuildfs/opt/bitnami/scripts/libcomponent.sh index 1d8c6bf24375..6fa65772008e 100644 --- a/bitnami/wordpress/5/debian-10/prebuildfs/opt/bitnami/scripts/libcomponent.sh +++ b/bitnami/wordpress/5/debian-10/prebuildfs/opt/bitnami/scripts/libcomponent.sh @@ -26,7 +26,7 @@ component_unpack() { local base_name="${name}-${version}-${OS_NAME}-${OS_ARCH}-${OS_FLAVOUR}" local package_sha256="" local directory="/opt/bitnami" - + # Validate arguments shift 2 while [ "$#" -gt 0 ]; do @@ -54,7 +54,7 @@ component_unpack() { rm "${CACHE_ROOT}/${base_name}.tar.gz.sha256" fi else - curl --remote-name --silent "${DOWNLOAD_URL}/${base_name}.tar.gz" + curl --remote-name --silent --show-error --fail "${DOWNLOAD_URL}/${base_name}.tar.gz" fi if [ -n "$package_sha256" ]; then echo "Verifying package integrity" diff --git a/bitnami/wordpress/5/debian-10/prebuildfs/opt/bitnami/scripts/libos.sh b/bitnami/wordpress/5/debian-10/prebuildfs/opt/bitnami/scripts/libos.sh index 0a1a92a747f9..b6c50da90807 100644 --- a/bitnami/wordpress/5/debian-10/prebuildfs/opt/bitnami/scripts/libos.sh +++ b/bitnami/wordpress/5/debian-10/prebuildfs/opt/bitnami/scripts/libos.sh @@ -7,6 +7,7 @@ # Load Generic Libraries . /opt/bitnami/scripts/liblog.sh . /opt/bitnami/scripts/libfs.sh +. /opt/bitnami/scripts/libvalidations.sh # Functions @@ -53,17 +54,17 @@ ensure_group_exists() { shift 1 while [ "$#" -gt 0 ]; do case "$1" in - -i|--gid) - shift - gid="${1:?missing gid}" - ;; - -s|--system) - is_system_user=true - ;; - *) - echo "Invalid command line flag $1" >&2 - return 1 - ;; + -i | --gid) + shift + gid="${1:?missing gid}" + ;; + -s | --system) + is_system_user=true + ;; + *) + echo "Invalid command line flag $1" >&2 + return 1 + ;; esac shift done @@ -71,7 +72,7 @@ ensure_group_exists() { if ! group_exists "$group"; then local -a args=("$group") if [[ -n "$gid" ]]; then - if group_exists "$gid" ; then + if group_exists "$gid"; then error "The GID $gid is already in use." >&2 return 1 fi @@ -107,29 +108,29 @@ ensure_user_exists() { shift 1 while [ "$#" -gt 0 ]; do case "$1" in - -i|--uid) - shift - uid="${1:?missing uid}" - ;; - -g|--group) - shift - group="${1:?missing group}" - ;; - -a|--append-groups) - shift - append_groups="${1:?missing append_groups}" - ;; - -h|--home) - shift - home="${1:?missing home directory}" - ;; - -s|--system) - is_system_user=true - ;; - *) - echo "Invalid command line flag $1" >&2 - return 1 - ;; + -i | --uid) + shift + uid="${1:?missing uid}" + ;; + -g | --group) + shift + group="${1:?missing group}" + ;; + -a | --append-groups) + shift + append_groups="${1:?missing append_groups}" + ;; + -h | --home) + shift + home="${1:?missing home directory}" + ;; + -s | --system) + is_system_user=true + ;; + *) + echo "Invalid command line flag $1" >&2 + return 1 + ;; esac shift done @@ -137,7 +138,7 @@ ensure_user_exists() { if ! user_exists "$user"; then local -a user_args=("-N" "$user") if [[ -n "$uid" ]]; then - if user_exists "$uid" ; then + if user_exists "$uid"; then error "The UID $uid is already in use." return 1 fi @@ -157,7 +158,7 @@ ensure_user_exists() { if [[ -n "$append_groups" ]]; then local -a groups - read -ra groups <<< "$(tr ',;' ' ' <<< "$append_groups")" + read -ra groups <<<"$(tr ',;' ' ' <<<"$append_groups")" for group in "${groups[@]}"; do ensure_group_exists "$group" usermod -aG "$group" "$user" >/dev/null 2>&1 @@ -210,21 +211,22 @@ get_os_metadata() { ) } case "$flag_name" in - --id) - get_os_release_metadata ID - ;; - --version) - get_os_release_metadata VERSION_ID - ;; - --branch) - get_os_release_metadata VERSION_ID | sed 's/\..*//' - ;; - --codename) - get_os_release_metadata VERSION_CODENAME - ;; - *) - error "Unknown flag ${flag_name}" - return 1 + --id) + get_os_release_metadata ID + ;; + --version) + get_os_release_metadata VERSION_ID + ;; + --branch) + get_os_release_metadata VERSION_ID | sed 's/\..*//' + ;; + --codename) + get_os_release_metadata VERSION_CODENAME + ;; + *) + error "Unknown flag ${flag_name}" + return 1 + ;; esac } @@ -255,14 +257,14 @@ get_machine_size() { # Validate arguments while [[ "$#" -gt 0 ]]; do case "$1" in - --memory) - shift - memory="${1:?missing memory}" - ;; - *) - echo "Invalid command line flag $1" >&2 - return 1 - ;; + --memory) + shift + memory="${1:?missing memory}" + ;; + *) + echo "Invalid command line flag $1" >&2 + return 1 + ;; esac shift done @@ -314,7 +316,7 @@ convert_to_mb() { size="${BASH_REMATCH[1]}" unit="${BASH_REMATCH[2]}" if [[ "$unit" = "g" || "$unit" = "G" ]]; then - amount="$((size * 1024))" + amount="$((size * 1024))" else amount="$size" fi @@ -322,7 +324,6 @@ convert_to_mb() { echo "$amount" } - ######################### # Redirects output to /dev/null if debug mode is disabled # Globals: @@ -333,7 +334,7 @@ convert_to_mb() { # None ######################### debug_execute() { - if ${BITNAMI_DEBUG:-false}; then + if is_boolean_yes "${BITNAMI_DEBUG:-false}"; then "$@" else "$@" >/dev/null 2>&1 @@ -355,8 +356,8 @@ retry_while() { local sleep_time="${3:-5}" local return_value=1 - read -r -a command <<< "$cmd" - for ((i = 1 ; i <= retries ; i+=1 )); do + read -r -a command <<<"$cmd" + for ((i = 1; i <= retries; i += 1)); do "${command[@]}" && return_value=0 && break sleep "$sleep_time" done @@ -383,35 +384,36 @@ generate_random_string() { # Validate arguments while [[ "$#" -gt 0 ]]; do case "$1" in - -t|--type) - shift - type="$1" - ;; - -c|--count) - shift - count="$1" - ;; - *) - echo "Invalid command line flag $1" >&2 - return 1 - ;; + -t | --type) + shift + type="$1" + ;; + -c | --count) + shift + count="$1" + ;; + *) + echo "Invalid command line flag $1" >&2 + return 1 + ;; esac shift done # Validate type case "$type" in - ascii) - filter="[:print:]" - ;; - alphanumeric) - filter="a-zA-Z0-9" - ;; - numeric) - filter="0-9" - ;; - *) + ascii) + filter="[:print:]" + ;; + alphanumeric) + filter="a-zA-Z0-9" + ;; + numeric) + filter="0-9" + ;; + *) echo "Invalid type ${type}" >&2 return 1 + ;; esac # Obtain count + 10 lines from /dev/urandom to ensure that the resulting string has the expected size # Note there is a very small chance of strings starting with EOL character @@ -457,7 +459,7 @@ convert_to_hex() { local -r str=${1:?missing input string} local -i iterator local char - for ((iterator=0; iterator<${#str}; iterator++)); do + for ((iterator = 0; iterator < ${#str}; iterator++)); do char=${str:iterator:1} printf '%x' "'${char}" done diff --git a/bitnami/wordpress/README.md b/bitnami/wordpress/README.md index a7aa5cd89a60..a0207ec9b363 100644 --- a/bitnami/wordpress/README.md +++ b/bitnami/wordpress/README.md @@ -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.2`, `5.8.2-debian-10-r38`, `latest` (5/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-wordpress/blob/5.8.2-debian-10-r38/5/debian-10/Dockerfile) +- [`5`, `5-debian-10`, `5.8.2`, `5.8.2-debian-10-r39`, `latest` (5/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-wordpress/blob/5.8.2-debian-10-r39/5/debian-10/Dockerfile) Subscribe to project updates by watching the [bitnami/wordpress GitHub repo](https://github.com/bitnami/bitnami-docker-wordpress).