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

Running 'docker compose up' on a fresh repository clone into Windows results in an error in the import-data.sh script #60

Open
jamie-burns opened this issue Jan 7, 2022 · 0 comments

Comments

@jamie-burns
Copy link
Collaborator

  • Clone DBConfirm (on a Windows machine)
  • Run 'docker compose build'
  • Run 'docker compose up'

This error will appear in the logs somewhere, and the sample DBs won't be created:

syntax error near unexpected token `$'\r''

The problem is that the import-data.sh file needs to have Unix (LF) line endings, and git is cloning this file with Windows (CLRF). This can be fixed by manually changing the file to LF (e.g., opening it in Visual Studio Code and changing it at the bottom-right), and that fixes it, but ideally git needs to leave the line endings alone.

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