fixed dev container
This commit is contained in:
@@ -4,13 +4,12 @@
|
||||
"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"
|
||||
"postCreateCommand": "cd /home/openwrt/openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && cp package/OpenUniFi/.devcontainer/openwrt.config .config && make defconfig",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": ["openai.chatgpt", "ms-vscode.cpptools", "ms-vscode.cmake-tools", "ms-vscode.makefile-tools"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user