|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the |
| 2 | +// README at: https://github.com/devcontainers/templates/tree/main/src/rust |
| 3 | +{ |
| 4 | + "name": "RMK Development", |
| 5 | + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
| 6 | + "build": { |
| 7 | + "dockerfile": "Dockerfile" |
| 8 | + }, |
| 9 | + // Needed for USB devices in container |
| 10 | + "privileged": true, |
| 11 | + "runArgs": ["--privileged"], |
| 12 | + "containerEnv": { |
| 13 | + "WORKSPACE_DIR": "/workspace" |
| 14 | + }, |
| 15 | + "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind", |
| 16 | + "workspaceFolder": "/workspace", |
| 17 | + // Use 'mounts' to make the cargo cache persistent in a Docker Volume. |
| 18 | + // "mounts": [ |
| 19 | + // { |
| 20 | + // "source": "devcontainer-cargo-cache-${devcontainerId}", |
| 21 | + // "target": "/usr/local/cargo", |
| 22 | + // "type": "volume" |
| 23 | + // } |
| 24 | + // ], |
| 25 | + "mounts": [ |
| 26 | + // Persist installed extensions in container |
| 27 | + "source=rmk-devcontainer-extensions,target=/root/.vscode-server/extensions,type=volume", |
| 28 | + // Allow attaching USB devices to running container |
| 29 | + "source=/dev,target=/dev,type=bind" |
| 30 | + ], |
| 31 | + |
| 32 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 33 | + // "features": {}, |
| 34 | + |
| 35 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 36 | + // "forwardPorts": [], |
| 37 | + |
| 38 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 39 | + // "postCreateCommand": "", |
| 40 | + |
| 41 | + // Configure tool-specific properties. |
| 42 | + // "customizations": {}, |
| 43 | + |
| 44 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 45 | + // "remoteUser": "root", |
| 46 | + |
| 47 | + "customizations": { |
| 48 | + "vscode": { |
| 49 | + "extensions": [ |
| 50 | + "rust-lang.rust-analyzer", |
| 51 | + "dustypomerleau.rust-syntax", |
| 52 | + "tamasfe.even-better-toml" |
| 53 | + ] |
| 54 | + } |
| 55 | + } |
| 56 | +} |
0 commit comments