Speed up devcontainer with ramdisk

This commit is contained in:
Adam Outler
2025-09-21 21:17:14 +00:00
parent 739cc0e639
commit 2c940b3422
7 changed files with 18 additions and 14 deletions

View File

@@ -7,14 +7,18 @@
"target": "devcontainer"
},
"workspaceFolder": "/workspaces/NetAlertX",
"runArgs": [
"--privileged",
"--cap-add=NET_ADMIN",
"--cap-add=NET_RAW",
// Ensure containers can resolve host.docker.internal to the host (required on Linux)
"--add-host=host.docker.internal:host-gateway"
"--add-host=host.docker.internal:host-gateway",
"--security-opt", "apparmor=unconfined" // for alowing ramdisk mounts
],
"capAdd": [
"SYS_ADMIN", // For mounting ramdisks
"NET_ADMIN", // For network interface configuration
"NET_RAW" // For raw packet manipulation
],
"postStartCommand": "${containerWorkspaceFolder}/.devcontainer/scripts/setup.sh",