From 79fadf3dbaddbcd52dca830644e0857bf1e3da96 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Thu, 25 Jul 2024 17:28:43 +0000 Subject: [PATCH] dev: Run devcontainer on host network So we don't need to worry about publishing the right ports (and don't need to rebuild the container everytime the list of ports changes). --- .devcontainer/devcontainer.json | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3c734a197..96ada9238 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -18,24 +18,8 @@ "runArgs": [ "--shm-size", "2gb", - "-p", - "5000:5000", - "-p", - "5001:5001", - "-p", - "5173:5173", - "-p", - "5174:5174", - "-p", - "8000:8000", - "-p", - "8001:8001", - "-p", - "8002:8002", - "-p", - "8003:8003", - "-p", - "12345:12345", + "--network", + "host" ], "mounts": [ "source=${localEnv:HOME}/.bts/devcontainer-mounts/${devcontainerId},target=/home/bts,type=bind"