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": { + } +}