You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 21, 2022. It is now read-only.
Windows 10 with WSL and Docker for Windows in Linux mode.
Let me to explain:
I hate PowerShell, this shell is a pain! I prefer to use Bash in WSL.
To run the builder.ps1 in Windows 10 you need to execute first powershell Set-ExecutionPolicy Unrestricted, and this isn't documented!
When running the powershell script with Docker for Windows (and not with Windows Containers) then you found this error: Error response from daemon: invalid mount config for type "bind": invalid mount path: 'C:/Users/me/openwrt/openwrt-package-builder-1.0.2' mount path must be absolute
I can't switch to Windows Containers as my current environment uses Docker for Windows using the regular mode for running other docker images. So the switch is impossible.
When executing the script builder.sh inside WSL you have troubles with sudo as it doesn't exists.
When executing the script builder.sh inside WSL you have troubles as the command "docker" doesn't call to "docker.exe" (the native executable). You need to declare alias docker=docker.exe.
When executing the script builder.sh inside WSL you have troubles as the script detects some syntax errors.
So, in this enviroment these scripts are useless.
I suggest to improve it in one of these ways:
Add support for WSL with a new builder-wsl.sh script.
OR, add support in builder.ps1 for Docker for Windows and document the powershell Set-ExecutionPolicy Unrestricted requirement.
OR, enhance the builder.sh script to support: different docker binary, Windows host, etc.
OR, move the script to a docker image with docker-in-docker.
I don't know what's the best. I hope you will consider at some point to implement one of them.
Thank you for this project!
Hi,
This tool is great! Thank you @Andy2244 for it! 👍
However, it has troubles when running in:
Let me to explain:
builder.ps1in Windows 10 you need to execute firstpowershell Set-ExecutionPolicy Unrestricted, and this isn't documented!Error response from daemon: invalid mount config for type "bind": invalid mount path: 'C:/Users/me/openwrt/openwrt-package-builder-1.0.2' mount path must be absolutebuilder.shinside WSL you have troubles withsudoas it doesn't exists.builder.shinside WSL you have troubles as the command "docker" doesn't call to "docker.exe" (the native executable). You need to declarealias docker=docker.exe.builder.shinside WSL you have troubles as the script detects some syntax errors.So, in this enviroment these scripts are useless.
I suggest to improve it in one of these ways:
builder-wsl.shscript.builder.ps1for Docker for Windows and document thepowershell Set-ExecutionPolicy Unrestrictedrequirement.builder.shscript to support: different docker binary, Windows host, etc.I don't know what's the best. I hope you will consider at some point to implement one of them.
Thank you for this project!