Skip to content

Commit 569f810

Browse files
support-codespaces (#76)
* fix .gitingore for codespaces * Install and init Dapr in Codespaces
1 parent 105a1a0 commit 569f810

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extensions": [
3+
"humao.rest-client"
4+
],
5+
// Use 'onCreateCommand' to run commands as part of container creation.
6+
"onCreateCommand": "/bin/bash -c .devcontainer/on-create.sh",
7+
}

.devcontainer/on-create.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
echo "on-create start" >> ~/status
4+
5+
# install dapr cli
6+
wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash
7+
8+
# initialize dapr
9+
dapr init
10+
11+
echo "on-create complete" >> ~/status

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ package-lock.json
44
vendor/**
55
twitter-sentiment-processor/demos/demo2/viewer/handler
66
twitter-sentiment-processor/demos/demo3/demochart/templates/twitter.yaml
7+
.venv/

0 commit comments

Comments
 (0)