added devcontainer

This commit is contained in:
2026-07-10 15:44:09 +02:00
parent 5da43ff0f3
commit 356837ee0a
31 changed files with 4828 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
{
"name": "OpenUniFi Development",
"build": {
"dockerfile": "Dockerfile"
},
"remoteUser": "openwrt",
// 1. Overrides the default volume mount path
"workspaceMount": "source=${localWorkspaceFolder},target=/home/openwrt/openwrt/package/OpenUniFi,type=bind,consistency=cached",
// 2. Tells VS Code to open this directory when the container starts
"workspaceFolder": "/home/openwrt/openwrt/package/OpenUniFi",
// 3. Runs OpenWrt configuration routines after mounting your package
"postCreateCommand": "cd /home/openwrt/openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && cp .devcontainer/openwrt.config .config || true && make defconfig"
}