Skip to content

cyrilgdn/docker-odoo-project

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-odoo-project

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.

Configuration

The host for the database is db.

You are expected to set the following environment variables:

  • DB_USER: user that connects on the db
  • DB_PASS: password for this user
  • DB_NAME: name of the database
  • SCENARIO_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.

Particularities

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.

About

Base images for Odoo projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 62.3%
  • Gherkin 25.8%
  • Python 11.9%