These images provide the following guarantees:
- Odoo runtime dependencies are installed (
wkhtmltopdf
,lessc
, etc). - A shallow git clone of Odoo is in
/opt/odoo
. - Odoo is installed in a virtualenv isolated from system python packages.
- The Odoo configuration file exists at
$ODOO_RC
. - The
python
,pip
andodoo
(openerp-server
for Odoo < 10) commands found first inPATH
are from that virtualenv.
Environment variables:
ODOO_VERSION
(8.0, ..., 14.0, ...)ODOO_RC
OPENERP_SERVER=$ODOO_RC
PGHOST=postgres
PGUSER=odoo
PGPASSWORD=odoo
PGDATABASE=odoo
PIP_INDEX_URL=https://wheelhouse.odoo-community.org/oca-simple-and-pypi
PIP_DISABLE_PIP_VERSION_CHECK=1
PIP_NO_PYTHON_VERSION_WARNING=1
ADDONS_DIR=.
INCLUDE=
EXCLUDE=
OCA_GIT_USER_NAME=oca-ci
: git user name to push.pot
filesOCA_GIT_USER_EMAIL=oca-ci@odoo-community.org
: git user email to push.pot
files
Available commands:
oca_install_addons
: make addons to test (found in$ADDONS_DIR
, modulo$INCLUDE
an$EXCLUDE
) and their dependencies available in the Odoo addons path.oca_init_test_database
: create a test database named$PGDATABASE
with direct dependencies of addons to test installed in itoca_run_tests
: run tests of addons on$PGDATABASE
, with coverage.oca_export_and_commit_pot
: export.pot
files for all addons in$ADDONS_DIR
that are installed in$PGDATABASE
; git commit changes if any, using$OCA_GIT_USER_NAME
and$OCA_GIT_USER_EMAIL
.
Build args:
- python_version (no default)
- odoo_version (no default)
- codename (default: focal)
- odoo_org_repo (default: odoo/odoo)