mirror of
https://github.com/uutils/coreutils.git
synced 2025-08-04 11:00:14 +00:00
Add devcontainer configuration
Adds basic devcontainer configuration using Microsoft's rust:1-1-bookworm container. The existing recommended extensions are included.
This commit is contained in:
parent
4f3d7dad42
commit
481765a378
3 changed files with 46 additions and 0 deletions
40
.devcontainer/devcontainer.json
Normal file
40
.devcontainer/devcontainer.json
Normal file
|
@ -0,0 +1,40 @@
|
|||
// 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",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
// cspell:disable-next-line
|
||||
"foxundermoon.shell-format",
|
||||
"streetsidesoftware.code-spell-checker"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
// 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": [],
|
||||
|
||||
// Use 'postCreateCommand' to run commands after the container is created.
|
||||
"postCreateCommand": "./.devcontainer/postCreateCommand.sh"
|
||||
|
||||
// Configure tool-specific properties.
|
||||
// "customizations": {},
|
||||
|
||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||
// "remoteUser": "root"
|
||||
}
|
4
.devcontainer/postCreateCommand.sh
Executable file
4
.devcontainer/postCreateCommand.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
sudo apt update && sudo apt install -y --no-install-recommends \
|
||||
clang
|
|
@ -28,6 +28,8 @@ denoland
|
|||
deque
|
||||
dequeue
|
||||
dev
|
||||
devcontainer
|
||||
devcontainers
|
||||
devs
|
||||
discoverability
|
||||
duplicative
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue