Add basic support of devcontainer (#1280)

This commit is contained in:
Yury Gargay 2023-11-06 11:22:39 +01:00 committed by GitHub
parent 2f5ba96596
commit 1568c8aa91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 1 deletions

14
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM golang:1.20-bullseye
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends\
gettext-base=0.21-4 \
iptables=1.8.7-1 \
libgl1-mesa-dev=20.3.5-1 \
xorg-dev=1:7.7+22 \
libayatana-appindicator3-dev=0.5.5-2+deb11u2 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app

View File

@ -0,0 +1,10 @@
{
"name": "NetBird",
"build": {
"context": "..",
"dockerfile": "Dockerfile"
},
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"capAdd": ["NET_ADMIN", "SYS_ADMIN", "SYS_RESOURCE"],
"privileged": true
}

2
.gitignore vendored
View File

@ -20,4 +20,4 @@ infrastructure_files/setup.env
infrastructure_files/setup-*.env
.vscode
.DS_Store
*.db
*.db