Add initial DevContainer setup and configuration files (#1)
- Create .devcontainer/devcontainer.json for container environment setup - Add postStartCommand.sh for provisioning system dependencies and configuration - Include .gitignore to exclude task-related files - Create .taskrc.yml to enable experimental features - Add Taskfile.yml for task management and configuration - Set up VSCode settings for integrated terminal using zsh Co-authored-by: Thomas <thomas.hochstrasser@gmx.net> Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
51
template/.devcontainer/devcontainer.json
Normal file
51
template/.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"image": "ubuntu:24.04",
|
||||
"containerEnv": {
|
||||
"CONAN_USR": "", // need to be filled
|
||||
"CONAN_PSW": "" // need to be filled,
|
||||
},
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/git:1": {},
|
||||
"ghcr.io/devcontainers/features/git-lfs:1": {},
|
||||
"ghcr.io/devcontainers/features/python:1": {
|
||||
"toolsToInstall": "flake8,autopep8,black,yapf,mypy,pydocstyle,pycodestyle,bandit,pipenv,virtualenv,pytest,pylint,uv,copier,conan"
|
||||
}
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"settings": {
|
||||
"git.path": "/usr/bin/git"
|
||||
},
|
||||
"extensions": [
|
||||
"ms-python.python",
|
||||
"ms-python.vscode-pylance",
|
||||
"GitHub.copilot-chat",
|
||||
"njqdev.vscode-python-typehint",
|
||||
"ms-python.debugpy",
|
||||
"mhutchie.git-graph",
|
||||
"ms-vscode.cpptools-themes",
|
||||
"tamasfe.even-better-toml",
|
||||
"moshfeu.compare-folders",
|
||||
"njpwerner.autodocstring",
|
||||
"ms-python.black-formatter",
|
||||
"ms-python.isort",
|
||||
"ms-vscode.live-server",
|
||||
"yzhang.markdown-all-in-one",
|
||||
"bierner.markdown-mermaid",
|
||||
"charliermarsh.ruff",
|
||||
"shardulm94.trailing-spaces",
|
||||
"redhat.vscode-yaml",
|
||||
"ninoseki.vscode-mogami",
|
||||
"twxs.cmake",
|
||||
"cheshirekow.cmake-format",
|
||||
"wholroyd.jinja"
|
||||
]
|
||||
}
|
||||
},
|
||||
"runArgs": [
|
||||
"--network=host",
|
||||
"-e HOST_UID=$(id -u)",
|
||||
"-e HOST_GID=$(id -g)"
|
||||
],
|
||||
"postStartCommand": ".devcontainer/postStartCommand.sh"
|
||||
}
|
||||
Reference in New Issue
Block a user