tlightsky commented on issue #8632: docker-compose failed to build URL: https://github.com/apache/incubator-superset/issues/8632#issuecomment-613797119 > > 1. Setup/Environment: > > > > * Windows 10 + Docker Desktop + ~ 6 GB of RAM given to Docker (can be configured in settings of the docker) > > 2. Problem: > > > > * The script that is used to check whether there is enough RAM memory provided to the docker is called `frontend-mem-nag.sh`. It is initially git-cloned to WINDOWS system and by default gets file-endings for WINDOWS system and then the script runs on LINUX system and fails. More information mentioned here - [Docker for Windows: Dealing With Windows Line Endings](https://willi.am/blog/2016/08/11/docker-for-windows-dealing-with-windows-line-endings/) > > 3. (**version 1** - no code changes required) Workaround solution for Windows host: > > ``` > > # all commands executed in cmd/terminal > > docker system prune -a > > git clone https://github.com/apache/incubator-superset --config core.autocrlf=input > > <... navigate to cloned git-repo ...> > > cd docker > > docker-compose up > > ``` > > 4. (**version 2** - code changes required) Workaround solution for Windows host: > > > > * Make sure no previous docker images are existing > > > > * Stop everything and run `docker system prune -a` > > * Find the following line in the file "Dockerfile" > > ` COPY ./superset-frontend/package* /app/superset-frontend/` > > * Insert following commands after the line: > > > > ```shell > > RUN apt-get update -y > > RUN apt-get install -y apt-file > > RUN apt-file update -y > > RUN apt-get install -y dos2unix > > RUN dos2unix /frontend-mem-nag.sh > > ``` > > > > P.S. @tlightsky I hope it will help you. > > many thanks for your detailed explanation, > I'll try out on my Win 10 it works, thanks!
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
