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

Docker Compose sometimes failing on Windows because of line-endings #11385

Closed
TomKemperNL opened this issue Aug 22, 2021 · 0 comments · Fixed by #11386
Closed

Docker Compose sometimes failing on Windows because of line-endings #11385

TomKemperNL opened this issue Aug 22, 2021 · 0 comments · Fixed by #11386

Comments

@TomKemperNL
Copy link
Contributor

When building the project on windows, depending on git-settings the docker Solr container can fail:

Waiting up to 180 seconds to see Solr running on port 8983 [|] [/] [-] [\] [|] [/] [-] [\] [|] [/] [-] [\]

Started Solr server on port 8983 (pid=57). Happy searching!

/usr/bin/env: ‘sh\r’: No such file or directory

This is because the current line-ending of the solr/solr.sh file is left up to git, but it -has- to be LF since it's going to run on a linux-container.

Adding *.sh text eol=lf to the .gitattributes fixes this and removes this minor nag in getting the project to run on windows.

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

Successfully merging a pull request may close this issue.

1 participant