odoo / docker

Other
956 stars 1.54k forks source link

Docker Image for odoo 15 #392

Closed dedanirungu closed 5 months ago

dedanirungu commented 2 years ago

Docker Image for odoo 15

herawais commented 2 years ago

Waiting..

vmelnych commented 2 years ago

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...

herawais commented 2 years ago

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

vmelnych commented 2 years ago

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

vmelnych commented 2 years ago

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!

hpz24 commented 2 years ago

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

Ricoamal commented 2 years ago

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.

hpz24 commented 2 years ago

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

vmelnych commented 2 years ago

@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...

hpz24 commented 2 years ago

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!

vmelnych commented 2 years ago

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

hpz24 commented 2 years ago

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

217690thompson commented 2 years ago

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.

codeagencybe commented 2 years ago

@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!

vmelnych commented 2 years ago

@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 ifs.pvt@gmail.com.

lathama commented 5 months ago

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

vebera commented 5 months ago

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