includeos / includeos-docker-images

Docker images for people who want to try out building IncludeOS unikernels without having to install the development environment locally on their machines
Apache License 2.0
17 stars 6 forks source link

install.sh: not found #7

Closed brakmic closed 7 years ago

brakmic commented 7 years ago

Hi,

I've tried to build the image on my Windows 10 with Docker v17.03.1-ce

The initial command docker build -t includeos/includeos-common:0.10.0.1 -f Dockerfile.common . starts very promising by getting several packages and installing them. However, it always ends up with this error message:

Submodule path 'mod/rapidjson/thirdparty/gtest': checked out '0476e154db5fab1721c2a0f32abf4aa773679b52'                                                  
Cloning into 'mod/uzlib'...                                                                                                                              
Submodule path 'mod/uzlib': checked out '732e506a57fba99e3862fec0158beb1c9932e70c'                                                                       
Cloning into 'test/lest'...                                                                                                                              
Submodule path 'test/lest': checked out 'bea252eec4bc4e0e9fbfd3d4533251d998517cb8'                                                                       
 ---> c40f1e6f8112                                                                                                                                       
Removing intermediate container 911d7b101f79                                                                                                             
Step 9/10 : COPY ./patches/install.sh /home/ubuntu/IncludeOS/install.sh                                                                                  
 ---> b81bd7c046bd                                                                                                                                       
Removing intermediate container 44ce41968452                                                                                                             
Step 10/10 : RUN cd ~ && pwd &&   cd IncludeOS &&   INCLUDEOS_PREFIX=/home/ubuntu/IncludeOS_install ./install.sh                                         
 ---> Running in 9b35b942da66                                                                                                                            
/home/ubuntu                                                                                                                                             
/bin/sh: 1: ./install.sh: not found                                                                                                                      
The command '/bin/sh -c cd ~ && pwd &&   cd IncludeOS &&   INCLUDEOS_PREFIX=/home/ubuntu/IncludeOS_install ./install.sh' returned a non-zero code: 127   
ingve commented 7 years ago

Thank you for trying the Docker images! Just verified that the Dockerfile does build correctly in Docker for Mac, will try to test in Docker for Windows over the weekend to see why it's behaving differently there.

ingve commented 7 years ago

I was able to reproduce your error in Windows 10. I have added a .gitattributes file to make Windows preserve proper line endings, and now the containers build for me on Windows 10 (tested in a VM).

If you want to try again, you might have to delete the repo and clone it again. Let us know if it still doesn't work.

brakmic commented 7 years ago

I tested it on a clean repo + docker instance. And it compiles now! 😄 Many thanks! 👍

ingve commented 7 years ago

Excellent! Building on Windows is not yet covered by our Continuous Integration and testing infrastructure, so please do not hesitate to get in touch if you run into any other issues.