Skip to Content
Menu
This question has been flagged

I've just started trying out Odoo. (v13.0)

I'd like to use docker to create a container that setups up Odoo the way I want it. I've used the official Odoo Docker images to install Odoo and it works well.

However, when I log in to the installed Odoo this way, I need to :

 - log in

 - create the database

 - install each module I want to enable (official, not custom)

I would like to be able to push all of this into the Dockerfile so Odoo opens up configured with the modules I want to enable.

If it matters, I need this to work instead of just using persistence with Docker volumes because I want to be able to collaborate with other members of the organization in determining which subset of modules are useful, and do so in such a way that they just spin up the container and see what it would look like.

Any of the following ways would be fine :

  - Some environment variables which control what gets installed

  - Some parameters in the odoo.conf file which specifies what to enable

  - Some CLI commands I can run once container spins up which triggers the install of modules

Any help moving in this direction would be appreciated.

Avatar
Discard
Author

I did see that. I wasn't able to find a list of what the modules are actually called, though, so I wasn't sure if that only applied to custom modules which could be named by folder or python package.

You can find a list in Developer mode when you look in the Apps Menu. They are the names of the folders. Python packages are installed when modules need them via the "external_dependencies" key - learn more at https://www.odoo.com/documentation/13.0/reference/module.html

Best Answer

Command-line options the first time you run Odoo?

Do you know about:


-i <modules>, --init <modules>

comma-separated list of modules to install before running the server (requires -d).


View the documentation at https://www.odoo.com/documentation/13.0/reference/cmdline.html


Avatar
Discard
Related Posts Replies Views Activity
1
Mar 24
271
2
Jul 20
3013
1
Jan 20
1553
1
Dec 19
3126
7
Apr 17
11879