A base image for our Odoo projects.
This image alone does nothing because it doesn't contain any Odoo's code. The code should be added in a Docker inheriting from this image.
A project has to respect a structure, look at the example.
The host for the database is db
.
You are expected to set the following environment variables:
DB_USER
: user that connects on the dbDB_PASS
: password for this userDB_NAME
: name of the databaseSCENARIO_MAIN_TAG
: tag filtering oerpscenario's features, usually the name of the project- Optionally every variable used in
etc/openerp.cfg.tmpl
, the syntax is: https://github.com/jwilder/dockerize#using-templates
A volume /data/odoo
is shared, which is expected to contain Odoo's filestore
(this path is set in openerp.cfg
).
Ports 8069 and 8072 are exposed by default.
When a container is started, if no database exists, the entrypoint will call
the setup script of oerpscenario
with the tags $SCENARIO_MAIN_TAG
and
setup
followed by demo
, creating and initializing the database.