Skip to content

Commit 095629a

Browse files
committed
feat: Add features, extensions, and postCreate script
1 parent 4e4dfb4 commit 095629a

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
{
22
"name": "Universal - Latest",
3-
"image": "mcr.microsoft.com/devcontainers/universal:latest"
3+
"image": "mcr.microsoft.com/devcontainers/universal:latest",
4+
"features": {
5+
"ghcr.io/stu-bell/devcontainer-features/python:0": {
6+
"apt_get": true,
7+
"installTools": true,
8+
"min_python_version": "3.15"
9+
}
10+
},
11+
"customizations": {
12+
"vscode": {
13+
"extensions": [
14+
"ms-python.python",
15+
"ms-python.debugpy"
16+
]
17+
}
18+
},
19+
"postCreateCommand": "bash .devcontainer/postCreate.sh"
420
}

.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)