Releases: camptocamp/docker-odoo-project
1.2.0
Libraries
- Upgrade to Marabunta 0.4.0 (https://github.com/camptocamp/marabunta/releases/tag/0.4.0)
- Upgrade to Anthem 0.3.0 (https://github.com/camptocamp/anthem/releases/tag/0.3.0)
1.1.0
1.0.3
1.0.2
1.0.1
New auto-upgrading stack
The docker image for Odoo 9.0 is camptocamp/odoo-project:9.0-1.0.0
This release is not backward compatible, it drops oerpscenario
.
Changes
- Drop
oerpscenario
which will no longer maintained. marabunta
(https://github.com/camptocamp/marabunta) is now called on
startup to automatically apply the migrations scripts for new versions.anthem
(https://github.com/camptocamp/anthem) is added to write the
migration scripts.- The
odoo
directory is now a (local) Python package, so we can use
pkg_resources
to find files. - Python packages are now installed from
pip
instead of Debian packages pip install -e src
is called to install Odoo, soodoo.py
andimport openerp
are widely available without having to resort onPATH
modifications.- The
DEMO
environment variable now only acceptsTrue
orFalse
,
loading demo data from scenario (anthem songs) should be done using
MARABUNTA_MODE=<mode>
. It allows to have an unlimited number of
different scenario (demo, light, full, or whatever) SCENARIO_MAIN_TAG
has no effect
Instructions for migration of your project
New files / directory to add in the odoo
directory:
-
Directory
songs/
, which is used to store theanthem
songs (upgrade scripts) -
File
setup.py
, used to make a Python package from the project's
directory, allowing to find data and songs for the migrations# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('VERSION') as fd: version = fd.read().strip() setup( name="project-name", version=version, description="project description", license='GNU Affero General Public License v3 or later (AGPLv3+)', author="Author...", author_email="email...", url="url...", packages=['songs'] + ['songs.%s' % p for p in find_packages('./songs')], include_package_data=True, classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved', 'License :: OSI Approved :: ' 'GNU Affero General Public License v3 or later (AGPLv3+)', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: Implementation :: CPython', ], )
-
VERSION
contains the current version number, such as9.1.0
. -
migration.yml
is themarabunta
's manifest file, example:migration: options: install_command: odoo.py versions: - version: 9.0.0 operations: pre: - "sh -c 'PGPASSWORD=$DB_PASSWORD psql -h db -U $DB_USER -c \"CREATE EXTENSION pg_trgm;" $DB_NAME'" post: - anthem songs.install.base::main addons: upgrade: - sale - document - version: 9.1.0 addons: upgrade: - stock
-
If you use
DEMO=odoo
, you should replace it withDEMO=True
-
If you use
DEMO=scenario
, you should remove the variable and use
MARABUNTA_MODE=demo
-
If you use
DEMO=all
, you should replace it withDEMO=True
and add
MARABUNTA_MODE=demo
-
If you use
oerpscenario
in your project, you should plan to replace it by
anthem
. In the meantime, you need to add it in your project:$ git submodule add https://github.com/camptocamp/oerpscenario.git odoo/oerpscenario $ mkdir -p odoo/bin $ wget https://raw.githubusercontent.com/camptocamp/docker-odoo-project/c9a2afcf8152e5323cc49c919443602c54c839fd/9.0/bin/oerpscenario -O odoo/bin/oerpscenario $ chmod +x odoo/bin/oerpscenario
And in your local Dockerfile, add the following lines:
COPY oerpscenario /opt/odoo/oerpscenario COPY bin/oerpscenario /opt/odoo/bin/oerpscenario
Then, add call to
oerpscenario
in themarabunta
'smigration.yml
operations.migration: versions: - version: 9.0.0 operations: post: - oerpscenario -t my-project-tag