Install Docker by packagemanager
apt-get install docker
Install Docker Compose by Python pip. To get latest stable version.
pip3 install docker-compose
- Fork this repo to
<PROJECT>-docker-odoo
git clone <PROJECT>-docker-odoo
- cd
<PROJECT>-docker-odoo
- Edit
docker-compose.yml
. Change (Odoo) ports mapping. - Edit
docker/db/Dockerfile
.- Change PostreSQL version.
- Edit
docker/odoo/Dockerfile
- Change Ubuntu version
- Add/change OS and Python packages
Following commands/actions can run at same time.
./init
- Put the Odoo sources under
<PROJECT>-docker-odoo/odoo
git clone <GIT-REPO>
- Put the Odoo addons (custom, external) under
<PROJECT>-docker-odoo/addons
./run
In case of troubles (layout, styling), rename or remove the report.url
System parameter.
The debugger is running inside the container, so we need to attach into the container to use it.
- Find the container id using docker container ps and copy the first two or three letters of the container id column.
- Use the command
docker attach CONTAINER_ID
to attach to the container.
Ensure following are set in docker-compose.yml
:
stdin_open: true
tty: true
Following on host:
- Edit:
/etc/docker/daemon.json
{'userns-remap': 'bob'}
Check uid/groupid user. Change to 1000000 (very big int).
-
Edit:
/etc/subuid
bob:<UID>:1000000
-
Edit:
/etc/subgid
bob::1000000