mirror of
https://github.com/bitnami/containers.git
synced 2026-10-10 03:39:51 +02:00
[bitnami/odoo] Release 19.0.20260601-debian-12-r1 (#94492)
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
@@ -7,7 +7,7 @@ ARG DOWNLOADS_URL="downloads.bitnami.com/files/stacksmith"
|
||||
ARG TARGETARCH
|
||||
|
||||
LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
|
||||
org.opencontainers.image.created="2026-06-01T07:19:00Z" \
|
||||
org.opencontainers.image.created="2026-06-10T07:57:16Z" \
|
||||
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
|
||||
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/odoo/README.md" \
|
||||
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/odoo" \
|
||||
@@ -27,8 +27,8 @@ RUN --mount=type=secret,id=downloads_url,env=SECRET_DOWNLOADS_URL \
|
||||
DOWNLOADS_URL=${SECRET_DOWNLOADS_URL:-${DOWNLOADS_URL}} ; \
|
||||
mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ || exit 1 ; \
|
||||
COMPONENTS=( \
|
||||
"python-3.12.13-11-linux-${OS_ARCH}-debian-12" \
|
||||
"render-template-1.0.9-165-linux-${OS_ARCH}-debian-12" \
|
||||
"python-3.12.13-12-linux-${OS_ARCH}-debian-12" \
|
||||
"render-template-1.0.9-166-linux-${OS_ARCH}-debian-12" \
|
||||
"postgresql-client-18.4.0-0-linux-${OS_ARCH}-debian-12" \
|
||||
"node-22.22.3-0-linux-${OS_ARCH}-debian-12" \
|
||||
"odoo-19.0.20260601-0-linux-${OS_ARCH}-debian-12" \
|
||||
@@ -58,8 +58,8 @@ COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/odoo/postunpack.sh
|
||||
ENV APP_VERSION="19.0.20260601" \
|
||||
BITNAMI_APP_NAME="odoo" \
|
||||
IMAGE_REVISION="0" \
|
||||
LD_LIBRARY_PATH="/opt/bitnami/postgresql/lib:$LD_LIBRARY_PATH" \
|
||||
IMAGE_REVISION="1" \
|
||||
LD_LIBRARY_PATH="/opt/bitnami/postgresql/lib" \
|
||||
PATH="/opt/bitnami/python/bin:/opt/bitnami/common/bin:/opt/bitnami/postgresql/bin:/opt/bitnami/node/bin:/opt/bitnami/odoo/bin:$PATH"
|
||||
|
||||
EXPOSE 3000 8069 8072
|
||||
|
||||
-1
@@ -1 +0,0 @@
|
||||
a13e9f6ab18a719682fd94b0bdd131a771835c8cb707e2451c472a8b6927f3f7 python-3.12.13-11-linux-amd64-debian-12.tar.gz
|
||||
-1
@@ -1 +0,0 @@
|
||||
f79c0e2b0c9179091f9b06c650c757680b91a9f655538e85968cce732f150ab6 python-3.12.13-11-linux-arm64-debian-12.tar.gz
|
||||
+1
@@ -0,0 +1 @@
|
||||
d750a115785a56002ab62b67f1cd27148f29d7640993606a50331c42908cedb9 python-3.12.13-12-linux-amd64-debian-12.tar.gz
|
||||
+1
@@ -0,0 +1 @@
|
||||
167870501660cdb2d9075f029431ffd97b83fae928d0f3cc476faa5c96d490fe python-3.12.13-12-linux-arm64-debian-12.tar.gz
|
||||
-1
@@ -1 +0,0 @@
|
||||
374910c7361f00d393eca79a749d29f389b4522057902c7655f0a3a5ae3d1b32 render-template-1.0.9-165-linux-amd64-debian-12.tar.gz
|
||||
-1
@@ -1 +0,0 @@
|
||||
d492024d2d8261cfb147e7b508d341b91349fd41cf41aecd0706046be8cb108b render-template-1.0.9-165-linux-arm64-debian-12.tar.gz
|
||||
+1
@@ -0,0 +1 @@
|
||||
e2467be27e79a387c78b8ef3a57ceaa07bea65009972571f20dcf58631656e0b render-template-1.0.9-166-linux-amd64-debian-12.tar.gz
|
||||
+1
@@ -0,0 +1 @@
|
||||
c2c7634c5c0882d2dbd822744f6b5bdb074a07a1abf710c67e1206f1c20b8afa render-template-1.0.9-166-linux-arm64-debian-12.tar.gz
|
||||
@@ -170,7 +170,7 @@ ensure_user_exists() {
|
||||
if [[ -n "$home" ]]; then
|
||||
mkdir -p "$home"
|
||||
usermod -d "$home" "$user" >/dev/null 2>&1
|
||||
configure_permissions_ownership "$home" -d "775" -f "664" -u "$user" -g "$group"
|
||||
configure_permissions_ownership "$home" -d "775" -f "664" -u "$user" -g "$group" -n
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#########################
|
||||
is_int() {
|
||||
local -r int="${1:?missing value}"
|
||||
if [[ "$int" =~ ^-?[0-9]+ ]]; then
|
||||
if [[ "$int" =~ ^-?[0-9]+$ ]]; then
|
||||
true
|
||||
else
|
||||
false
|
||||
|
||||
@@ -49,3 +49,36 @@ get_sematic_version () {
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
########################
|
||||
# Compares two semantic versions
|
||||
# Arguments:
|
||||
# $1 - version1: first version to compare
|
||||
# $2 - version2: second version to compare
|
||||
# Returns:
|
||||
# -1 if version1 is less than version2
|
||||
# 0 if version1 is equal to version2
|
||||
# 1 if version1 is greater than version2
|
||||
#########################
|
||||
compare_semantic_versions() {
|
||||
local version1="${1:?version1 is required}"
|
||||
local version2="${2:?version2 is required}"
|
||||
local major1 major2 minor1 minor2 patch1 patch2
|
||||
|
||||
major1="$(get_sematic_version "$version1" 1)"
|
||||
major2="$(get_sematic_version "$version2" 1)"
|
||||
minor1="$(get_sematic_version "$version1" 2)"
|
||||
minor2="$(get_sematic_version "$version2" 2)"
|
||||
patch1="$(get_sematic_version "$version1" 3)"
|
||||
patch2="$(get_sematic_version "$version2" 3)"
|
||||
|
||||
if [[ "$major1" -eq "$major2" ]] && [[ "$minor1" -eq "$minor2" ]] && [[ "$patch1" -eq "$patch2" ]]; then
|
||||
echo "0"
|
||||
elif [[ "$major1" -lt "$major2" ]] ||
|
||||
{ [[ "$major1" -eq "$major2" ]] && [[ "$minor1" -lt "$minor2" ]]; } ||
|
||||
{ [[ "$major1" -eq "$major2" ]] && [[ "$minor1" -eq "$minor2" ]] && [[ "$patch1" -lt "$patch2" ]]; }; then
|
||||
echo "-1"
|
||||
else
|
||||
echo "1"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -141,7 +141,10 @@ odoo_initialize() {
|
||||
list_db="$(is_boolean_yes "$ODOO_LIST_DB" && echo 'True' || echo 'False')" \
|
||||
odoo_debug="$(is_boolean_yes "$BITNAMI_DEBUG" && echo 'True' || echo 'False')" \
|
||||
event_port_parameter="$event_port_parameter" \
|
||||
proxy_mode="$(is_boolean_yes "$ODOO_ENABLE_PROXY_MODE" && echo 'True' || echo 'False')" \
|
||||
render-template "${template_dir}/odoo.conf.tpl" > "$ODOO_CONF_FILE"
|
||||
# No read access for others, creds are present in the config file
|
||||
am_i_root && configure_permissions_ownership "$ODOO_CONF_FILE" -u "$ODOO_DAEMON_USER" -g "root" -f "660"
|
||||
|
||||
if ! is_empty_value "$ODOO_SMTP_HOST"; then
|
||||
info "Configuring SMTP"
|
||||
|
||||
@@ -31,6 +31,7 @@ odoo_env_vars=(
|
||||
ODOO_SKIP_MODULES_UPDATE
|
||||
ODOO_LOAD_DEMO_DATA
|
||||
ODOO_LIST_DB
|
||||
ODOO_ENABLE_PROXY_MODE
|
||||
ODOO_EMAIL
|
||||
ODOO_PASSWORD
|
||||
ODOO_SMTP_HOST
|
||||
@@ -97,6 +98,7 @@ export ODOO_SKIP_BOOTSTRAP="${ODOO_SKIP_BOOTSTRAP:-no}" # only used during the f
|
||||
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
|
||||
export ODOO_LIST_DB="${ODOO_LIST_DB:-no}" # only used during the first initialization
|
||||
export ODOO_ENABLE_PROXY_MODE="${ODOO_ENABLE_PROXY_MODE:-no}" # only used during the first initialization
|
||||
|
||||
# Odoo credentials
|
||||
export ODOO_EMAIL="${ODOO_EMAIL:-user@example.com}" # only used during the first initialization
|
||||
|
||||
+2
-2
@@ -31,8 +31,8 @@ list_db = {{list_db}}
|
||||
; https://www.odoo.com/es_ES/forum/ayuda-1/could-not-obtain-lock-on-row-in-relation-ir-cron-74519
|
||||
max_cron_threads = 1
|
||||
pidfile = {{ODOO_PID_FILE}}
|
||||
; Odoo will always be running behind a proxy (e.g. Docker or Apache)
|
||||
proxy_mode = True
|
||||
; Set ODOO_ENABLE_PROXY_MODE=yes when Odoo runs behind a trusted reverse proxy
|
||||
proxy_mode = {{proxy_mode}}
|
||||
; osv_memory_age_limit = 1.0
|
||||
; osv_memory_count_limit = False
|
||||
; pg_path =
|
||||
|
||||
@@ -88,6 +88,7 @@ The following tables list the main variables you can set.
|
||||
| `ODOO_SKIP_MODULES_UPDATE` | Whether to perform initial update of the plugins installed. | `no` |
|
||||
| `ODOO_LOAD_DEMO_DATA` | Whether to load demo data. | `no` |
|
||||
| `ODOO_LIST_DB` | Whether the database selector is available. | `no` |
|
||||
| `ODOO_ENABLE_PROXY_MODE` | Whether to enable Werkzeug ProxyFix (Odoo proxy_mode). | `no` |
|
||||
| `ODOO_EMAIL` | Odoo user e-mail address. | `user@example.com` |
|
||||
| `ODOO_PASSWORD` | Odoo user password. | `nil` |
|
||||
| `ODOO_SMTP_HOST` | Odoo SMTP server host. | `nil` |
|
||||
|
||||
Reference in New Issue
Block a user