decoder-leco / poc-data-visualization

Un POC de visualisation de données: MongoDB, PostGreSQL, Jupyter notebook, Astro
0 stars 1 forks source link

bash: ./script: cannot execute: required file not found #13

Open JeanGarf opened 4 months ago

JeanGarf commented 4 months ago

BUG On Windows, after "docker compose up -d", we get the following error :

bash: ./script: cannot execute: required file not found

ANALYSIS This is due to the fact that *.sh file are CRLF instead of LF

EXPECTED CORRECTION Add .gitattributes to checkout *.sh with LF

Jean-Baptiste-Lasselle commented 3 months ago

LF

git has configuration to automatically convert between CRLF and LF see https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings#global-settings-for-line-endings

Also: can you give copy paste of full logs, just to see ?

Jean-Baptiste-Lasselle commented 3 months ago

BUG On Windows, after "docker compose up -d", we get the following error :

bash: ./script: cannot execute: required file not found

ANALYSIS This is due to the fact that *.sh file are CRLF instead of LF

EXPECTED CORRECTION Add .gitattributes to checkout *.sh with LF

I have one question:

JeanGarf commented 3 months ago

En modifiant le .gitattributes dans le projet, comme j'ai commencé à le faire dans la branche feature/#13_sh_lf, ça sera valable pour toute personne qui clone le repo, alors que si je le fais dans mon .gitattributes perso, ça ne fonctionnera que chez moi.

Par contre, il faut peut-être que je le complète encore.

On verra ça samedi, car j'ai essayé de re-générer mes images Docker et ça a fini par re-marcher, mais j'ai dû relancer le "docker compose up -d" une bonne dizaine de fois