|
| 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": "devcon", |
| 5 | + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
| 6 | + "image": "ghcr.io/layerresearch/devcon:1.0.0-bookworm", |
| 7 | + "features": { |
| 8 | + "ghcr.io/devcontainers/features/common-utils:2": { |
| 9 | + "installZsh": true, |
| 10 | + "configureZshAsDefaultShell": true, |
| 11 | + "installOhMyZsh": true, |
| 12 | + "installOhMyZshConfig": false, |
| 13 | + "upgradePackages": false, |
| 14 | + // username should be root and installOhMyZshConfig should be false to avoid overwriting .zshrc in the base image |
| 15 | + "username": "root" |
| 16 | + }, |
| 17 | + "ghcr.io/devcontainers/features/docker-in-docker:2": { |
| 18 | + // Docker Compose v2 is required for or compatible with the repository |
| 19 | + "dockerDashComposeVersion": "v2.29.1", |
| 20 | + // https://github.com/devcontainers/features/issues/573#issuecomment-1593854983 |
| 21 | + "moby": false |
| 22 | + } |
| 23 | + }, |
| 24 | + |
| 25 | + // Use 'mounts' to make the cargo cache persistent in a Docker Volume. |
| 26 | + // "mounts": [ |
| 27 | + // { |
| 28 | + // "source": "devcontainer-cargo-cache-${devcontainerId}", |
| 29 | + // "target": "/usr/local/cargo", |
| 30 | + // "type": "volume" |
| 31 | + // } |
| 32 | + // ] |
| 33 | + |
| 34 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 35 | + // "features": {}, |
| 36 | + |
| 37 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 38 | + // "forwardPorts": [], |
| 39 | + |
| 40 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 41 | + "postCreateCommand": "./.devcontainer/post-create", |
| 42 | + |
| 43 | + // Configure tool-specific properties. |
| 44 | + "customizations": { |
| 45 | + "vscode": { |
| 46 | + "extensions": [ |
| 47 | + "ms-vscode-remote.remote-containers", |
| 48 | + "rust-lang.rust-analyzer", |
| 49 | + "eamodio.gitlens", |
| 50 | + "redhat.vscode-yaml", |
| 51 | + "github.vscode-github-actions", |
| 52 | + "GitHub.vscode-codeql", |
| 53 | + "GitHub.codespaces", |
| 54 | + "GitHub.vscode-pull-request-github", |
| 55 | + "EditorConfig.EditorConfig", |
| 56 | + "NomicFoundation.hardhat-solidity" |
| 57 | + ] |
| 58 | + } |
| 59 | + }, |
| 60 | + |
| 61 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 62 | + "remoteUser": "root", |
| 63 | + |
| 64 | + "remoteEnv": {} |
| 65 | +} |
0 commit comments