Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MElkmeshi opened this issue Jun 1, 2024 · 5 comments

Comments

@MElkmeshi
Copy link

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:

  • The entrypoint.sh file exists in the 17.0 directory and is referenced in the Dockerfile.

I am unsure if my commands are incorrect or if there is an issue with the entrypoint.sh script. Any guidance or assistance would be greatly appreciated.

Thank you!

@amh-mw
Copy link

amh-mw commented Jun 3, 2024

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
Copy link
Author

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
Copy link

amh-mw commented Jun 3, 2024

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
Copy link
Author

I want to make my own image for odoo 17.2

@amh-mw
Copy link

amh-mw commented Jun 5, 2024

I want to make my own image for odoo 17.2

Makes perfect sense, but IMHO, you shouldn't have to. See #385.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants