Closed brandorf closed 2 years ago
The docker is made for *nix systems only, SGDK is native for Windows so you don't need to use Docker build here. I guess it fails when trying to execute the #!/bin/bash command on Windows.
FWIW, I have been working on the docker container for marsdev
, which includes the SGDK, and it works fine on Windows and other systems.
You can pull it as dleslie/marsdev
, it should be PR'd to http://github.com/andwn/marsdev soon.
Hello, first thank you very much @Stephane-D for all your work on this SDK 🙏.
About building the docker image from windows, the problem comes from git.
When you're using git (with the default configuration) and trying to clone a git project, it replaces all end of line formats by the crlf
format (on windows only) :
And because of that, this error occurs when docker's trying to run .sh
file :
To solve that issue, I just added a new .gitattributes
file to specify to git that it should not change any end of line format for all .sh
files.
And now, if any users are trying to clone the project and build the image, no more CRLF
and so, no more error to generate the image under linux and under windows :
I tried to build the image with that new git configuration on MacOs
& Windows
and now everything's fine.
I just merged your MR ! As i'm using windows, I never tested the docker script myself so thanks a lot for having sorted that issue out !
When trying to build the docker container on windows, I get the following error:
The dockerfile looks correct, so I'm not too sure what the issue might be.