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

./deployment/octane/entrypoint.sh: no such file or directory: unknown #4

Closed
Dasinfomedia2 opened this issue Dec 8, 2021 · 3 comments

Comments

@Dasinfomedia2
Copy link

Dasinfomedia2 commented Dec 8, 2021

 => naming to docker.io/library/accounts_lumen                                                                  0.0s
Starting accounts ... error

ERROR: for accounts  Cannot start service lumen: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "./deployment/octane/entrypoint.sh": stat ./deployment/octane/entrypoint.sh: no such file or directory: unknown

ERROR: for lumen  Cannot start service lumen: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "./deployment/octane/entrypoint.sh": stat ./deployment/octane/entrypoint.sh: no such file or directory: unknown
ERROR: Encountered errors while bringing up the project.

The file exists in the docker folder still facing any issue
My Folder structure is as below.
accounts\docker\deployment\octane\entrypoint.sh

The below step works. If I rename entrypoint.sh file then it shows file not found in this step.
=> CACHED [stage-1 22/23] RUN chmod +x ./deployment/octane/entrypoint.sh

@smortexa
Copy link
Member

smortexa commented Dec 8, 2021

@Dasinfomedia2 Please ensure that deployment directory is in your Laravel base path. Otherwise, be aware that docker directory is added to .dockerignore file, so it will be ignored during building image. You are free to remove it from .dockerignore.

@Dasinfomedia2
Copy link
Author

Dasinfomedia2 commented Dec 9, 2021

@smortexa
I have modified dockerfile as below

# ENTRYPOINT ["./deployment/octane/entrypoint.sh"]
CMD ["/usr/bin/supervisord","-c","/etc/supervisor/conf.d/supervisord.conf"]

I commented entrypoint where it was generating errors and moved the needed code in docerfile itself and it's working.

Docker is already there in .dockerignore file which is present in docker folder

Anu suggestion or improvements?

Thanks for the reply. 👍

@smortexa
Copy link
Member

Just be sure your files are in the correct places. I can not reproduce this problem, so if it works, It's OK.

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