From bc279562badb5b0e7d34430dabf848ba29c7c2be Mon Sep 17 00:00:00 2001 From: "Lala, Shahd" Date: Sun, 3 May 2026 10:57:51 +0000 Subject: [PATCH] fix: NOT FOR MAIN OR MERGE: just for the frontend to work insdie the same container --- .devcontainer/Dockerfile | 3 +++ .devcontainer/devcontainer.json | 5 +++-- frontend | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) create mode 160000 frontend diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 8065503..4313404 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -2,9 +2,12 @@ FROM mcr.microsoft.com/devcontainers/java:21-bookworm RUN apt-get update \ && apt-get install -y --no-install-recommends \ + curl \ postgresql-client \ redis-tools \ stockfish \ + && curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ + && apt-get install -y --no-install-recommends nodejs \ && rm -rf /var/lib/apt/lists/* RUN mkdir -p /home/vscode/.gradle/wrapper/dists \ diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1de19ea..73458af 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,12 +2,13 @@ "name": "NowChessSystems", "dockerComposeFile": ["docker-compose.yml"], "service": "workspace", - "workspaceFolder": "/workspaces/NowChessSystems", + "workspaceFolder": "/workspace/NowChessSystems", "shutdownAction": "stopCompose", "overrideCommand": false, "remoteUser": "vscode", - "forwardPorts": [8080, 8081, 8082, 8083, 8084, 8085, 8086, 9086], + "forwardPorts": [4200, 8080, 8081, 8082, 8083, 8084, 8085, 8086, 9086], "portsAttributes": { + "4200": {"label": "NowChess Frontend", "onAutoForward": "notify"}, "8080": {"label": "NowChess Core", "onAutoForward": "notify"}, "8081": {"label": "NowChess Io", "onAutoForward": "notify"}, "8082": {"label": "NowChess Rule", "onAutoForward": "notify"}, diff --git a/frontend b/frontend new file mode 160000 index 0000000..3b757d7 --- /dev/null +++ b/frontend @@ -0,0 +1 @@ +Subproject commit 3b757d7ff745e30f087144564596b67d6a764c76