3.11.5-debian-10-r10 release
This commit is contained in:
parent
b9ef0d08b9
commit
bcffaa2502
|
|
@ -39,7 +39,7 @@ RUN /opt/bitnami/scripts/mysql-client/postunpack.sh
|
||||||
ENV APACHE_HTTPS_PORT_NUMBER="" \
|
ENV APACHE_HTTPS_PORT_NUMBER="" \
|
||||||
APACHE_HTTP_PORT_NUMBER="" \
|
APACHE_HTTP_PORT_NUMBER="" \
|
||||||
BITNAMI_APP_NAME="moodle" \
|
BITNAMI_APP_NAME="moodle" \
|
||||||
BITNAMI_IMAGE_VERSION="3.11.5-debian-10-r9" \
|
BITNAMI_IMAGE_VERSION="3.11.5-debian-10-r10" \
|
||||||
LANG="en_US.UTF-8" \
|
LANG="en_US.UTF-8" \
|
||||||
LANGUAGE="en_US:en" \
|
LANGUAGE="en_US:en" \
|
||||||
PATH="/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/opt/bitnami/apache/bin:/opt/bitnami/mysql/bin:/opt/bitnami/common/bin:$PATH"
|
PATH="/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/opt/bitnami/apache/bin:/opt/bitnami/mysql/bin:/opt/bitnami/common/bin:$PATH"
|
||||||
|
|
|
||||||
|
|
@ -332,20 +332,21 @@ moodle_upgrade() {
|
||||||
#########################
|
#########################
|
||||||
moodle_configure_wwwroot() {
|
moodle_configure_wwwroot() {
|
||||||
local -r http_port="${WEB_SERVER_HTTP_PORT_NUMBER:-"$WEB_SERVER_DEFAULT_HTTP_PORT_NUMBER"}"
|
local -r http_port="${WEB_SERVER_HTTP_PORT_NUMBER:-"$WEB_SERVER_DEFAULT_HTTP_PORT_NUMBER"}"
|
||||||
|
# Sanitize the hostname including quotes
|
||||||
|
local host="${MOODLE_HOST:+"'${MOODLE_HOST}'"}"
|
||||||
|
# Default value if the hostname isn't provided
|
||||||
|
host="${MOODLE_HOST:-"\$_SERVER['HTTP_HOST']"}"
|
||||||
|
|
||||||
# sed replacement notes:
|
# sed replacement notes:
|
||||||
# - The ampersand ('&') is escaped due to sed replacing any non-escaped ampersand characters with the matched string
|
# - The ampersand ('&') is escaped due to sed replacing any non-escaped ampersand characters with the matched string
|
||||||
# - For the replacement text to be multi-line, an \ needs to be specified to escape the newline character
|
# - For the replacement text to be multi-line, an \ needs to be specified to escape the newline character
|
||||||
local -r MOODLE_HOST="${MOODLE_HOST:+"'${MOODLE_HOST}'"}"
|
|
||||||
local -r host="${MOODLE_HOST:-"\$_SERVER['HTTP_HOST']"}"
|
|
||||||
|
|
||||||
local -r conf_to_replace="if (empty(\$_SERVER['HTTP_HOST'])) {\\
|
local -r conf_to_replace="if (empty(\$_SERVER['HTTP_HOST'])) {\\
|
||||||
\$_SERVER['HTTP_HOST'] = '127.0.0.1:${http_port}';\\
|
\$_SERVER['HTTP_HOST'] = '127.0.0.1:${http_port}';\\
|
||||||
}\\
|
}\\
|
||||||
if (isset(\$_SERVER['HTTPS']) \&\& \$_SERVER['HTTPS'] == 'on') {\\
|
if (isset(\$_SERVER['HTTPS']) \&\& \$_SERVER['HTTPS'] == 'on') {\\
|
||||||
\$CFG->wwwroot = 'https://' . ${host};\\
|
\$CFG->wwwroot = 'https://' . ${host};\\
|
||||||
} else {\\
|
} else {\\
|
||||||
\$CFG->wwwroot = 'http://' . ${host};\\
|
\$CFG->wwwroot = 'http://' . ${host};\\
|
||||||
}"
|
}"
|
||||||
|
|
||||||
replace_in_file "$MOODLE_CONF_FILE" "\\\$CFG->wwwroot\s*=.*" "$conf_to_replace"
|
replace_in_file "$MOODLE_CONF_FILE" "\\\$CFG->wwwroot\s*=.*" "$conf_to_replace"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ moodle_env_vars=(
|
||||||
MOODLE_SKIP_BOOTSTRAP
|
MOODLE_SKIP_BOOTSTRAP
|
||||||
MOODLE_INSTALL_EXTRA_ARGS
|
MOODLE_INSTALL_EXTRA_ARGS
|
||||||
MOODLE_SITE_NAME
|
MOODLE_SITE_NAME
|
||||||
|
MOODLE_HOST
|
||||||
MOODLE_CRON_MINUTES
|
MOODLE_CRON_MINUTES
|
||||||
MOODLE_USERNAME
|
MOODLE_USERNAME
|
||||||
MOODLE_PASSWORD
|
MOODLE_PASSWORD
|
||||||
|
|
@ -79,8 +80,8 @@ MOODLE_SKIP_BOOTSTRAP="${MOODLE_SKIP_BOOTSTRAP:-"${MOODLE_SKIP_INSTALL:-}"}"
|
||||||
export MOODLE_SKIP_BOOTSTRAP="${MOODLE_SKIP_BOOTSTRAP:-}" # only used during the first initialization
|
export MOODLE_SKIP_BOOTSTRAP="${MOODLE_SKIP_BOOTSTRAP:-}" # only used during the first initialization
|
||||||
export MOODLE_INSTALL_EXTRA_ARGS="${MOODLE_INSTALL_EXTRA_ARGS:-}" # only used during the first initialization
|
export MOODLE_INSTALL_EXTRA_ARGS="${MOODLE_INSTALL_EXTRA_ARGS:-}" # only used during the first initialization
|
||||||
export MOODLE_SITE_NAME="${MOODLE_SITE_NAME:-New Site}" # only used during the first initialization
|
export MOODLE_SITE_NAME="${MOODLE_SITE_NAME:-New Site}" # only used during the first initialization
|
||||||
export MOODLE_CRON_MINUTES="${MOODLE_CRON_MINUTES:-1}"
|
|
||||||
export MOODLE_HOST="${MOODLE_HOST:-}" # only used during the first initialization
|
export MOODLE_HOST="${MOODLE_HOST:-}" # only used during the first initialization
|
||||||
|
export MOODLE_CRON_MINUTES="${MOODLE_CRON_MINUTES:-1}"
|
||||||
|
|
||||||
# Moodle credentials
|
# Moodle credentials
|
||||||
export MOODLE_USERNAME="${MOODLE_USERNAME:-user}" # only used during the first initialization
|
export MOODLE_USERNAME="${MOODLE_USERNAME:-user}" # only used during the first initialization
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,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`, `3-debian-10`, `3.11.5`, `3.11.5-debian-10-r9`, `latest` (3/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-moodle/blob/3.11.5-debian-10-r9/3/debian-10/Dockerfile)
|
* [`3`, `3-debian-10`, `3.11.5`, `3.11.5-debian-10-r10`, `latest` (3/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-moodle/blob/3.11.5-debian-10-r10/3/debian-10/Dockerfile)
|
||||||
|
|
||||||
Subscribe to project updates by watching the [bitnami/moodle GitHub repo](https://github.com/bitnami/bitnami-docker-moodle).
|
Subscribe to project updates by watching the [bitnami/moodle GitHub repo](https://github.com/bitnami/bitnami-docker-moodle).
|
||||||
|
|
||||||
|
|
@ -220,6 +220,7 @@ Available environment variables:
|
||||||
- `MOODLE_PASSWORD`: Moodle application password. Default: **bitnami**
|
- `MOODLE_PASSWORD`: Moodle application password. Default: **bitnami**
|
||||||
- `MOODLE_EMAIL`: Moodle application email. Default: **user@example.com**
|
- `MOODLE_EMAIL`: Moodle application email. Default: **user@example.com**
|
||||||
- `MOODLE_SITE_NAME`: Moodle site name. Default: **New Site**
|
- `MOODLE_SITE_NAME`: Moodle site name. Default: **New Site**
|
||||||
|
- `MOODLE_SITE_NAME`: Moodle www root. No defaults.
|
||||||
- `MOODLE_SKIP_BOOTSTRAP`: Do not initialize the Moodle database for a new deployment. This is necessary in case you use a database that already has Moodle data. Default: **no**
|
- `MOODLE_SKIP_BOOTSTRAP`: Do not initialize the Moodle database for a new deployment. This is necessary in case you use a database that already has Moodle data. Default: **no**
|
||||||
|
|
||||||
##### Use an existing database
|
##### Use an existing database
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue