dfir-iris / iris-web

Collaborative Incident Response platform
GNU Lesser General Public License v3.0
1.04k stars 163 forks source link

[BUG] Docker build failed on Windows environment #262

Open nielist opened 1 year ago

nielist commented 1 year ago

Describe the bug The docker build failed on Windows environment iriswebapp_app | nohup: failed to run command './iris-entrypoint.sh': No such file or directory iriswebapp_worker | exec ./wait-for-iriswebapp.sh: no such file or directory iriswebapp_nginx | /usr/bin/env: 'bash\r': No such file or directory I saw here (https://docs.dfir-iris.org/getting_started/) that: The platform is officially support on most Linux and MacOS. While it should work on Windows, some path needed by the dockers to store permanent files might need to be changed in the dockerfiles. Would you please share with us the details for the paths required to be changed on Windows? Thank you.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://docs.dfir-iris.org/getting_started/
  2. git clone https://github.com/dfir-iris/iris-web.git
  3. cd iris-web
  4. Copy the environment file from .env.model to .env
  5. docker-compose build
  6. docker-compose up
  7. See Error: iriswebapp_app | nohup: failed to run command './iris-entrypoint.sh': No such file or directory iriswebapp_worker | exec ./wait-for-iriswebapp.sh: no such file or directory iriswebapp_nginx | /usr/bin/env: 'bash\r': No such file or directory

Screenshots

image

Desktop:

whikernel commented 1 year ago

Hi @nielist

Indeed we don't officially support Windows because of these potentially issues.
Tho looking at the errors you have, it looks like there is some newlines errors. Could you please try the following:

https://github.com/docker/compose/issues/2301#issuecomment-320944308

Cheers

barn4k commented 5 months ago

Got the same error on Windows. That command fixed the issue: git config --global core.autocrlf input After the command, I removed the old copy, created a new clone and it worked.