From 6e3eb437d8ddad51969d10f01fb4e3c3a9fc5c82 Mon Sep 17 00:00:00 2001 From: winterer Date: Thu, 1 Sep 2016 13:06:11 +0200 Subject: [PATCH] Added section about setup on windows to README.md Explained line ending issue in kibana/entrypoint.sh on windows. --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 6dc5dda..576422a 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,23 @@ For example on Redhat and CentOS, the following will apply the proper context: .-root@centos ~ -$ chcon -R system_u:object_r:admin_home_t:s0 docker-elk/ ```` +## Windows + +When cloning this repo on Windows with line ending conversion enabled (git option `core.autocrlf` set to `true`), the script `kibana/entrypoint.sh` will malfunction due to a corrupt shebang header (which must not terminated by `CR+LF` but `LF` only): + +````bash +... +Creating dockerelk_kibana_1 +Attaching to dockerelk_elasticsearch_1, dockerelk_logstash_1, dockerelk_kibana_1 +: No such file or directory/usr/bin/env: bash +```` + +So you have to either + +* disable line ending conversion *before* cloning the repository by setting `core.autocrlf` set to `false`: `git config core.autocrlf false`, or +* convert the line endings in script `kibana/entrypoint.sh` from `CR+LF` to `LF` (e.g. using Notepad++). + +See [issue 36](../../issues/36) for details. # Usage