Speed up devcontainer with ramdisk

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

No files matched your search

+10 -6
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",