camptocamp / docker-odoo-project

Base images for Odoo projects
150 stars 148 forks source link

Can't run example project #219

Open aleprovencio opened 1 year ago

aleprovencio commented 1 year ago

Hello, I was not able to make the example project work:

Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "docker-entrypoint.sh" executable file not found in $PATH: unknown
khalidchamakh commented 1 year ago

Hello, I was not able to make the example project work:

  • Using just as it is, returns this error on build stage:
chown: invalid user: ‘odoo:odoo’
The command '/bin/sh -c chown -R odoo:odoo /odoo' returned a non-zero code: 1
  • When updating the Dockerfile's image to ghcr.io/camptocamp/odoo-project:14.0-latest, building the image works but got this error after trying docker-compose up:
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "docker-entrypoint.sh" executable file not found in $PATH: unknown

Hello @aleprovencio , i have the same problem, did you find any solution ?

HekSahiti commented 1 year ago

I've updated the image on the Dockerfile to ghcr.io/camptocamp/odoo-project:15.0-latest and than used the test-compose.yml instead of docker-compose.yml and it ran successfully.

With the docker-compose.yml I was getting the chown ..... error too.

khalidchamakh commented 1 year ago

Thanks a lot, it works also for me when i used test-compose.yml

aleprovencio commented 1 year ago

Thanks for the input guys and no, I still haven't found a solution @khalidchamakh

Tatider commented 1 year ago

The problem is in the image in the registry. The last update of f.e. for 15.0 was done on 21.10.20221. If you will check content of the "docker-odoo-project/15.0/Dockerfile" file, you will see that there is no odoo user creation command was there on 21.10.2021. https://github.com/camptocamp/docker-odoo-project/blob/6fa0aee98b145b58dab0309d6866f0e0f9ec08d4/15.0/Dockerfile

So, image camptocamp/odoo-project:15.0-latest should be rebuilt and pushed to the registry to be compatible with latest changes in the example. But I deliver only camptocamp authorized users can do that.

UPDATE! I am speaking about the odoo image on Dockerhub, because the example still has reference to It camptocamp/odoo-project:<version>-latest instead of ghcr.io/camptocamp/odoo-project:<version>-latest