[IMP] packaging: adapt packaging for current distros

As Odoo, now, needs at least python 3.10 have to build it against the
current distros.

closes odoo/odoo#136904

Related: odoo/documentation#5940
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Christophe Monniez
2023-10-06 21:11:52 +00:00
parent 163fb3ae61
commit 15b6cf888c
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# Please note that this Dockerfile is used for testing nightly builds and should
# not be used to deploy Odoo
FROM debian:bullseye
FROM debian:bookworm
MAINTAINER Odoo S.A. <info@odoo.com>
RUN apt-get update && \
+1 -1
View File
@@ -1,6 +1,6 @@
# Please note that this Dockerfile is used for testing nightly builds and should
# not be used to deploy Odoo
FROM fedora:36
FROM fedora:38
MAINTAINER Odoo S.A. <info@odoo.com>
# Dependencies and postgres
+2 -4
View File
@@ -327,11 +327,9 @@ class DockerDeb(Docker):
logging.info('Start testing debian package')
cmds = [
'service postgresql start',
'su postgres -s /bin/bash -c "createdb mycompany"',
'/usr/bin/apt-get update -y',
'/usr/bin/dpkg -i /data/src/odoo_%s.%s_all.deb ; /usr/bin/apt-get install -f -y' % (VERSION, TSTAMP),
'su odoo -s /bin/bash -c "odoo -d mycompany -i base --stop-after-init"',
'su odoo -s /bin/bash -c "odoo -d mycompany --pidfile=/data/src/odoo.pid"',
f'/usr/bin/apt-get install -y /data/src/odoo_{VERSION}.{TSTAMP}_all.deb',
'su odoo -s /bin/bash -c "odoo -d mycompany -i base --pidfile=/data/src/odoo.pid"',
]
self.run(' && '.join(cmds), self.args.build_dir, 'odoo-deb-test-%s' % TSTAMP, user='root', detach=True, exposed_port=8069, timeout=300)
self.test_odoo()