14.0.20210810-debian-10-r13 release
This commit is contained in:
parent
343f85909f
commit
f350be7487
|
|
@ -24,7 +24,7 @@ RUN curl -sLO https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.
|
|||
COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/odoo/postunpack.sh
|
||||
ENV BITNAMI_APP_NAME="odoo" \
|
||||
BITNAMI_IMAGE_VERSION="14.0.20210810-debian-10-r12" \
|
||||
BITNAMI_IMAGE_VERSION="14.0.20210810-debian-10-r13" \
|
||||
PATH="/opt/bitnami/python/bin:/opt/bitnami/common/bin:/opt/bitnami/postgresql/bin:/opt/bitnami/node/bin:/opt/bitnami/odoo/bin:$PATH" \
|
||||
POSTGRESQL_CLIENT_CREATE_DATABASE_NAME="" \
|
||||
POSTGRESQL_CLIENT_CREATE_DATABASE_PASSWORD="" \
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
# Functions
|
||||
|
||||
########################
|
||||
# Replace a regex in a file
|
||||
# Replace a regex-matching string in a file
|
||||
# Arguments:
|
||||
# $1 - filename
|
||||
# $2 - match regex
|
||||
|
|
@ -30,7 +30,7 @@ replace_in_file() {
|
|||
# We should avoid using 'sed in-place' substitutions
|
||||
# 1) They are not compatible with files mounted from ConfigMap(s)
|
||||
# 2) We found incompatibility issues with Debian10 and "in-place" substitutions
|
||||
del=$'\001' # Use a non-printable character as a 'sed' delimiter to avoid issues
|
||||
local -r del=$'\001' # Use a non-printable character as a 'sed' delimiter to avoid issues
|
||||
if [[ $posix_regex = true ]]; then
|
||||
result="$(sed -E "s${del}${match_regex}${del}${substitute_regex}${del}g" "$filename")"
|
||||
else
|
||||
|
|
@ -39,6 +39,26 @@ replace_in_file() {
|
|||
echo "$result" > "$filename"
|
||||
}
|
||||
|
||||
########################
|
||||
# Replace a regex-matching multiline string in a file
|
||||
# Arguments:
|
||||
# $1 - filename
|
||||
# $2 - match regex
|
||||
# $3 - substitute regex
|
||||
# Returns:
|
||||
# None
|
||||
#########################
|
||||
replace_in_file_multiline() {
|
||||
local filename="${1:?filename is required}"
|
||||
local match_regex="${2:?match regex is required}"
|
||||
local substitute_regex="${3:?substitute regex is required}"
|
||||
|
||||
local result
|
||||
local -r del=$'\001' # Use a non-printable character as a 'sed' delimiter to avoid issues
|
||||
result="$(perl -pe "BEGIN{undef $/;} s${del}${match_regex}${del}${substitute_regex}${del}sg" "$filename")"
|
||||
echo "$result" > "$filename"
|
||||
}
|
||||
|
||||
########################
|
||||
# Remove a line in a file based on a regex
|
||||
# Arguments:
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ odoo_validate() {
|
|||
|
||||
# Validate user inputs
|
||||
check_yes_no_value "ODOO_SKIP_BOOTSTRAP"
|
||||
check_yes_no_value "ODOO_SKIP_MODULES_UPDATE"
|
||||
check_yes_no_value "ODOO_LOAD_DEMO_DATA"
|
||||
check_valid_port "ODOO_PORT_NUMBER"
|
||||
check_valid_port "ODOO_LONGPOLLING_PORT_NUMBER"
|
||||
|
|
@ -165,8 +166,10 @@ odoo_initialize() {
|
|||
# So we need to clear the assets or if none of the .css/.js will load properly
|
||||
info "Clearing assets cache from the database"
|
||||
postgresql_remote_execute "${db_execute_args[@]}" <<< "DELETE FROM ir_attachment WHERE url LIKE '/web/content/%';"
|
||||
info "Updating modules"
|
||||
odoo_execute --update=all
|
||||
if ! is_boolean_yes "$ODOO_SKIP_MODULES_UPDATE"; then
|
||||
info "Updating modules"
|
||||
odoo_execute --update=all
|
||||
fi
|
||||
fi
|
||||
|
||||
info "Persisting Odoo installation"
|
||||
|
|
@ -192,8 +195,10 @@ odoo_initialize() {
|
|||
db_user="$(odoo_conf_get "db_user")"
|
||||
db_pass="$(odoo_conf_get "db_password")"
|
||||
odoo_wait_for_postgresql_connection "$db_host" "$db_port" "$db_name" "$db_user" "$db_pass"
|
||||
info "Updating modules"
|
||||
odoo_execute --update=all
|
||||
if ! is_boolean_yes "$ODOO_SKIP_MODULES_UPDATE"; then
|
||||
info "Updating modules"
|
||||
odoo_execute --update=all
|
||||
fi
|
||||
fi
|
||||
|
||||
# Avoid exit code of previous commands to affect the result of this function
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ odoo_env_vars=(
|
|||
ODOO_PORT_NUMBER
|
||||
ODOO_LONGPOLLING_PORT_NUMBER
|
||||
ODOO_SKIP_BOOTSTRAP
|
||||
ODOO_SKIP_MODULES_UPDATE
|
||||
ODOO_LOAD_DEMO_DATA
|
||||
ODOO_EMAIL
|
||||
ODOO_PASSWORD
|
||||
|
|
@ -88,6 +89,7 @@ export ODOO_DAEMON_GROUP="odoo"
|
|||
export ODOO_PORT_NUMBER="${ODOO_PORT_NUMBER:-8069}" # only used during the first initialization
|
||||
export ODOO_LONGPOLLING_PORT_NUMBER="${ODOO_LONGPOLLING_PORT_NUMBER:-8072}" # only used during the first initialization
|
||||
export ODOO_SKIP_BOOTSTRAP="${ODOO_SKIP_BOOTSTRAP:-no}" # only used during the first initialization
|
||||
export ODOO_SKIP_MODULES_UPDATE="${ODOO_SKIP_MODULES_UPDATE:-no}" # only used during the first initialization
|
||||
export ODOO_LOAD_DEMO_DATA="${ODOO_LOAD_DEMO_DATA:-no}" # only used during the first initialization
|
||||
|
||||
# Odoo credentials
|
||||
|
|
|
|||
|
|
@ -38,7 +38,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/).
|
||||
|
||||
|
||||
- [`14`, `14-debian-10`, `14.0.20210810`, `14.0.20210810-debian-10-r12`, `latest` (14/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-odoo/blob/14.0.20210810-debian-10-r12/14/debian-10/Dockerfile)
|
||||
- [`14`, `14-debian-10`, `14.0.20210810`, `14.0.20210810-debian-10-r13`, `latest` (14/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-odoo/blob/14.0.20210810-debian-10-r13/14/debian-10/Dockerfile)
|
||||
- [`13`, `13-debian-10`, `13.0.20210810`, `13.0.20210810-debian-10-r13` (13/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-odoo/blob/13.0.20210810-debian-10-r13/13/debian-10/Dockerfile)
|
||||
- [`12`, `12-debian-10`, `12.0.20210815`, `12.0.20210815-debian-10-r8` (12/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-odoo/blob/12.0.20210815-debian-10-r8/12/debian-10/Dockerfile)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue