NODEMCU DOCKER marcelstoer/docker-nodemcu-build "Not a git repository" WINDOWS 10 中的致命错误

NODEMCU DOCKER marcelstoer/docker-nodemcu-build "Not a git repository" fatal error in WINDOWS 10

我下载了主固件并将其放在我的用户目录下,我也将所有权限分配给了 Eveyone。

在我启动这个命令后:

docker run --rm -it -v //c/Users/S227233/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).

我也试过这个命令:

docker run --rm -it -v //c/Users/S227233/nodemcu-firmware-master:/opt/nodemcu-firmware --env GIT_DISCOVERY_ACROSS_FILESYSTEM=1 marcelstoer/nodemcu-build build

但我有另一个:

fatal: Not a git repository (or any of the parent directories): .git

我对 LFS 图像也有问题:

docker run -it -v //c/Users/S227233/nodemcu-firmware-master:/opt/nodemcu-firmware -v //d/_PERSONALE/_NODE_MCU/_NUOVO_CODICE_CON_LFS --env GIT_DISCOVERY_ACROSS_FILESYSTEM=1 marcelstoer/nodemcu-build lfs-image

Error: No cross compiler found. You need to build the firmeware first.

P.S。 注意:我使用公司代理...但我不知道它是否重要,因为无论如何 docker 有效。

这是我的 nodemcu-firmware-master 目录列表:

01/15/2019 04:59 PM

.
01/15/2019 04:59 PM ..
12/07/2018 10:47 PM 860 .gdbinit
12/07/2018 10:47 PM 4,200 .gdbinitlua
01/15/2019 03:56 PM .github
12/07/2018 10:47 PM 175 .gitignore
12/07/2018 10:47 PM 228 .gitmodules
12/07/2018 10:47 PM 879 .travis.yml
01/15/2019 03:56 PM app
01/15/2019 03:56 PM bin
12/07/2018 10:47 PM 9,640 CONTRIBUTING.md
01/15/2019 03:56 PM docs
01/15/2019 03:56 PM ld
12/07/2018 10:47 PM 1,087 LICENSE
01/15/2019 03:09 PM local
01/15/2019 03:56 PM lua_examples
01/15/2019 03:09 PM lua_modules
01/15/2019 04:39 PM 12,771 Makefile
12/07/2018 10:47 PM 3,803 mkdocs.yml
12/07/2018 10:47 PM 5,167 README.md
12/07/2018 10:47 PM 312 rtd-requirements.txt
01/15/2019 03:09 PM sdk-overrides
01/15/2019 03:56 PM tools

谢谢。

你最近的评论证实了我的怀疑。我不知道你是怎么找到那个文件夹的,但它确实不是固件存储库的正确克隆。

关注https://github.com/marcelstoer/docker-nodemcu-build#clone-the-nodemcu-firmware-repository,一切都会好的。

git clone --recurse-submodules https://github.com/nodemcu/nodemcu-firmware.git