Skip to content

Commit

Permalink
devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
hakoneriksson committed Oct 17, 2024
1 parent 8fd6cc5 commit 16e3692
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"image": "mcr.microsoft.com/devcontainers/base:bookworm",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"username": "vscode",
"userUid": "1000",
"userGid": "1000"
},
"ghcr.io/devcontainers-contrib/features/snyk-cli:1": {},
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {},
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {},
"ghcr.io/devcontainers/features/node:1": {
"version": "18.19"
},
"ghcr.io/devcontainers/features/github-cli:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/dotnet:2.1.1": {},
"ghcr.io/devcontainers/features/python:1.6.2": {}
},
"overrideFeatureInstallOrder": [
"ghcr.io/devcontainers/features/common-utils",
"ghcr.io/devcontainers/features/node",
"ghcr.io/devcontainers/features/github-cli",
"ghcr.io/devcontainers/features/python"
],
"customizations": {
"vscode": {
"extensions": [
"ms-vscode-remote.remote-containers",
"GitHub.codespaces",
"mhutchie.git-graph",
"streetsidesoftware.code-spell-checker",
"dbaeumer.vscode-eslint",
"ms-azuretools.vscode-docker",
"GitHub.copilot",
"GitHub.copilot-chat",
"humao.rest-client",
"ms-dotnettools.csdevkit",
"vscode-icons-team.vscode-icons"
],
"settings": {
"gitlens.showWelcomeOnInstall": false,
"terminal.integrated.gpuAcceleration": "canvas",
"liveServer.settings.root": "/docs",
"liveServer.settings.donotShowInfoMsg": true,
"terminal.integrated.shell.linux": "/usr/bin/zsh",
"terminal.integrated.defaultProfile.linux": "zsh",
"csharp.suppressBuildAssetsNotification": true,
"workbench.editorAssociations": {
"*.md": "vscode.markdown.preview.editor"
}
}
},
"codespaces": {
"openFiles": [
".devcontainer/welcome.md"
]
}
},
"updateContentCommand": {
"trufflehog": "curl -L https://github.com/trufflesecurity/trufflehog/releases/download/v3.63.3/trufflehog_3.63.3_linux_amd64.tar.gz| tar -xz -C /tmp/ && sudo mv /tmp/trufflehog /usr/local/bin/"
},
"postCreateCommand": {
"sed": "sed -i 's/ZSH_THEME=\\\"devcontainers\\\"/ZSH_THEME=\\\"avit\\\"/g' ~/.zshrc",
"addPath": "echo 'export PATH=$PATH:$CODESPACE_VSCODE_FOLDER/src' >> ~/.zshrc",
"cloc": "sudo apt update && sudo apt install -y cloc"
},
"containerEnv": {
"PIPELINE": "development",
"PYTHONDONTWRITEBYTECODE": "1"
}
}
8 changes: 8 additions & 0 deletions .devcontainer/welcome.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Welcome to the Enabling Fundamentals GitHub Copilot Workshop

**Please note**

- Be curious - ask questions
- You learn when you explore stuff you don't know!
- Make sure you're here with us, not on your phone or doing parallel work
- Work with us to make this a space where everyone feels respected and trusted

0 comments on commit 16e3692

Please sign in to comment.