From 3bdeebc3f17cc124f02e95e9b1e56c67cb0bb9b1 Mon Sep 17 00:00:00 2001 From: Fabrutus Date: Sun, 30 Nov 2025 01:43:53 -0300 Subject: [PATCH] Create devcontainer.json { "name": "ROS2 Humble Dev", "build": { "dockerfile": "Dockerfile" }, "workspaceFolder": "/home/vscode/workspace", "mounts": [ "source=${localWorkspaceFolder},target=/home/vscode/workspace,type=bind" ], "runArgs": [ "--gpus=all", "-v", "${env:SSH_AUTH_SOCK}:/ssh-agent", "-e", "SSH_AUTH_SOCK=/ssh-agent", "-e", "DISPLAY=${localEnv:DISPLAY}", "-e", "LIBGL_ALWAYS_SOFTWARE=1", "-e", "QT_XCB_GL_INTEGRATION=none", "-v", "/tmp/.X11-unix:/tmp/.X11-unix:rw" ], "containerEnv": { "QT_X11_NO_MITSHM": "1", "QT_QPA_PLATFORM": "xcb", "DISPLAY": "${localEnv:DISPLAY}", "SSH_AUTH_SOCK": "/ssh-agent", "LIBGL_ALWAYS_SOFTWARE": "1", "QT_XCB_GL_INTEGRATION": "none", "TERM": "xterm-256color" }, "remoteUser": "vscode", "postStartCommand": "xhost +local:vscode || true", "forwardPorts": [5000, 9000, 9090], "portsAttributes": { "9000": { "label": "MCP Server", "onAutoForward": "ignore" }, "9090": { "label": "ROSBridge", "onAutoForward": "ignore" } }, "customizations": { "vscode": { "extensions": [ "ms-python.python", "ms-azuretools.vscode-docker", "twxs.cmake", "ms-vscode.cpptools", "ms-python.vscode-pylance", "astral-sh.ruff" ], "settings": { "terminal.integrated.defaultProfile.linux": "bash" } } } } --- .devcontainer/devcontainer.json | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..39bbd2681 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,4 @@ +{ + "image": "mcr.microsoft.com/devcontainers/universal:2", + "features": {} +}