Basically, every directory you have to worry about is found inside /home/odoo.
The directory structure is similar to odoo.sh, but not exactly the
same. This is the structure:
custom/
repositories/
src/
odoo/
enterprise/
repositories/
data/
addons/
filestore/
sessions/
.config/
odoo.conf
.resources/
build.d/
conf.d/
entrypoint.d/
repos.d/
requirements/
build_deps.txt
apt.txt
pip.txt
| Path | Description |
|---|---|
custom/repositories |
Repositories cloned here are loaded with higher priority. Usefull for local development. |
src/odoo |
Odoo source code. Installed automatically if INCLUDE_ODOO. |
src/enterprise |
Odoo enterprise code. Installed automatically if INCLUDE_ENTERPRISE. |
src/repositories |
Project repositories. They are automatically aggregated from repos.d. |
data/ |
Odoo data directory. You usually want to persist it. |
.config/odoo.conf |
Odoo configuration file. Generated automatically from conf.d. |
.resources/build.d |
Image build scripts. They run in alphabetical order ON BUILD. |
.resources/conf.d |
Files here will be environment-variable-expanded and concatenated in odoo.conf in the entrypoint. |
.resources/entrypoint.d |
Any executables found here will be run when you launch your container. |
.resources/repos.d |
All repositories files in this directory will be aggregated ON BUILD by git-aggregator in src/repositories. |
.resources/requirements |
Image dependencies declarations. They're installed ON BUILD. |
The following variables can customize entrypoint behaviour and odoo.conf:
PGHOSTPGPORTPGDATABASEPGUSERPGPASSWORDPROXY_MODE
SMTP_SERVERSMTP_PORTSMTP_USERSMTP_PASSWORDSMTP_SSLEMAIL_FROM
WORKERSMAX_CRON_THREADSDB_MAXCONNLIMIT_MEMORY_HARDLIMIT_MEMORY_SOFTLIMIT_TIME_CPULIMIT_TIME_REALLIMIT_TIME_REAL_CRON
UNACCENTADMIN_PASSWORDLOG_LEVELSERVER_WIDE_MODULES
CUSTOM_CONFIG: Custom configuration to be added toodoo.conf.CUSTOM_REPOSITORIES: Custom git-aggregator yaml, repositories will be aggregated at runtime.CUSTOM_REQUIREMENTS: Custom pip requirements.txt, to be installed at runtime.CUSTOM_ENTRYPOINT: Custom script to be executed at runtime.AUTO_UPDATE_MODULES: Runclick-odoo-updateto automatically update addons.
The following ON BUILD arguments are available to customize some behaviours:
ODOO_SOURCE(default:odoo/odoo)ODOO_SOURCE_DEPTH(default:1)INSTALL_ODOO(default:false)INSTALL_ENTERPRISE(default:false)GITHUB_USER: Required ifINSTALL_ENTERPRISEGITHUB_TOKEN: Required ifINSTALL_ENTERPRISE
For convenience, the following arguments are available when building this image:
BUILD_TAG_BASE: besides building the -onbuild image, will also build a tag without onbuild.BUILD_TAG_COMMUNITY: besides building the -onbuild image, will also build a tag containing Odoo CE.BUILD_TAG_ENTERPRISE: besides building the -onbuild image, will also build a tag containing Odoo EE.