aslushnikov / latex-online

Online latex compiler. You give it a link, it gives you PDF
http://latexonline.cc
MIT License
497 stars 89 forks source link

let git know to not convert file endings of .sh files to crlf #46

Closed anderha closed 5 years ago

anderha commented 5 years ago

tl;dr: I ran into an error by starting a docker container builded from a fresh clone of your latex-online on Windows, caused by wrong end of line encoding.

Step-by-step explanation:

  1. cloned your latex-online repository
  2. builded an docker image from command line: docker image build -t someName /path/to/dockerfile
  3. ran a docker container from command line: docker run -d -p 2700:2700 -t someName

-> This led to an error displayed in the container logs of Kitematic and the container did not start: standard_init_linux.go:190: exec user process caused "no such file or directory" Problem is caused by git in combination with Windows. Line endings of bash scripts are converted to crlf during checkout.

Solution: I added a .gitattributes file, so git knows to keep the end of lines as lf for *.sh files.

aslushnikov commented 5 years ago

Thanks!