[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:
@@ -1,6 +1,6 @@
|
|||||||
# Please note that this Dockerfile is used for testing nightly builds and should
|
# Please note that this Dockerfile is used for testing nightly builds and should
|
||||||
# not be used to deploy Odoo
|
# not be used to deploy Odoo
|
||||||
FROM debian:bullseye
|
FROM debian:bookworm
|
||||||
MAINTAINER Odoo S.A. <info@odoo.com>
|
MAINTAINER Odoo S.A. <info@odoo.com>
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Please note that this Dockerfile is used for testing nightly builds and should
|
# Please note that this Dockerfile is used for testing nightly builds and should
|
||||||
# not be used to deploy Odoo
|
# not be used to deploy Odoo
|
||||||
FROM fedora:36
|
FROM fedora:38
|
||||||
MAINTAINER Odoo S.A. <info@odoo.com>
|
MAINTAINER Odoo S.A. <info@odoo.com>
|
||||||
|
|
||||||
# Dependencies and postgres
|
# Dependencies and postgres
|
||||||
|
|||||||
+2
-4
@@ -327,11 +327,9 @@ class DockerDeb(Docker):
|
|||||||
logging.info('Start testing debian package')
|
logging.info('Start testing debian package')
|
||||||
cmds = [
|
cmds = [
|
||||||
'service postgresql start',
|
'service postgresql start',
|
||||||
'su postgres -s /bin/bash -c "createdb mycompany"',
|
|
||||||
'/usr/bin/apt-get update -y',
|
'/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),
|
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 --stop-after-init"',
|
'su odoo -s /bin/bash -c "odoo -d mycompany -i base --pidfile=/data/src/odoo.pid"',
|
||||||
'su odoo -s /bin/bash -c "odoo -d mycompany --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.run(' && '.join(cmds), self.args.build_dir, 'odoo-deb-test-%s' % TSTAMP, user='root', detach=True, exposed_port=8069, timeout=300)
|
||||||
self.test_odoo()
|
self.test_odoo()
|
||||||
|
|||||||
Reference in New Issue
Block a user