Skip to content

Commit 60d580b

Browse files
add devcontainer configuration and setup script
1 parent 95d022c commit 60d580b

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "azd-template",
3+
"image": "mcr.microsoft.com/devcontainers/python:3.11-bullseye",
4+
"forwardPorts": [3000, 5000],
5+
"features": {
6+
"ghcr.io/devcontainers/features/node:1": {
7+
"nodeGypDependencies": true,
8+
"installYarnUsingApt": true,
9+
"version": "lts",
10+
"pnpmVersion": "latest",
11+
"nvmVersion": "latest"
12+
},
13+
"ghcr.io/devcontainers/features/azure-cli:1": {
14+
"installBicep": true,
15+
"version": "latest",
16+
"bicepVersion": "latest"
17+
},
18+
"ghcr.io/azure/azure-dev/azd:0": {
19+
"version": "stable"
20+
}
21+
},
22+
"customizations": {
23+
"vscode": {
24+
"extensions": [
25+
"ms-azuretools.azure-dev",
26+
"ms-azuretools.vscode-bicep",
27+
"ms-python.python",
28+
"ms-toolsai.jupyter",
29+
"GitHub.vscode-github-actions"
30+
]
31+
}
32+
},
33+
"postCreateCommand": "bash ./.devcontainer/setup_env.sh",
34+
"remoteUser": "vscode",
35+
"hostRequirements": {
36+
"memory": "4gb"
37+
}
38+
}

.devcontainer/setup_env.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
git fetch
4+
git pull
5+
6+
# provide execute permission to deploy scripts
7+
sudo chmod +x ./scripts/deploy.sh
8+
sudo chmod +x ./scripts/local_dev.sh

0 commit comments

Comments
 (0)