Skip to content

Commit 6a08836

Browse files
authored
Add devcontainer config (#10)
Signed-off-by: Marc Duiker <[email protected]>
1 parent a8fac5d commit 6a08836

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.devcontainer/devcontainer.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/python
3+
{
4+
"name": "Python 3",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
7+
"features": {
8+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
9+
"ghcr.io/dapr/cli/dapr-cli:0": {}
10+
},
11+
12+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
13+
// "forwardPorts": [],
14+
15+
// Use 'postCreateCommand' to run commands after the container is created.
16+
"postCreateCommand": "bash .devcontainer/post-create.sh"
17+
18+
// Configure tool-specific properties.
19+
// "customizations": {},
20+
21+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
22+
// "remoteUser": "root"
23+
}

.devcontainer/post-create.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dapr uninstall
2+
dapr init
3+
pip install --upgrade pip

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto eol=lf
2+
post-create.sh text eol=lf

0 commit comments

Comments
 (0)