Contributors mailing list archives


Re: Docker for OCA/OCB

Elico Corp, Eric Caudal
- 20/10/2015 11:44:39
Hi Alexandre,
Yes that is true and we have pending adding the credit of xcgd (we are still with a lot of WIP here).

We split because originally in China we could make xcgd work properly as is due to the fact that pip install was timing out. Now we do not have the issue anymore because we build in and mirror to China.
Nevertheless the main reason to fork was  XCGD bin and Odoo are stored in their servers whereas in our case, we use official pip + OCB github code. Size matters as well: we have optimized the size at a little bit less than a Gb when AFAIR their docker is almost 2 Gb. This is important to us where bandwidth is a huge constraint

Last but not least we will push soon a powerful mechanism based on oca_dependencies.txt file that will all to pull directly dependencies from github.

So yes we started our work based on XCGD (sorry again for the missing credits) but diverged in the approach, objectives and used sources.

Anyway, my original mail was actually to leverage an effort from the community and having XCGD on board would be helpful even if options taken might be discussed altogether for the particular case of OCA.

My original objective was to build a simple and easy to use docker file for quick and up-to-date deployment for OCB but with XCGD's team, it might become even easier.

Eric Caudal [Founder and CEO]
Skype: elico.corp. Phone: + 86 186 2136 1670 (Cell), + 86 21 6211 8017/27/37 (Office)
Elico Shanghai (Shenzhen/Singapore) Odoo Gold Partner, best Odoo Partner 2014 for APAC
On 10/20/2015 05:23 PM, Alexandre Fayolle wrote:
<blockquote cite="" type="cite">
Hello Eric,

I'm being told by Florent Aide (sitting next to me at the pyconfr code sprint) that the code of Elico's docker has lots of similarities with XCG's docker which is the number 2 for odoo on dockerhub (

While the license certainly allows this, I think some credit is due to the original author.

Moreover, rather than splitting efforts and maintaining a split in the OCA, I'd really rather such development was a shared effort with contributions to the original project.

I don't know if Florent would be willing to have his buildout recipe maintained as part of the OCA or not, but we should discuss this together (and this will be easier since Florent has recently subscribed to the contributors mailiing list).

So please guys talk together and decide on a way to move forward on this.


2015-10-20 3:53 GMT+02:00 Eric Caudal <>:

Dear community contributors,
We are currently using docker for our infrastructure and it has been quite a challenge to finetune the setup and deployment but we are finally getting there.

A difficult but fruitful learning
Besides we have an additional constraint which was to be able to execute Odoo in China which was challenging because Google content is currently blocked here.
We have tried many options and dockers but we wanted to automate as much as possible the docker creation and mirroring to China which we actually succeeding.
Versions of docker have evolved quite a lot and we recently came to the decision to deploy with docker-compose. There are still some shortcomings (log management is a pain) and bugs (if a download fails you need to restart docker for the server which is restarting all services...).
We are still on the way but we are quite happy with the result were now we can deploy in 5 min any github Odoo specific repository.

Odoo in docker
Our dockers are based on OCB, for v7, v8 and v9.
Chinese dockers are available for v7 and v8.
Chinese v9 will come in few days: they are based on OCB and replace all forbidden content by local mirrors.
For obvious reasons Enterprise will have to be built by the partners themselves on top of the v9 community docker.

Our dockerfiles are here:
You can download the dockers here:

NB: Actually, you can speed up docker download in China by adding in your /etc/default/docker file the following:
(or your favorite mirror for other countries) and restart the service.

How to get started
(a very quick one: we will publish a complete blogpost soon)
You need to install docker (>1.8) and docker-compose in your vm:
Launch the command to pull docker images:
- docker pull postgres:9.4
- docker pull elicocorp/odoo:9.0
(or docker pull elicocorp/odoo-cn:8.0 if you want version 8 of the Chinese code)
- Create a specific directory and create one file docker-compose.yml for postgresql and Odoo (we will soon push an example in our github)
- docker-compose up
et voilà Odoo will be available at port 8069.

We will publish in the coming days additional resources to automate the install for separate repos at docker build.

Contributing to OCA
Now, some contributors are having interesting discussions about recipes, voodoo, dockers etc. They are all interesting tools and probably complementary. Objectives of the users might be very different and each tool will bring advantages accordingly.

Everybody is welcome to propose contribution to our repository but we think it could be the moment to start having proper docker technology for the OCA.
Who would be willing to contribute?
I would propose to create a repository packaging (where we could find the anybox-buildout, docker files, voodoo and/or other packaging tools)
For docker files, we could start the contribution by pushing our code to the OCA or of course any other good alternative.

Eric Caudal [Founder and CEO]
Skype: elico.corp. Phone: + 86 186 2136 1670 (Cell), + 86 21 6211 8017/27/37 (Office)
Elico Shanghai (Shenzhen/Singapore) Odoo Gold Partner, best Odoo Partner 2014 for APAC

Post to:

Alexandre Fayolle
Chef de Projet
Tel : + 33 (0)4 58 48 20 30

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex

Post to: