microsoft / showwhy

MIT License
203 stars 29 forks source link

docker compose fails on poetry #319

Closed elikling closed 9 months ago

elikling commented 1 year ago

At long last I have manage to figure out how to get 'docker-compose --profile all up' to work on Azure VMs. On an Ubuntu there is some stuff that needs to be installed and the syntax is 'docke compose --profile all up' [no hypen after the docer].

So on Unix the docker copose call downloads everything and seems to work image

but for a Windows 11 azure VM I get an error message

18 [showwhy-backend_worker 11/12] RUN poetry config virtualenvs.create false && ./scripts/install_python_deps.sh

18 1.223 /bin/sh: 1: ./scripts/install_python_deps.sh: not found

18 ERROR: executor failed running [/bin/sh -c poetry config virtualenvs.create false && ./scripts/install_python_deps.sh]: exit code: 127


[showwhy-backend_worker 11/12] RUN poetry config virtualenvs.create false && ./scripts/install_python_deps.sh:

18 1.223 /bin/sh: 1: ./scripts/install_python_deps.sh: not found


failed

rracanicci commented 1 year ago

Hello @elikling, thank you very much for your feedback.

This issue is related to line endings on Windows and should have been resolved by this PR - https://github.com/microsoft/showwhy/pull/334. It updates the git attributes file to keep the LF end of lines in the .sh scripts when the project is cloned.

You can either clone the project again or locally update the .sh scripts to use LF instead of CRLF as line endings.