odoo / docker

Other
931 stars 1.51k forks source link

Error exec /entrypoint.sh: no such file or directory when running Odoo 17 Docker image #507

Open MElkmeshi opened 1 month ago

MElkmeshi commented 1 month ago

Issue: Error exec /entrypoint.sh: no such file or directory when running Odoo 17 Docker image

Description:

When I build the Docker image for Odoo 17 using the following command:

docker build -t odoo17 .

And then run the container using:

docker run -p 8069:8069 --name odoo --link db:db -t odoo17

I encounter the following error:

exec /entrypoint.sh: no such file or directory

Steps to Reproduce:

  1. Clone the official Odoo repository and navigate to the 17.0 directory.
  2. Build the Docker image with: docker build -t odoo17 .
  3. Run the Docker container for posgres docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:15
  4. Run the Docker container with: docker run -p 8069:8069 --name odoo --link db:db -t odoo17

Expected Behavior: The Odoo container should start without errors, and the application should be accessible via http://localhost:8069.

Actual Behavior: The container fails to start, displaying the error message: exec /entrypoint.sh: no such file or directory.

Additional Information:

Thank you!

amh-mw commented 1 month ago

Steps to Reproduce:

  1. Clone the official Odoo repository and navigate to the 17.0 directory.
  2. Build the Docker image with: docker build -t odoo17 .
  3. Run the Docker container for posgres docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:15
  4. Run the Docker container with: docker run -p 8069:8069 --name odoo --link db:db -t odoo17

From docker build --help

  -t, --tag stringArray               Name and optionally a tag (format: "name:tag")

From docker run --help

  -t, --tty                              Allocate a pseudo-TTY

Perhaps step four is doing something unexpected?

MElkmeshi commented 1 month ago

image it was in the docker offical docker image and I tried without it and it didn't work I think it's something wrong with the build command

amh-mw commented 1 month ago

Why not just start with the publicly available odoo:17 image? It is easy enough to extend that image with a Dockerfile like:

FROM odoo:17
USER root
# customization
USER odoo
MElkmeshi commented 1 month ago

I want to make my own image for odoo 17.2

amh-mw commented 4 weeks ago

I want to make my own image for odoo 17.2

Makes perfect sense, but IMHO, you shouldn't have to. See https://github.com/odoo/docker/issues/385.