From 19b15e2e0ea83de72ce3552a44ca59ab2201de73 Mon Sep 17 00:00:00 2001
From: Bartek Wrona <wrona@syncad.com>
Date: Tue, 18 Mar 2025 17:09:10 +0100
Subject: [PATCH] Improved devcontainer definition to make possible starting UI
 apps from dev container

---
 pnpm-config/.devcontainer/devcontainer.json | 35 ++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)

diff --git a/pnpm-config/.devcontainer/devcontainer.json b/pnpm-config/.devcontainer/devcontainer.json
index 386feff..f24a7fd 100644
--- a/pnpm-config/.devcontainer/devcontainer.json
+++ b/pnpm-config/.devcontainer/devcontainer.json
@@ -2,9 +2,42 @@
   "name": "Hive NodeJS & Typescript",
   "image": "registry.gitlab.syncad.com/hive/common-ci-configuration/emsdk:4.0.1-3@sha256:a2aef5aee0c4bcf1655cd9388d9d940ebfe588c66dae12d0abf5e21a6aff6f0d",
   "containerUser": "emscripten",
+  //"runArgs": ["--network=host"],
+  "containerEnv": {
+     "DISPLAY": "host.docker.internal:0.0"
+  },
+
+  "portsAttributes": {
+    "8000-8080": {
+      "label": "Playwright test server, do not autoforward",
+      "onAutoForward": "ignore"
+    },
+    "30000-50000": {
+      "label": "Playwright test server, do not autoforward",
+      "onAutoForward": "ignore"
+    }
+  },
+
+  "mounts": [
+    {
+      "source": "/storage1/",
+      "target": "/storage1/",
+      "type": "bind"
+    },
+    {
+      "source": "${localEnv:HOME}/.gitconfig",
+      "target": "/home/emscripten/.gitconfig",
+      "type": "bind"
+    }
+  ],
   "customizations": {
     "vscode": {
-      "extensions": []
+      "extensions": [
+        "ms-playwright.playwright",
+        "Vue.volar",
+        "GitHub.copilot",
+        "GitHub.copilot-chat"
+      ]
     }
   }
 }
\ No newline at end of file
-- 
GitLab