Skip to content

Commit d1f01a3

Browse files
committed
feat: Add features, extensions, and postCreate script
1 parent dd31a7b commit d1f01a3

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
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/devcontainers/features/python:1": {
6+
"installTools": true,
7+
"version": "3.10"
8+
}
9+
},
10+
"customizations": {
11+
"vscode": {
12+
"extensions": [
13+
"ms-python.python",
14+
"ms-python.debugpy"
15+
]
16+
}
17+
},
18+
"postCreateCommand": "bash .devcontainer/postCreate.sh"
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)