docker icon indicating copy to clipboard operation
docker copied to clipboard

Docker Image for odoo 15

Open dedanirungu opened this issue 4 years ago • 15 comments
trafficstars

Docker Image for odoo 15

dedanirungu avatar Oct 07 '21 04:10 dedanirungu

Waiting..

herawais avatar Oct 07 '21 05:10 herawais

Compiled from Dockerfile used for 14.0 and got stuck at the error:

ERROR odoo.service.db: CREATE DATABASE failed: , Traceback (most recent call last):, File "/usr/lib/python3/dist-packages/odoo/service/db.py", line 66, in _initialize_db, env = odoo.api.Environment(cr, SUPERUSER_ID, {}), File "/usr/lib/python3/dist-packages/odoo/api.py", line 506, in __new__, for env in transaction.envs:, AttributeError: 'NoneType' object has no attribute 'envs'

Troubleshooting and waiting for a new Dockerfile...

vmelnych avatar Oct 07 '21 11:10 vmelnych

using this link http://nightly.odoo.com/15.0/nightly/deb/ @vmelnych ?

herawais avatar Oct 07 '21 11:10 herawais

@herawais yes, and adjusted Dockerfile (from 14.0) to the 15th release and checksums.

vmelnych avatar Oct 07 '21 11:10 vmelnych

Compiled and launched! The Dockerfile needs an extra lib: python3-openssl, then during creating a database it fails with the above listed error, but I updated res_users with the desired admin e-mail and a scrambled password and could log in!

vmelnych avatar Oct 07 '21 13:10 vmelnych

I get the same error but don't manage to fix it. Will there be an updated dockerfile soon as well? Thx

hpz24 avatar Oct 21 '21 11:10 hpz24

Hi am facing the same issue here. I cant locate odoo neither the addons folder. i have used these two commands.

docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name mydb postgres

docker run -v odoo\addon:/mnt/extra-addons -p 8069:8069 --name myisntance --link mydb:db -t odoo


am using winscp to see my files n folders.

Ricoamal avatar Oct 30 '21 15:10 Ricoamal

Is it able to get an older docker image? I need odoo15 - 20211018 because there are some errors in the newer images with such serious problems that normal work is no longer possible...

It starts with: UncaughtPromiseError > KeyNotFoundError Uncaught Promise > Cannot find mail.widgets.discuss in this registry!

and after that there are only follow-up errors in the important sales modules

hpz24 avatar Nov 07 '21 15:11 hpz24

@hpz24 , you can build one for yourself, by using the official Dockerfile. Do you need any tip how to do it? Alternatively you can pull docker pull vmelnych/odoo:15.20211006 - this is the earliest build of 15.x I have...

vmelnych avatar Nov 07 '21 21:11 vmelnych

hi @vmelnych, thanks for your tip with the older image - works better than the newest :) I'm not that good at generating my own Dockerfile - if you have useful links, that would be very helpful!

hpz24 avatar Nov 08 '21 08:11 hpz24

@hpz24 clone this repo and try it. Note, that Docker must be installed :)

vmelnych avatar Nov 08 '21 10:11 vmelnych

excellent, works like a charm! Thank you! :)

hpz24 avatar Nov 09 '21 07:11 hpz24

The Odoo 15 Docker image needs to use the latest release on the nightly page instead of a particular one. I was testing for a customer using current Odoo enterprise code, and there was a change to base Odoo and enterprise regarding a SASS mixin that completely broke my environment. The Docker image ought to use the most recent release so as to always have current Odoo source code.

217690thompson avatar Jan 07 '22 20:01 217690thompson

@vmelnych how does your build behave on newer version at Odoo git? Do we need to set a specific date for it build the latest version? Or does it automatically latest anyway? Can I connect with you 1:1 somehow to discuss some things about a private image I need? Maybe I can hire you to work on something we need. Thanks!

codeagencybe avatar Jan 25 '22 15:01 codeagencybe

@codeagencybe, it is self-explanatory, actually. You find a required nightly build and specify date and a checksum in the .env file. Simple it is. You can contact me at [email protected].

vmelnych avatar Jan 25 '22 16:01 vmelnych

@dedanirungu can you close this issue if no longer needed?

lathama avatar Apr 10 '24 16:04 lathama

Just for those who are seeking an update - here is another docker-build repo for Odoo versions 16+.

vebera avatar Apr 10 '24 16:04 vebera