From fe9928443f203a3061b709e5427c94d21bd0bfb3 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Thu, 22 Oct 2020 22:59:09 +0200 Subject: [PATCH] Bump Odoo to version 14.0.0 on Alpine 3.12 --- lxc-apps/odoo/app | 6 +++--- lxc-apps/odoo/image | 10 +++++----- lxc-apps/odoo/update.sh | 15 +++++++++++++++ 3 files changed, 23 insertions(+), 8 deletions(-) create mode 100755 lxc-apps/odoo/update.sh diff --git a/lxc-apps/odoo/app b/lxc-apps/odoo/app index b0a67df..2ba31df 100644 --- a/lxc-apps/odoo/app +++ b/lxc-apps/odoo/app @@ -1,5 +1,5 @@ { - "version": "13.0.0-200621", + "version": "14.0.0-201021", "meta": { "title": "Odoo", "desc-cs": "Sada aplikací pro správu organizace", @@ -8,7 +8,7 @@ }, "containers": { "odoo": { - "image": "odoo_13.0.0-200621", + "image": "odoo_14.0.0-201021", "depends": [ "odoo-postgres" ], @@ -18,7 +18,7 @@ } }, "odoo-postgres": { - "image": "postgres_12.2.0-200621", + "image": "postgres_12.4.0-201021", "mounts": { "odoo/postgres_data": "var/lib/postgresql" } diff --git a/lxc-apps/odoo/image b/lxc-apps/odoo/image index 7f44aab..6104640 100644 --- a/lxc-apps/odoo/image +++ b/lxc-apps/odoo/image @@ -1,15 +1,15 @@ -IMAGE odoo_13.0.0-200621 -FROM alpine3.11-python3.8_3.8.2-200621 +IMAGE odoo_14.0.0-201021 +FROM alpine3.12-python3.8_3.8.5-201021 RUN EOF # Install runtime dependencies - apk --no-cache add libjpeg-turbo libpq nodejs + apk --no-cache add libffi libjpeg-turbo libpq nodejs # Install build dependencies - apk --no-cache add --virtual .deps build-base git libjpeg-turbo-dev libxml2-dev libxslt-dev linux-headers openldap-dev postgresql-dev python3-dev + apk --no-cache add --virtual .deps build-base git libffi-dev libjpeg-turbo-dev libxml2-dev libxslt-dev linux-headers openldap-dev postgresql-dev python3-dev # Clone Odoo repository - git clone -b 13.0 --depth 1 https://github.com/odoo/odoo.git /srv/odoo + git clone -b 14.0 --depth 1 https://github.com/odoo/odoo.git /srv/odoo # Install Odoo cd /srv/odoo diff --git a/lxc-apps/odoo/update.sh b/lxc-apps/odoo/update.sh new file mode 100755 index 0000000..6f94ef7 --- /dev/null +++ b/lxc-apps/odoo/update.sh @@ -0,0 +1,15 @@ +#!/bin/sh +set -ev + +# Start service containers +spoc-container start odoo-postgres + +# Run database migration +spoc-container start odoo -- /srv/odoo/odoo-bin -c /srv/odoo/odoo.conf -u all +until grep -q 'odoo.modules.loading: Modules loaded.' /var/log/spoc/odoo.log; do + sleep 1 +done +spoc-container stop odoo + +# Disable database migrations +spoc-container stop odoo-postgres