Skip to content

shine-it/odoo_project_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published