forked from LGouellec/streamiz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
52 lines (48 loc) · 1.69 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
github:
prebuilds:
# enable for the default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
branches: true
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
addComment: true
# configure whether Gitpod registers itself as a status check to pull requests
addCheck: false
image:
file: .gitpod.Dockerfile
tasks:
- name: run
before: mkdir -p /tmp/dotnet && curl -fsSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 6.0 --install-dir /tmp/dotnet
command: |
./run-demo.sh
echo "1" > run
echo "🚀 Enjoy Streamiz the .NET Stream processing library for Apache Kafka (TM)";
sleep 2
dotnet run -f net6.0 --project samples/sample-stream-demo/sample-stream-demo.csproj --no-build --no-restore
- name: producer
command: while [ ! -f run ]; do sleep 1; done; docker-compose -f environment/docker-compose.yml exec broker kafka-console-producer --bootstrap-server broker:29092 --topic input
- name: consumer
command: while [ ! -f run ]; do sleep 1; done; docker-compose -f environment/docker-compose.yml exec broker kafka-console-consumer --bootstrap-server broker:29092 --topic output --property print.key=true --property print.value=true --from-beginning
vscode:
extensions:
- muhammad-sammy.csharp
ports:
# streamiz metrics
- port: 9090
onOpen: ignore
# zookeeper
- port: 2181
onOpen: ignore
# broker
- port: 9092
onOpen: ignore
- port: 9101
onOpen: ignore
# akhq
- port: 8082
onOpen: ignore
# schema-registry
- port: 8081
onOpen: ignore