Devcontainer support
This commit is contained in:
57
.devcontainer/devcontainer.json
Normal file
57
.devcontainer/devcontainer.json
Normal file
@@ -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": {
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user