From 17cc07a6843a4bb2213c6b00f70eb2e9338dbe91 Mon Sep 17 00:00:00 2001 From: Darius Schefer Date: Wed, 27 Aug 2025 19:47:13 +0200 Subject: [PATCH] Devcontainer support --- .devcontainer/devcontainer.json | 57 +++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..2ed435d --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,57 @@ +{ + "name": "bun", + "image": "oven/bun:debian", + "privileged": true, + "features": { + "ghcr.io/devcontainers/features/common-utils:1": { + "version": "latest", + "configureZshAsDefaultShell": true, + "username": "bun", + "userUid": "1000", + "userGid": "1000" + }, + "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { + "packages": "stow,tmux,ripgrep,python3-venv,python3-virtualenv" + }, + }, + "remoteUser": "bun", + "workspaceFolder": "/home/bun/ws", + "workspaceMount": "source=${localWorkspaceFolder},target=/home/bun/ws,type=bind", + "containerEnv": { + }, + "runArgs": [ + "--net=host", + "-e", + "DISPLAY=${env:DISPLAY}", + "-e", + "TERM=${env:TERM}", + "-e", + "SHELL=${env:SHELL}", + "-v", + "${env:SSH_AUTH_SOCK}:/tmp/ssh-agent.socket", + "-e", + "SSH_AUTH_SOCK=/tmp/ssh-agent.socket" + ], + "mounts": [ + { + "source": "/tmp/.X11-unix", + "target": "/tmp/.X11-unix", + "type": "bind", + "consistency": "cached" + }, + { + "source": "/dev/dri", + "target": "/dev/dri", + "type": "bind", + "consistency": "cached" + }, + { + "source": "/dev/shm", + "target": "/dev/shm", + "type": "bind", + "consistency": "cached" + } + ], + "postCreateCommand": { + } +}