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

Postgres init-user-db.sh not executed when using docker on Windows #25

Open
optiprime opened this issue Nov 9, 2023 · 0 comments
Open

Comments

@optiprime
Copy link

The postgres container stopped prematurely with this error message in the log:
/usr/local/bin/docker-entrypoint.sh: line 170: /docker-entrypoint-initdb.d/init-user-db.sh: cannot execute: required file not found

The message is misleading, because the file really existed. Root cause; Bash cannot process files with CR/LF line endings.

Please add docker/.gitattibutes containing * text eol=lf or advice to set git config --global core.autocrlf false before cloning the repo.

BTW: I enjoyed reading "Microservices Praxisbuch".

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

1 participant