Compare commits

..

8 commits

Author SHA1 Message Date
Matt Marcha 195110a665 Make branch generic 2025-05-07 15:45:37 -10:00
Matt Marcha 190c211b66 add base just in case 2025-04-29 12:23:47 -10:00
Matt Marcha bb4feb6eb1 critical typo 2025-04-29 11:43:53 -10:00
Matt Marcha 7b02a442ac add target version 2025-04-28 12:54:02 -10:00
Matt Marcha 95bcb0b51a fix compose file 2025-04-28 08:42:31 -10:00
Matt Marcha 0a1192d86c fix image & command 2025-04-25 17:10:52 -10:00
Matt Marcha 15347f1160 environment for v15 migration 2025-04-25 15:57:11 -10:00
Matt Marcha 3f6a860602 intitial commit v14 2025-04-25 15:28:08 -10:00
4 changed files with 27 additions and 15 deletions

View file

@ -1,4 +1,4 @@
ODOO_VERSION=17.0
COMMAND=-d odoo
COMMAND=
PG_VERSION=14.12 #Moved to 14.15 in Odoo 18
ENTERPRISE_PATH=/local/path/to/enterprise/modules
OPENUPGRADE_PATH=/home/user/openupgrade/15

10
Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM odoo:15.0
USER root
RUN apt update
RUN apt install -y git
RUN pip3 install --ignore-installed git+https://github.com/OCA/openupgradelib.git@master
RUN pip3 install lxml_html_clean
# Uncomment if target version is higher than 15
# RUN export OPENUPGRADE_TARGET_VERSION=17.0
USER odoo

View file

@ -1,22 +1,24 @@
[options]
addons_path = /mnt/extra-addons,/mnt/enterprise
addons_path = /mnt/extra-addons,/mnt/openupgrade
upgrade_path = /mnt/openupgrade/openupgrade_scripts/scripts
server_wide_modules = base,web,openupgrade_framework
; data_dir = /var/lib/odoo
admin_passwd = odoo
; csv_internal_sep = ,
; db_maxconn = 64
db_name = odoo
; db_name = odoo
db_user = odoo
db_password = odoo
; db_template = template1
dbfilter = .*
debug_mode = True
; without_demo = all
without_demo = all
; email_from = False
; limit_memory_hard = 2684354560
; limit_memory_soft = 2147483648
; limit_request = 8192
; limit_time_cpu = 60
; limit_time_real = 120
; limit_memory_hard = 26843545600
; limit_memory_soft = 21474836480
; limit_request = 81920
; limit_time_cpu = 600
; limit_time_real = 1200
; list_db = True
; log_db = False
; log_handler = [':INFO']
@ -31,7 +33,7 @@ smtp_port = 1025
smtp_server = mailcatcher
; smtp_ssl = False
; smtp_user = False
; workers = 0
; workers = 7
; xmlrpc = True
; xmlrpc_interface =
; xmlrpc_port = 8069

View file

@ -1,6 +1,6 @@
services:
web:
image: "odoo:${ODOO_VERSION}"
build: .
depends_on:
- db
ports:
@ -9,10 +9,10 @@ services:
- odoo-web:/var/lib/odoo
- ./config:/etc/odoo
- ./modules:/mnt/extra-addons
- ${ENTERPRISE_PATH}:/mnt/enterprise
- ${OPENUPGRADE_PATH}:/mnt/openupgrade
command: "odoo ${COMMAND}"
db:
image: "postgres:${PG_VERSION}"
image: postgres:12.20
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=odoo