-
-
Notifications
You must be signed in to change notification settings - Fork 952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build the docker image on Win 10 #1905
Comments
So I did a little Research and knowledge building about docker in it self on my own. What I found out is for some reason the RUN commands seemingly are not performed as a specific user so /opt/build.sh will not be executable. Additionally I had to convert all CarriageReturn LineFeeds to LineFeeds only, most certainly due to the way how I cloned the git repo to my windows machine... should also considering re-cloning the whole repo with proper line feed alteration settings, like pull as is By using the following lines I can make sure I see what is in the /opt folder during image build time and build.sh will actually execute
but unfortunately this will start a complete build process not just installing GCC so the process is asking for CMakeLists.txt to be inside /sources folder inside the container during docker image build time, which makes no sense to me. Could someone please elaborate how this is intended to work?
Anyhow currently image build will only be a success if I don't try to execute build.sh at all |
So after some further research and tweaking I got the container to work properly. |
So Finally I was able to build the stock Firmware from the Repository and have a relyable start point for further development.
The remaining issue was related to Line End conversion most certainly caused by the line end conversion local or global .gitconfic autocrlf set to true prior loading the repository the first time. So in the end I just needed
should I commit the gained knowledge as documentation advice for review? @JF002 @NeroBurner @Riksu9000 @minacode |
Yes, I would add that to the docs in a PR. |
@Nobody2303 Thanks for documenting all your findings about building the docker image on Win 10! If I understand correctly, the image is built and ran as user |
@JF002 @FintasticMan Sry for the late reply. Christmas preparations are keeping me from pursuing this topic. Currently I have no concrete Idea but I think it should be possible to select a fitting dockerfile and infinitime build command from within an OS detection mechanism... |
Verification
Introduce the issue
I just set up Docker v4.25.0
I cloned the infinitime repo and also update the submodules.
Upon trying to build the docker image, I ran into the following issue, which I can't really resolve as it's the first time for me to work with docker.
If anyone could give me a hint what might not work I'd be very happy.
Preferred solution
No response
Version
v1.13.0
The text was updated successfully, but these errors were encountered: