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=
COMMAND=-d odoo
PG_VERSION=14.12 #Moved to 14.15 in Odoo 18 PG_VERSION=14.12 #Moved to 14.15 in Odoo 18
ENTERPRISE_PATH=/local/path/to/enterprise/modules 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] [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 ; data_dir = /var/lib/odoo
admin_passwd = odoo admin_passwd = odoo
; csv_internal_sep = , ; csv_internal_sep = ,
; db_maxconn = 64 ; db_maxconn = 64
db_name = odoo ; db_name = odoo
db_user = odoo db_user = odoo
db_password = odoo db_password = odoo
; db_template = template1 ; db_template = template1
dbfilter = .* dbfilter = .*
debug_mode = True debug_mode = True
; without_demo = all without_demo = all
; email_from = False ; email_from = False
; limit_memory_hard = 2684354560 ; limit_memory_hard = 26843545600
; limit_memory_soft = 2147483648 ; limit_memory_soft = 21474836480
; limit_request = 8192 ; limit_request = 81920
; limit_time_cpu = 60 ; limit_time_cpu = 600
; limit_time_real = 120 ; limit_time_real = 1200
; list_db = True ; list_db = True
; log_db = False ; log_db = False
; log_handler = [':INFO'] ; log_handler = [':INFO']
@ -31,7 +33,7 @@ smtp_port = 1025
smtp_server = mailcatcher smtp_server = mailcatcher
; smtp_ssl = False ; smtp_ssl = False
; smtp_user = False ; smtp_user = False
; workers = 0 ; workers = 7
; xmlrpc = True ; xmlrpc = True
; xmlrpc_interface = ; xmlrpc_interface =
; xmlrpc_port = 8069 ; xmlrpc_port = 8069

View file

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