added devcontainer
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
FROM debian:trixie
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
clang \
|
||||
flex \
|
||||
bison \
|
||||
g++ \
|
||||
gawk \
|
||||
gettext \
|
||||
git \
|
||||
libncurses-dev \
|
||||
libssl-dev \
|
||||
python3 \
|
||||
rsync \
|
||||
unzip \
|
||||
zlib1g-dev \
|
||||
file \
|
||||
wget \
|
||||
patch \
|
||||
time \
|
||||
sudo \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN adduser openwrt --disabled-password --gecos "" && \
|
||||
echo "openwrt ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
||||
|
||||
USER openwrt
|
||||
WORKDIR /home/openwrt
|
||||
|
||||
RUN git clone https://github.com/openwrt/openwrt.git && \
|
||||
mkdir -p /home/openwrt/openwrt/package/OpenUniFi
|
||||
|
||||
WORKDIR /home/openwrt/openwrt/package/OpenUniFi
|
||||
@@ -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"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
CONFIG_TARGET_mpc85xx=y
|
||||
CONFIG_TARGET_mpc85xx_p1020=y
|
||||
CONFIG_TARGET_mpc85xx_p1020_DEVICE_hpe_msm460=y
|
||||
CONFIG_PACKAGE_kmod-tun=m
|
||||
CONFIG_PACKAGE_openuf=m
|
||||
Reference in New Issue
Block a user