marcelstoer / docker-nodemcu-build

Docker image to build NodeMCU firmware for the ESP8266 on your machine
https://hub.docker.com/r/marcelstoer/nodemcu-build/
MIT License
131 stars 63 forks source link

How to check or comfirm the right state of files in Linux working directories ready for Docker build before #98

Closed jyh29 closed 3 years ago

jyh29 commented 3 years ago

Not familiar with Docker, Only for compiling nodemcu-build Docker has been successfully installed on win10, and its relative hyper-v & WSL2 Ubuntu also working correctly, but Docker compiling nodemcu-build is always wrong, with error message: docker run --rm -it -v //c/Users/Administrator/Downloads/nodemcu-firmware-master:/opt/nodemcu-firmware marcelstoer/nodemcu-build build fatal: Not a git repository (or any parent up to mount point /opt/nodemcu-firmware) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)

This being as expected, because the all of articles have never mentioned about the settings of hyper-v or Ubuntu related configuration for the compiling nodemcu-build. So I wander if with this compiling mode WSL2 Ubuntu may not need installed ? Otherwise, how to set the download folder in Win10 for downloading the nodemcu-build ? how to check or comfirm the right state of files in Ubuntu working directories ready for Docker build before ? where to get the compiled nodemcu-firmware from Ubuntu working directory ?

marcelstoer commented 3 years ago

Please see https://github.com/marcelstoer/docker-nodemcu-build/blob/master/README.md#notes-for-windows-users

//c/Users/Administrator/Downloads/nodemcu-firmware-master is not understood by Docker as a valid path to your NodeMCU source code. This is unrelated to this project but a general Docker volume mounting question. Please refer to https://github.com/marcelstoer/docker-nodemcu-build/blob/master/README.md#support.

jyh29 commented 3 years ago

Very thanks for the rapid answer ! If possible, please help me to confirm that hyper-v Ubuntu must be installed and git clone --recurse-submodules https://github.com/nodemcu/nodemcu-firmware.git must executed successfully in the Ubuntu before docker run --rm -it -v //c/Users/Administrator/Downloads/nodemcu-firmware-master:/opt/nodemcu-firmware marcelstoer/nodemcu-build build in win10 Docker. I searched about that over and over on Internet, but failed to find out about that. Thank you again in advance

marcelstoer commented 3 years ago

Sorry, can't help you with these general Docker on Win10 questions - I don't use Windows.