fixed dev container

This commit is contained in:
2026-07-10 17:34:35 +00:00
parent 356837ee0a
commit a3bad0344d
3 changed files with 13 additions and 8 deletions
+6
View File
@@ -22,8 +22,14 @@ RUN apt-get update && apt-get install -y \
patch \ patch \
time \ time \
sudo \ sudo \
locales \
&& apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
RUN adduser openwrt --disabled-password --gecos "" && \ RUN adduser openwrt --disabled-password --gecos "" && \
echo "openwrt ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers echo "openwrt ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
+6 -7
View File
@@ -4,13 +4,12 @@
"dockerfile": "Dockerfile" "dockerfile": "Dockerfile"
}, },
"remoteUser": "openwrt", "remoteUser": "openwrt",
// 1. Overrides the default volume mount path
"workspaceMount": "source=${localWorkspaceFolder},target=/home/openwrt/openwrt/package/OpenUniFi,type=bind,consistency=cached", "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", "workspaceFolder": "/home/openwrt/openwrt/package/OpenUniFi",
"postCreateCommand": "cd /home/openwrt/openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && cp package/OpenUniFi/.devcontainer/openwrt.config .config && make defconfig",
// 3. Runs OpenWrt configuration routines after mounting your package "customizations": {
"postCreateCommand": "cd /home/openwrt/openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && cp .devcontainer/openwrt.config .config || true && make defconfig" "vscode": {
"extensions": ["openai.chatgpt", "ms-vscode.cpptools", "ms-vscode.cmake-tools", "ms-vscode.makefile-tools"]
}
}
} }
+1 -1
View File
@@ -14,7 +14,7 @@ define Package/openuf
CATEGORY := Network CATEGORY := Network
TITLE := openUF — UniFi bridge daemon for OpenWrt TITLE := openUF — UniFi bridge daemon for OpenWrt
DEPENDS := +libmbedtls +libuci +libjson-c +kmod-tun DEPENDS := +libmbedtls +libuci +libjson-c +kmod-tun
URL := https://github.com/openuf/openuf URL := https://git.ascheu.de/Koda/OpenUniFi
endef endef
define Package/openuf/description define Package/openuf/description