5.2.1-debian-9-r8 release

This commit is contained in:
Bitnami Bot 2019-05-30 12:53:56 +00:00
parent 35736ace45
commit 8573ebf96a
5 changed files with 56 additions and 28 deletions

View File

@ -3,21 +3,18 @@ LABEL maintainer "Bitnami <containers@bitnami.com>"
# Install required system packages and dependencies
RUN install_packages libbz2-1.0 libc6 libcomerr2 libcurl3 libffi6 libfreetype6 libgcc1 libgcrypt20 libgmp10 libgnutls30 libgpg-error0 libgssapi-krb5-2 libhogweed4 libicu57 libidn11 libidn2-0 libjpeg62-turbo libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 liblzma5 libmemcached11 libmemcachedutil2 libncurses5 libnettle6 libnghttp2-14 libp11-kit0 libpcre3 libpng16-16 libpq5 libpsl5 libreadline7 librtmp1 libsasl2-2 libssh2-1 libssl1.0.2 libssl1.1 libstdc++6 libsybdb5 libtasn1-6 libtidy5 libtinfo5 libunistring0 libxml2 libxslt1.1 libzip4 zlib1g
RUN bitnami-pkg unpack php-7.3.5-1 --checksum a6afa6a57b0daa73f4733db3f94883cd04f52277c0094c408b10f7e3fdeb5448
RUN bitnami-pkg install wp-cli-2.2.0-1 --checksum 327f6d7bf2ce2e696b546b165224f654755dff5b985999ebc409528ae2432f04
RUN bitnami-pkg unpack nginx-1.16.0-6 --checksum 8f8f06dc6a9b57b4c5f9b147e57dbef1aadcb2223212596ff744a4fbdda56307
RUN bitnami-pkg unpack php-7.3.5-0 --checksum 0f27654056265c01afa748c3e056846d0d7f2c816b0e53ad7d723bff04cb4bce
RUN bitnami-pkg install wp-cli-2.2.0-0 --checksum 230debaa90f07d59e90682341d15b6350e0b92de70a502862e7c09fcc9619bd8
RUN bitnami-pkg unpack mysql-client-10.3.15-0 --checksum eb269ede06f5e5ed64dfe3515784f2c942a944c6f32c3ff030bebd5a134a50c0
RUN bitnami-pkg unpack wordpress-5.2.1-0 --checksum 716a102da12f4a40af4f205b5d6c3ceb894dd42bb52c0a7ccf92b53498e7ed05
RUN mkdir -p /opt/bitnami/php/logs && chown daemon /opt/bitnami/php/logs && \
mkdir -p /opt/bitnami/php/tmp && chown daemon /opt/bitnami/php/tmp && \
ln -sf /opt/bitnami/php/etc /opt/bitnami/php/conf
RUN bitnami-pkg unpack wordpress-5.2.1-1 --checksum 5b352b076a32026e487417b7784c0a402f264dd5316d83867f5ba801436573f0
RUN ln -sf /dev/stdout /opt/bitnami/nginx/logs/access.log
RUN ln -sf /dev/stderr /opt/bitnami/nginx/logs/error.log
COPY rootfs /
ENV ALLOW_EMPTY_PASSWORD="no" \
BITNAMI_APP_NAME="wordpress-nginx" \
BITNAMI_IMAGE_VERSION="5.2.1-debian-9-r7" \
BITNAMI_IMAGE_VERSION="5.2.1-debian-9-r8" \
MARIADB_HOST="mariadb" \
MARIADB_PORT_NUMBER="3306" \
MARIADB_ROOT_PASSWORD="" \
@ -29,7 +26,7 @@ ENV ALLOW_EMPTY_PASSWORD="no" \
NGINX_ENABLE_CUSTOM_PORTS="no" \
NGINX_HTTPS_PORT_NUMBER="" \
NGINX_HTTP_PORT_NUMBER="" \
PATH="/opt/bitnami/nginx/sbin:/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/opt/bitnami/wp-cli/bin:/opt/bitnami/mysql/bin:$PATH" \
PATH="/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/opt/bitnami/php/sbin:/opt/bitnami/wp-cli/bin:/opt/bitnami/nginx/sbin:/opt/bitnami/mysql/bin:$PATH" \
SMTP_HOST="" \
SMTP_PASSWORD="" \
SMTP_PORT="" \
@ -55,4 +52,4 @@ ENV ALLOW_EMPTY_PASSWORD="no" \
EXPOSE 80 443
ENTRYPOINT [ "/app-entrypoint.sh" ]
CMD [ "./run.sh" ]
CMD [ "/run.sh" ]

View File

@ -5,9 +5,9 @@
print_welcome_page
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "./run.sh" ]]; then
. /init.sh
nami_initialize nginx mysql-client wordpress
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/run.sh" ]]; then
. /wordpress-init.sh
nami_initialize php nginx mysql-client wordpress
info "Starting wordpress... "
fi

View File

@ -3,24 +3,17 @@
. /opt/bitnami/base/functions
. /opt/bitnami/base/helpers
NGINX_INSTALLDIR="/opt/bitnami/nginx"
NGINX_CONF_DIR="${NGINX_INSTALLDIR}/conf"
PHP_INSTALLDIR="/opt/bitnami/php"
PHP_CONF_DIR="${PHP_INSTALLDIR}/etc"
PHP_TEMP_DIR="${PHP_INSTALLDIR}/tmp"
_forwardTerm () {
echo "Caugth signal SIGTERM, passing it to child processes..."
cpids=$(pgrep -P $$ | xargs)
kill -15 "$cpids" 2> /dev/null
wait
exit $?
echo "Caugth signal SIGTERM, passing it to child processes..."
pgrep -P $$ | xargs kill -15 2>/dev/null
wait
exit $?
}
trap _forwardTerm TERM
info "Starting php-fpm..."
su daemon -s /bin/bash -c "${PHP_INSTALLDIR}/sbin/php-fpm --pid ${PHP_TEMP_DIR}/php5-fpm.pid --fpm-config ${PHP_CONF_DIR}/php-fpm.conf --prefix ${PHP_INSTALLDIR} -c ${PHP_CONF_DIR}/php.ini" &
info "Starting PHP-FPM..."
su daemon -s /bin/bash -c "/opt/bitnami/php/sbin/php-fpm -F --pid /opt/bitnami/php/tmp/php-fpm.pid --fpm-config /opt/bitnami/php/etc/php-fpm.conf --prefix /opt/bitnami/php -c /opt/bitnami/php/etc/php.ini" &
info "Starting nginx..."
nginx -c "${NGINX_CONF_DIR}/nginx.conf" -g "daemon off;"
info "Starting NGINX..."
exec nginx -c /opt/bitnami/nginx/conf/nginx.conf -g "daemon off;"

View File

@ -0,0 +1,31 @@
#!/bin/bash
##
## @brief Helper function to show an error when a password is empty and exit
## param $1 Input name
##
empty_password_error() {
error "The $1 environment variable is empty or not set. Set the environment variable ALLOW_EMPTY_PASSWORD=yes to allow the container to be started with blank passwords. This is recommended only for development."
exit 1
}
##
## @brief Helper function to show a warning when the ALLOW_EMPTY_PASSWORD flag is enabled
##
empty_password_enabled_warn() {
warn "You set the environment variable ALLOW_EMPTY_PASSWORD=${ALLOW_EMPTY_PASSWORD}. For safety reasons, do not use this flag in a production environment."
}
# Validate passwords
if [[ "$ALLOW_EMPTY_PASSWORD" =~ ^(yes|Yes|YES)$ ]]; then
empty_password_enabled_warn
else
# Database creation by MySQL client
if [[ -n "$MYSQL_CLIENT_CREATE_DATABASE_USER" && -z "$MYSQL_CLIENT_CREATE_DATABASE_PASSWORD" ]]; then
empty_password_error MYSQL_CLIENT_CREATE_DATABASE_PASSWORD
fi
# WordPress database
if [[ -z "$WORDPRESS_DATABASE_PASSWORD" ]]; then
empty_password_error WORDPRESS_DATABASE_PASSWORD
fi
fi

View File

@ -47,7 +47,7 @@ Learn more about the Bitnami tagging policy and the difference between rolling t
* [`5-ol-7`, `5.2.1-ol-7-r7` (5/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-wordpress-nginx/blob/5.2.1-ol-7-r7/5/ol-7/Dockerfile)
* [`5-debian-9`, `5.2.1-debian-9-r6`, `5`, `5.2.1`, `5.2.1-r6`, `latest` (5/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-wordpress-nginx/blob/5.2.1-debian-9-r6/5/debian-9/Dockerfile)
* [`5-debian-9`, `5.2.1-debian-9-r8`, `5`, `5.2.1`, `5.2.1-r8`, `latest` (5/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-wordpress-nginx/blob/5.2.1-debian-9-r8/5/debian-9/Dockerfile)
* [`5-rhel-7`, `5.1.1-rhel-7-r40` (5/rhel-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-wordpress-nginx/blob/5.1.1-rhel-7-r40/5/rhel-7/Dockerfile)
Subscribe to project updates by watching the [bitnami/wordpress-nginx GitHub repo](https://github.com/bitnami/bitnami-docker-wordpress-nginx).
@ -329,6 +329,13 @@ $ docker run -d --name wordpress -p 80:80 -p 443:443 \
bitnami/wordpress-nginx:latest
```
# Notable Changes
## 5.2.1-debian-9-r8 and 5.2.1-ol-7-r8
- The PHP configuration volume (`/bitnami/php`) has been deprecated, and support for this feature will be dropped in the near future. Until then, the container will enable the PHP configuration from that volume if it exists. By default, and if the configuration volume does not exist, the configuration files will be regenerated each time the container is created. Users wanting to apply custom PHP configuration files are advised to mount a volume for the configuration at `/opt/bitnami/php/conf`, or mount specific configuration files individually.
- Enabling custom Apache certificates by placing them at `/opt/bitnami/apache/certs` has been deprecated, and support for this functionality will be dropped in the near future. Users wanting to enable custom certificates are advised to mount their certificate files on top of the preconfigured ones at `/certs`. Find an example at [Using custom SSL certificates](#using-custom-ssl-certificates).
# Contributing
We'd love for you to contribute to this container. You can request new features by creating an [issue](https://github.com/bitnami/bitnami-docker-wordpress-nginx/issues), or submit a [pull request](https://github.com/bitnami/bitnami-docker-wordpress-nginx/pulls) with your contribution.