Skip to content

Commit ee763a8

Browse files
committed
feat: Add features, extensions, and postCreate script
1 parent dc84572 commit ee763a8

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.devcontainer/devcontainer.json

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

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