Last active
December 11, 2022 00:55
-
-
Save x14ngch3n/065ae8723702318b48f303e6e595c402 to your computer and use it in GitHub Desktop.
minimal devcontainer environment for Linux
This file contains 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
Show hidden characters
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | |
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu | |
{ | |
"name": "Ubuntu", | |
"image": "mcr.microsoft.com/devcontainers/base:jammy", | |
// Features to add to the dev container. More info: https://containers.dev/features. | |
"features": { | |
"ghcr.io/devcontainers/features/python:1": {}, | |
"ghcr.io/devcontainers/features/sshd:1": {}, | |
"ghcr.io/meaningful-ooo/devcontainer-features/fish:1": {}, | |
"ghcr.io/devcontainers-contrib/features/tldr:1": {}, | |
"ghcr.io/guiyomh/features/vim:0": {}, | |
"ghcr.io/jungaretti/features/ripgrep:1": {} | |
}, | |
// Use 'forwardPorts' to make a list of ports inside the container available locally. | |
// "forwardPorts": [2222], | |
// Use 'postCreateCommand' to run commands after the container is created. | |
"postCreateCommand": "sudo chsh --shell /usr/bin/fish vscode && sudo apt update && sudo apt install build-essential gcc-multilib clangd -y", | |
// Configure tool-specific properties. | |
"customizations": { | |
"vscode": { | |
"extensions": [ | |
"llvm-vs-code-extensions.vscode-clangd", | |
"ms-vscode.hexeditor", | |
"ms-python.vscode-pylance", | |
"ms-python.python", | |
"Gruntfuggly.todo-tree" | |
] | |
} | |
}, | |
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | |
// "remoteUser": "root" | |
// Allow debug in container | |
"capAdd": [ | |
"SYS_PTRACE" | |
], | |
"privileged": true, | |
"securityOpt": [ | |
"seccomp=unconfined" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment