mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
32 lines
1.4 KiB
JSON
32 lines
1.4 KiB
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/rust
|
|
{
|
|
"name": "Rust",
|
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
|
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bookworm",
|
|
"features": {
|
|
},
|
|
|
|
// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
|
|
"mounts": [
|
|
{
|
|
"source": "devcontainer-cargo-cache-${devcontainerId}",
|
|
"target": "/usr/local/cargo",
|
|
"type": "volume"
|
|
}
|
|
],
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
// "features": {},
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
"forwardPorts": [8443],
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
"postCreateCommand": "rustup update && rustup default stable && rustup component add rustfmt clippy && sudo apt-get update && sudo apt-get install -y sccache ripgrep libssl-dev pkg-config jq libpam0g-dev libudev-dev cmake build-essential && cargo install cargo-audit mdbook-mermaid mdbook && cargo install mdbook-alerts --version 0.6.4 && cargo install deno --locked"
|
|
|
|
// Configure tool-specific properties.
|
|
// "customizations": {},
|
|
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
// "remoteUser": "root"
|
|
}
|