From dffb27326e8fd3dcfab49df3ae3f25de30e15500 Mon Sep 17 00:00:00 2001 From: gautier pialat Date: Mon, 18 Feb 2019 17:16:27 +0100 Subject: [PATCH 1/2] prevent convert LF->CRLF line ending on window During docker built on windows if in global git config core.autocrlf = true then when have this message : Step 6/12 : RUN cd /tmp && /tmp/install_ta-lib.sh && rm -r /tmp/*ta-lib* ---> Running in c0a626821132 /tmp/install_ta-lib.sh: 4: /tmp/install_ta-lib.sh: Syntax error: "&&" unexpected this behave is because file is in the wrong line ending format Has script files run on linux they need to use LF lines ending so we need to ensure they are not converted to CRLF lines ending if global git config is at core.autocrlf = true. --- docs/installation.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index e5f514eb1..08592880f 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -115,10 +115,16 @@ Once you have Docker installed, simply create the config file (e.g. `config.json **1.1. Clone the git repository** +Linux ```bash git clone https://github.com/freqtrade/freqtrade.git ``` +Windows (docker or WSL) +```bash +git clone --config core.autocrlf=input https://github.com/freqtrade/freqtrade.git +``` + **1.2. (Optional) Checkout the develop branch** ```bash From ba23f58ff30aba7c1f5b5919bf24b45493b1fe5b Mon Sep 17 00:00:00 2001 From: gautier pialat Date: Wed, 20 Feb 2019 18:09:26 +0100 Subject: [PATCH 2/2] change the way to clone git rep for Window with docker --- docs/installation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 08592880f..80223f954 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -115,12 +115,12 @@ Once you have Docker installed, simply create the config file (e.g. `config.json **1.1. Clone the git repository** -Linux +Linux/Mac/Windows with WSL ```bash git clone https://github.com/freqtrade/freqtrade.git ``` -Windows (docker or WSL) +Windows with docker ```bash git clone --config core.autocrlf=input https://github.com/freqtrade/freqtrade.git ```