CentreForDigitalHumanities / tscan

T-scan: an analysis tool for dutch texts to assess the complexity of the text, based on original work by Rogier Kraf
GNU Affero General Public License v3.0
18 stars 6 forks source link

docker-compose up doesn't work: builder stops with error #82

Open janwillemb opened 11 months ago

janwillemb commented 11 months ago

docker-compose up stops with the message "end of file unexpected (expecting "then"):

 => [builder  1/19] RUN apt-get update && apt-get install -y autoconf         autoconf-archive         automake         autotools-dev   123.6s
 => [builder  2/19] COPY docker/deployment/ /deployment/                                                                                  0.0s
 => [builder  3/19] COPY data/ /src/tscan/data                                                                                            0.1s
 => [builder  4/19] COPY docker/data/ /src/tscan/docker/data/                                                                             0.0s
 => [builder  5/19] WORKDIR /deployment                                                                                                   0.0s
 => ERROR [builder  6/19] RUN ./add-alpino.sh                                                                                             0.5s
------
 > [builder  6/19] RUN ./add-alpino.sh:
#0 0.504 ./add-alpino.sh: 9: Syntax error: end of file unexpected (expecting "then")
------
failed to solve: executor failed running [/bin/sh -c ./add-alpino.sh]: exit code: 2

I'm using docker on Windows 10.

janwillemb commented 11 months ago

The problem is that the line endings are converted to CR+LF on checkout in case of Windows computers. To change this behavior, include a .gitattributes file that prevents the conversion. I created a PR #83.