init
This commit is contained in:
41
.devcontainer/devcontainer.json
Normal file
41
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "Otter — Tauri Devcontainer",
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile"
|
||||
},
|
||||
"features": {
|
||||
// Add Docker-in-Docker to allow act to run containers
|
||||
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
|
||||
// Add act
|
||||
"ghcr.io/devcontainers-extra/features/act:1": {}
|
||||
},
|
||||
"customizations": {
|
||||
"settings": {
|
||||
"terminal.integrated.shell.linux": "/bin/bash"
|
||||
},
|
||||
"extensions": ["rust-lang.rust-analyzer", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint", "nefrob.vscode-just-syntax"]
|
||||
},
|
||||
"postCreateCommand": "corepack enable && corepack prepare pnpm@latest --activate && pnpm install && cd src-tauri && cargo fetch && cd -",
|
||||
"forwardPorts": [5173, 5900, 6080],
|
||||
"portsAttributes": {
|
||||
"5173": {
|
||||
"label": "Vite Dev Server",
|
||||
"onAutoForward": "notify"
|
||||
},
|
||||
"5900": {
|
||||
"label": "VNC Server",
|
||||
"onAutoForward": "silent"
|
||||
},
|
||||
"6080": {
|
||||
"label": "noVNC Web (VNC via Browser)",
|
||||
"protocol": "http"
|
||||
}
|
||||
},
|
||||
"remoteEnv": { "VNC_PASSWORD": "devpass", "DISPLAY": "${localEnv:DISPLAY}" },
|
||||
|
||||
"runArgs": ["-e", "DISPLAY=${localEnv:DISPLAY}"],
|
||||
|
||||
"mounts": ["source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached"],
|
||||
"workspaceFolder": "/workspace",
|
||||
"remoteUser": "node"
|
||||
}
|
||||
Reference in New Issue
Block a user