46 lines
1.3 KiB
JSON
46 lines
1.3 KiB
JSON
{
|
|
"name": "Finwise — 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"
|
|
}
|