Public Repository

Last pushed: 7 months ago
Short Description
Odoo 8.0 for armhf (RPi2)
Full Description

This is a container to run odoo 8.0 on RPi2 .

Before you start, you have to run a postgres container . I use zsoltm/postgresql-armhf but i will create a postgres container more optimized for this.
Run postgres container:

docker run -v /home/ubuntu/flash/postgres_folder:/media/postgres_folder -d -e POSTGRES_USER=openerp_8 -e POSTGRES_PASSWORD=qwerty --name db zsoltm/postgresql-armhf

Odoo:

Run odoo :

docker run -p 8069:8069  -v /home/ubuntu/odoo_addons:/opt/openerp_8/my_addons  --name odoo --link db:db -u openerp_user -d dmisdani/arm-odoo:8.0 /opt/openerp_8/odoo/openerp-server -c /opt/openerp_8/odoo/conf/openerp-server.conf --db_host db

From Browser go to:

http://<raspbery_ip>:8069

Info:

Instalaton folder: /opt/openerp_8/odoo
odoo linux user: openerp_user

Additional notes:
You might get some DB errors if you chose zsoltm/postgresql-armhf
Probably you have to correct them with the following queries:
Firs connect to the db:

psql postgres -U openerp_8 -h db

Run the sql scripts:

update pg_database set datallowconn = TRUE where datname = 'template0';
\c template0
update pg_database set datistemplate = FALSE where datname = 'template1';
drop database template1;
create database template1 with template = template0 encoding = 'UTF8';
update pg_database set datistemplate = TRUE where datname = 'template1';
\c template1
update pg_database set datallowconn = FALSE where datname = 'template0';
Docker Pull Command
Owner
dmisdani

Comments (3)
andreilhicas
7 months ago

Hi, nice work, got it working on as Raspberry pi3.

Have you tried building an Image with newer Odoo versions?
I would subscribe @cheejon request on Dockerfile as well.

Thank you for your effort.

dmisdani
9 months ago

Hi cheejon,

I haven't created it with a dockerfile.
But if i find some time, i will try to prepare it.

Cheers

cheejon
9 months ago

Thank you, this image work well with e1ee1e11/postgresql, would you share the Dockerfile?