-
Notifications
You must be signed in to change notification settings - Fork 112
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
bin/rails: 1: [./entrypoint.sh]: not found #161
Comments
@VamerVam I can try to help. Can you share the reproduction steps? What commands did you run? What OS/version and what Docker Version do you have? |
@ryanwi I can't speak for @VamerVam but I was able to reproduce this error only after modifying the dockerfile a bit. SpecsOS: Windows 11 Home Reproduction Steps
My current though is its a CRLF to LF issue on Windows. |
Hi, Yes for me the errors were related to CRLF. The files were using CRLF and when updating git to make sure the files are left using LF everything works perfectly. Perhaps this is what is driving @VamerVam 's experience. Worth configuring git to maintain the LF and not auto-convert them to CRLFs if they are indeed using Windows. |
Hello! I ran into similar issue except I didn't modify ENTRYPOINT file and then couldn't figure out what is going on. So I ended up with a workaround whereas:
cp .env.example .env
docker compose build
docker compose run --rm web bundle install --jobs 4
docker compose run --rm web bin/rails db:setup
|
@vpibano are you running on Windows too? Without the ENTRYPOINT, the gems may not be installed correctly, so would like to understand this issue better. |
@ryanwi I'm also running into the same issue. I'm using Mac OS Sonoma (14.2.1). Error I'm seeing is as follows
|
@vibhoo what command are you running? I did a fresh clone on Mac OS 14.5 and am not seeing that error when starting up. |
Ran into the same issue. I replaced the ENTRYPOINT line in development.Dockerfile with the following and it worked:
|
I tried cloning this project but I am getting the following error.
bin/rails: 1: [./entrypoint.sh]: not found
Please someone help me
The text was updated successfully, but these errors were encountered: