Last active
November 16, 2024 11:34
-
-
Save storopoli/a3564f117fcc958eab6ce6a567e271e0 to your computer and use it in GitHub Desktop.
Devcontainers Configs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Alpine", | |
"image": "mcr.microsoft.com/devcontainers/base:alpine", | |
"postCreateCommand": "sudo apk update && sudo apk add <PKGS>" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Dioxus", | |
"image": "mcr.microsoft.com/devcontainers/base:debian", | |
"features": { | |
"ghcr.io/devcontainers/features/rust:1": {}, | |
"ghcr.io/lee-orr/rusty-dev-containers/wasm32-unknown-unknown:0": {}, | |
"ghcr.io/lee-orr/rusty-dev-containers/dioxus:0": {} | |
}, | |
"mounts": [ | |
{ | |
//"source": "devcontainer-cargo-cache-${devcontainerId}", // for each container | |
"source": "devcontainer-cargo-cache", // for all containers | |
"target": "/usr/local/cargo", | |
"type": "volume" | |
} | |
], | |
"forwardPorts": [ | |
8080 | |
], | |
"customizations": { | |
"vscode": { | |
"extensions": [ | |
"rust-lang.rust-analyzer", | |
"tamasfe.even-better-toml", | |
"fill-labs.dependi", | |
"vadimcn.vscode-lldb", | |
"DioxusLabs.dioxus" | |
] | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "gh-cli", | |
"image": "mcr.microsoft.com/devcontainers/base:debian", | |
"features": { | |
"ghcr.io/devcontainers/features/github-cli:1": {} | |
}, | |
"remoteUser": "vscode", | |
"mounts": [ | |
{ | |
"source": "${localEnv:HOME}${localEnv:USERPROFILE}/.config/gh", | |
"target": "/home/vscode/.config/gh", | |
"type": "bind" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Hugo", | |
"image": "mcr.microsoft.com/devcontainers/base:debian", | |
"forwardPorts": [1313], | |
"customizations": { | |
"vscode": { | |
"settings": { | |
"html.format.templating": true | |
}, | |
"extensions": [ | |
"redhat.vscode-yaml", | |
"tamasfe.even-better-toml", | |
"davidanson.vscode-markdownlint" | |
] | |
} | |
}, | |
"postCreateCommand": "git submodule update --init --recursive" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Julia", | |
"image": "mcr.microsoft.com/devcontainers/base:debian", | |
"features": { | |
"ghcr.io/julialang/devcontainer-features/julia:1": {} | |
}, | |
"customizations": { | |
"vscode": { | |
"extensions": [ | |
"julialang.language-julia", | |
"tamasfe.even-better-toml" | |
] | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Lazygit", | |
"image": "mcr.microsoft.com/devcontainers/base:debian", | |
"features": { | |
/* | |
"ghcr.io/devcontainers/features/go:1": {}, | |
"ghcr.io/azutake/devcontainer-features/go-packages-install:0": { | |
"PACKAGES": "github.com/jesseduffield/lazygit@latest" | |
} | |
*/ | |
"ghcr.io/GeorgOfenbeck/features/lazygit-linuxbinary:1": {} | |
}, | |
"mounts": [ | |
{ | |
"source": "${localEnv:HOME}${localEnv:USERPROFILE}/.config/lazygit", | |
"target": "/home/vscode/.config/lazygit", | |
"type": "bind" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Nix", | |
"image": "mcr.microsoft.com/devcontainers/base:debian", | |
"postCreateCommand": "curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux --init none --no-confirm --extra-conf 'sandbox = false'" | |
// Running as root because of the init none in nix installer | |
"remoteUser": "root", | |
"customizations": { | |
"vscode": { | |
"extensions": [ | |
"jnoortheen.nix-ide" | |
] | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Nix", | |
"image": "mcr.microsoft.com/devcontainers/base:debian", | |
"features": { | |
"ghcr.io/devcontainers/features/nix:1": { | |
"version": "latest", | |
"extraNixConfig": "experimental-features = nix-command flakes" | |
}, | |
"customizations": { | |
"vscode": { | |
"extensions": [ | |
"jnoortheen.nix-ide" | |
] | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Neovim", | |
"image": "mcr.microsoft.com/devcontainers/base:debian", | |
"features": { | |
"ghcr.io/devcontainers-contrib/features/apt-get-packages:1": { | |
"packages": "fd-find,ripgrep,nodejs" | |
}, | |
"ghcr.io/devcontainers-contrib/features/neovim-homebrew:1": { | |
}, | |
"mounts": [ | |
{ | |
"source": "${localEnv:HOME}${localEnv:USERPROFILE}/.config/nvim", | |
"target": "/home/vscode/.config/nvim", | |
"type": "bind" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Remote Container", | |
"image": "mcr.microsoft.com/devcontainers/base:debian", | |
"remoteUser": "vscode", | |
"workspaceMount": "source=/home/<user>/<path>,target=/workspace,type=bind,consistency=cached", | |
"workspaceFolder": "/workspace" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Rust", | |
"image": "mcr.microsoft.com/devcontainers/rust", | |
"mounts": [ | |
{ | |
//"source": "devcontainer-cargo-cache-${devcontainerId}", // for each container | |
"source": "devcontainer-cargo-cache", // for all containers | |
"target": "/usr/local/cargo", | |
"type": "volume" | |
} | |
], | |
"customizations": { | |
"vscode": { | |
"extensions": [ | |
"rust-lang.rust-analyzer", | |
"tamasfe.even-better-toml", | |
"fill-labs.dependi", | |
"vadimcn.vscode-lldb", | |
] | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Alpen Labs Strata", | |
"image": "mcr.microsoft.com/devcontainers/rust:1", | |
"features": { | |
"ghcr.io/devcontainers/features/python:1": {} | |
}, | |
"onCreateCommand": "sudo apt update", | |
"postCreateCommand": { | |
"libclang-dev": "sudo apt install libclang-dev -y", | |
"codespell": "sudo apt install codespell -y", | |
"taplo": "curl -fsSLO https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-x86_64.gz && gzip -cd taplo-linux-x86_64.gz > taplo && sudo install -m 0755 -t /usr/local/bin taplo && rm taplo*", | |
"poetry": "curl -sSL https://install.python-poetry.org | python3 -", | |
"bitcoin": "curl -fsSLO https://bitcoincore.org/bin/bitcoin-core-28.0/bitcoin-28.0-x86_64-linux-gnu.tar.gz && tar xzf bitcoin-28.0-x86_64-linux-gnu.tar.gz && echo '7fe294b02b25b51acb8e8e0a0eb5af6bbafa7cd0c5b0e5fcbb61263104a82fbc bitcoin-28.0-x86_64-linux-gnu.tar.gz' | sha256sum -c && sudo install -m 0755 -t /usr/local/bin bitcoin-28.0/bin/* && rm -rf bitcoin-28.0*", | |
"cargo-nextest": "curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin" | |
}, | |
"postStartCommand": "rustup show", | |
"customizations": { | |
"vscode": { | |
"extensions": [ | |
"rust-lang.rust-analyzer", | |
"tamasfe.even-better-toml", | |
"vadimcn.vscode-lldb", | |
"charliermarsh.ruff", | |
"ms-python.python", | |
"ms-python.vscode-pylance" | |
] | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Typst", | |
"image": "mcr.microsoft.com/devcontainers/base:debian", | |
"features": { | |
"ghcr.io/michidk/devcontainers-features/typst:0": {} | |
}, | |
"customizations": { | |
"vscode": { | |
"extensions": [ | |
"nvarner.typst-lsp", | |
"mgt19937.typst-preview", | |
"tomoki1207.pdf" | |
] | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Zig", | |
"image": "mcr.microsoft.com/devcontainers/base:debian", | |
"features": { | |
"ghcr.io/devcontainers-contrib/features/zig:1": {} | |
}, | |
"customizations": { | |
"vscode": { | |
"extensions": [ | |
"ziglang.vscode-zig" | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment