Skip to content

Latest commit

 

History

History
 
 

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Odoo Project Example

The base images does nothing alone, it only contains the dependencies and a few tools, but you need to create an inheriting image with the odoo and addons code.

Follow the steps:

  1. Create directories. This is mandatory, they will be copied in the image

     mkdir -p odoo/external-src odoo/local-src odoo/data odoo/songs
    
  2. Add a submodule for Odoo (official or OCA/OCB)

     git submodule init
     git submodule add [email protected]:odoo/odoo.git odoo/src
    
  3. Optionally add submodules for external addons in odoo/external-src

     git submodule add [email protected]:OCA/server-tools.git odoo/external-src/server-tools
    
  4. Optionally add custom addons in odoo/local-src

  5. Create the Dockerfile, the bare minimum being (see also the example file that installs additional dependencies):

     FROM camptocamp/odoo-project:11.0
     MAINTAINER <name>
    
     ENV ADDONS_PATH=/odoo/local-src,/odoo/external-src/server-tools,/odoo/src/addons
    
  6. Build your image

     docker build -t youruser/odoo-project-example .
    
  7. Optionally create a docker-compose.yml file. This example is a development composition.