Skip to content

Commit 5b0cf74

Browse files
committed
feat: Add features, extensions, and postCreate script
1 parent b4b6b0c commit 5b0cf74

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": "Basic Dev Environment",
3-
"image": "mcr.microsoft.com/devcontainers/base:debian"
3+
"image": "mcr.microsoft.com/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)