Skip to content

Commit e02ee7b

Browse files
committed
feat: Add features, extensions, and postCreate script
1 parent 5156647 commit e02ee7b

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

.devcontainer/devcontainer.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
{
22
"name": "Basic Dev Environment",
3-
"image": "mcr.microsoft.com/vscode/devcontainers/base:debian"
3+
"image": "mcr.microsoft.com/vscode/devcontainers/base:debian",
4+
"postCreateCommand": ".devcontainer/postCreate.sh",
5+
"features": {
6+
"ghcr.io/devcontainers/features/python:1": {
7+
"installTools": true,
8+
"version": "3.10"
9+
}
10+
},
11+
"customizations": {
12+
"vscode": {
13+
"extensions": [
14+
"ms-python.python",
15+
"ms-python.debugpy"
16+
]
17+
}
18+
}
419
}

.devcontainer/postCreate.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
sudo apt-get update
4+
sudo apt-get install sl
5+
echo "export PATH=\$PATH:/usr/games" >> ~/.bashrc
6+
echo "export PATH=\$PATH:/usr/games" >> ~/.zshrc

0 commit comments

Comments
 (0)