mirror of
https://github.com/bitnami/containers.git
synced 2026-03-14 06:48:11 +08:00
3.3.0-debian-10-r147 release
This commit is contained in:
@@ -26,7 +26,7 @@ ENV ALLOW_EMPTY_PASSWORD="no" \
|
|||||||
APACHE_HTTPS_PORT_NUMBER="443" \
|
APACHE_HTTPS_PORT_NUMBER="443" \
|
||||||
APACHE_HTTP_PORT_NUMBER="80" \
|
APACHE_HTTP_PORT_NUMBER="80" \
|
||||||
BITNAMI_APP_NAME="phpbb" \
|
BITNAMI_APP_NAME="phpbb" \
|
||||||
BITNAMI_IMAGE_VERSION="3.3.0-debian-10-r146" \
|
BITNAMI_IMAGE_VERSION="3.3.0-debian-10-r147" \
|
||||||
MARIADB_HOST="mariadb" \
|
MARIADB_HOST="mariadb" \
|
||||||
MARIADB_PORT_NUMBER="3306" \
|
MARIADB_PORT_NUMBER="3306" \
|
||||||
MARIADB_ROOT_PASSWORD="" \
|
MARIADB_ROOT_PASSWORD="" \
|
||||||
|
|||||||
@@ -1,21 +1,31 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Post-init script to execute PHP files
|
# Executes custom PHP init scripts
|
||||||
|
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o nounset
|
||||||
|
set -o pipefail
|
||||||
# set -o xtrace # Uncomment this line for debugging purposes
|
# set -o xtrace # Uncomment this line for debugging purposes
|
||||||
|
|
||||||
. /opt/bitnami/base/functions
|
# Load libraries with logging functions
|
||||||
|
if [[ -f /opt/bitnami/base/functions ]]; then
|
||||||
|
. /opt/bitnami/base/functions
|
||||||
|
else
|
||||||
|
. /opt/bitnami/scripts/liblog.sh
|
||||||
|
fi
|
||||||
|
|
||||||
readonly f="${1:?missing PHP file}"
|
# Loop through all input files passed via stdin
|
||||||
|
read -r -a custom_init_scripts <<< "$@"
|
||||||
failure=0
|
failure=0
|
||||||
|
if [[ "${#custom_init_scripts[@]}" -gt 0 ]]; then
|
||||||
|
for custom_init_script in "${custom_init_scripts[@]}"; do
|
||||||
|
[[ "$custom_init_script" != *".php" ]] && continue
|
||||||
|
info "Executing ${custom_init_script} with PHP interpreter"
|
||||||
|
php "$custom_init_script" || failure=1
|
||||||
|
[[ "$failure" -ne 0 ]] && error "Failed to execute ${custom_init_script}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$f" == *".php" ]]; then
|
exit "$failure"
|
||||||
info "Executing $f with PHP interpreter"
|
|
||||||
php "$f" || failure=$?
|
|
||||||
fi
|
|
||||||
if [[ "$failure" -ne 0 ]]; then
|
|
||||||
error "Failed to execute ${f}"
|
|
||||||
exit "$failure"
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -1,24 +1,37 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Post-init script to execute Shell files
|
# Executes custom Bash init scripts
|
||||||
|
|
||||||
# shellcheck disable=SC1090,SC1091
|
# shellcheck disable=SC1090
|
||||||
|
# shellcheck disable=SC1091
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o nounset
|
||||||
|
set -o pipefail
|
||||||
# set -o xtrace # Uncomment this line for debugging purposes
|
# set -o xtrace # Uncomment this line for debugging purposes
|
||||||
|
|
||||||
. /opt/bitnami/base/functions
|
# Load libraries with logging functions
|
||||||
|
if [[ -f /opt/bitnami/base/functions ]]; then
|
||||||
|
. /opt/bitnami/base/functions
|
||||||
|
else
|
||||||
|
. /opt/bitnami/scripts/liblog.sh
|
||||||
|
fi
|
||||||
|
|
||||||
readonly f="${1:?missing SHELL file}"
|
# Loop through all input files passed via stdin
|
||||||
|
read -r -a custom_init_scripts <<< "$@"
|
||||||
failure=0
|
failure=0
|
||||||
|
if [[ "${#custom_init_scripts[@]}" -gt 0 ]]; then
|
||||||
|
for custom_init_script in "${custom_init_scripts[@]}"; do
|
||||||
|
[[ "$custom_init_script" != *".sh" ]] && continue
|
||||||
|
if [[ -x "$custom_init_script" ]]; then
|
||||||
|
info "Executing ${custom_init_script}"
|
||||||
|
"$custom_init_script" || failure="1"
|
||||||
|
else
|
||||||
|
info "Sourcing ${custom_init_script} as it is not executable by the current user, any error may cause initialization to fail"
|
||||||
|
. "$custom_init_script"
|
||||||
|
fi
|
||||||
|
[[ "$failure" -ne 0 ]] && error "Failed to execute ${custom_init_script}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$f" == *".sh" ]]; then
|
exit "$failure"
|
||||||
if [[ -x "$f" ]]; then
|
|
||||||
info "Executing $f"; "$f" || failure=$?
|
|
||||||
else
|
|
||||||
info "Sourcing $f"; . "$f"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if [[ "$failure" -ne 0 ]]; then
|
|
||||||
error "Failed to execute ${f}"
|
|
||||||
exit "$failure"
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -1,29 +1,46 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Post-init script to execute SQL files with MySQL client
|
# Executes custom Ruby init scripts
|
||||||
|
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o nounset
|
||||||
|
set -o pipefail
|
||||||
# set -o xtrace # Uncomment this line for debugging purposes
|
# set -o xtrace # Uncomment this line for debugging purposes
|
||||||
|
|
||||||
. /opt/bitnami/base/functions
|
# Load libraries with logging functions
|
||||||
|
if [[ -f /opt/bitnami/base/functions ]]; then
|
||||||
|
. /opt/bitnami/base/functions
|
||||||
|
else
|
||||||
|
. /opt/bitnami/scripts/liblog.sh
|
||||||
|
fi
|
||||||
|
|
||||||
readonly f="${1:?missing SQL file}"
|
mysql_execute() {
|
||||||
failure=0
|
local -r sql_file="${1:?missing file}"
|
||||||
|
local failure=0
|
||||||
if [[ "$f" =~ ^.*(\.sql|\.sql\.gz)$ ]]; then
|
mysql_cmd=("mysql" "-h" "$MARIADB_HOST" "-P" "$MARIADB_PORT_NUMBER" "-u" "$MARIADB_ROOT_USER")
|
||||||
info "Executing $f"
|
|
||||||
mysql_cmd=( mysql -h "$MARIADB_HOST" -P "$MARIADB_PORT_NUMBER" -u "$MARIADB_ROOT_USER" )
|
|
||||||
if [[ "${ALLOW_EMPTY_PASSWORD:-no}" != "yes" ]]; then
|
if [[ "${ALLOW_EMPTY_PASSWORD:-no}" != "yes" ]]; then
|
||||||
mysql_cmd+=( -p"$MARIADB_ROOT_PASSWORD" )
|
mysql_cmd+=("-p${MARIADB_ROOT_PASSWORD}")
|
||||||
fi
|
fi
|
||||||
if [[ "$f" == *".sql" ]]; then
|
if [[ "$sql_file" == *".sql" ]]; then
|
||||||
"${mysql_cmd[@]}" < "$f" || failure=$?
|
"${mysql_cmd[@]}" < "$sql_file" || failure=$?
|
||||||
elif [[ "$f" == *".sql.gz" ]]; then
|
elif [[ "$sql_file" == *".sql.gz" ]]; then
|
||||||
gunzip -c "$f" | "${mysql_cmd[@]}" || failure=$?
|
gunzip -c "$sql_file" | "${mysql_cmd[@]}" || failure=$?
|
||||||
fi
|
fi
|
||||||
|
return "$failure"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Loop through all input files passed via stdin
|
||||||
|
read -r -a custom_init_scripts <<< "$@"
|
||||||
|
failure=0
|
||||||
|
if [[ "${#custom_init_scripts[@]}" -gt 0 ]]; then
|
||||||
|
for custom_init_script in "${custom_init_scripts[@]}"; do
|
||||||
|
[[ ! "$custom_init_script" =~ ^.*(\.sql|\.sql\.gz)$ ]] && continue
|
||||||
|
info "Executing ${custom_init_script}"
|
||||||
|
mysql_execute "$custom_init_script" || failure=1
|
||||||
|
[[ "$failure" -ne 0 ]] && error "Failed to execute ${custom_init_script}"
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
if [[ "$failure" -ne 0 ]]; then
|
|
||||||
error "Failed to execute ${f}"
|
exit "$failure"
|
||||||
exit "$failure"
|
|
||||||
fi
|
|
||||||
|
|||||||
24
bitnami/phpbb/3/debian-10/rootfs/post-init.sh
Normal file → Executable file
24
bitnami/phpbb/3/debian-10/rootfs/post-init.sh
Normal file → Executable file
@@ -1,15 +1,23 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# shellcheck disable=SC1091
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o nounset
|
||||||
|
set -o pipefail
|
||||||
# set -o xtrace # Uncomment this line for debugging purposes
|
# set -o xtrace # Uncomment this line for debugging purposes
|
||||||
|
|
||||||
. /opt/bitnami/base/functions
|
# Only execute init scripts once
|
||||||
|
if [[ ! -f "/bitnami/phpbb/.user_scripts_initialized" ]]; then
|
||||||
if [[ -d /docker-entrypoint-init.d ]] && [[ ! -f "/bitnami/phpbb/.user_scripts_initialized" ]]; then
|
read -r -a init_scripts <<< "$(find "/docker-entrypoint-init.d" -type f -print0 | xargs -0)"
|
||||||
for f in /docker-entrypoint-init.d/*; do
|
if [[ "${#init_scripts[@]}" -gt 0 ]] && [[ ! -f "/bitnami/phpbb/.user_scripts_initialized" ]]; then
|
||||||
for p in /post-init.d/*.sh; do
|
mkdir -p "/bitnami/phpbb"
|
||||||
"$p" "$f"
|
for init_script in "${init_scripts[@]}"; do
|
||||||
|
for init_script_type_handler in /post-init.d/*.sh; do
|
||||||
|
"$init_script_type_handler" "$init_script"
|
||||||
|
done
|
||||||
done
|
done
|
||||||
done
|
fi
|
||||||
info "Custom scripts were executed"
|
|
||||||
touch "/bitnami/phpbb/.user_scripts_initialized"
|
touch "/bitnami/phpbb/.user_scripts_initialized"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ Bitnami containers can be used with [Kubeapps](https://kubeapps.com/) for deploy
|
|||||||
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/).
|
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/).
|
||||||
|
|
||||||
|
|
||||||
* [`3-debian-10`, `3.3.0-debian-10-r146`, `3`, `3.3.0`, `latest` (3/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-phpbb/blob/3.3.0-debian-10-r146/3/debian-10/Dockerfile)
|
* [`3-debian-10`, `3.3.0-debian-10-r147`, `3`, `3.3.0`, `latest` (3/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-phpbb/blob/3.3.0-debian-10-r147/3/debian-10/Dockerfile)
|
||||||
|
|
||||||
Subscribe to project updates by watching the [bitnami/phpbb GitHub repo](https://github.com/bitnami/bitnami-docker-phpbb).
|
Subscribe to project updates by watching the [bitnami/phpbb GitHub repo](https://github.com/bitnami/bitnami-docker-phpbb).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user