forked from hoprnet/hoprnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
90 lines (70 loc) · 2.02 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
github:
prebuilds:
# Only prebuild in master branch
master: true
branches: false
pullRequests: false
pullRequestsFromForks: false
addCheck: false
addComment: false
addBadge: false
image:
file: .gitpod.Dockerfile
tasks:
- name: Environment setup
init: |
echo '🦄 📦 Installing hoprnet repository dependencies'
./scripts/install-websocat.sh
yarn
echo '🦄 📦 Building latest version of hoprnet monorepo'
yarn build
command: |
echo '🟡 Running HOPR nodes and topology'
./scripts/setup-local-cluster.sh -t "^^LOCAL-testing-123^^" -i scripts/topologies/full_interconnected_cluster.sh
openMode: tab-after
- name: Command window
before: |
echo "🦄 Waiting for cluster setup to finish..."
gp sync-await "local-cluster" && sleep 15s
command: |
source ./scripts/init-gitpod.sh
openMode: tab-after
- name: Node 1 WS
before: |
echo "🦄 Waiting for cluster setup to finish..."
gp sync-await "local-cluster" && sleep 15s
command: |
source ./scripts/init-gitpod.sh
echo '📡 Node 1 WS Connection'
echo -e "\n"
sleep 5s
./.bin/websocat "$(echo "$HOPR_NODE_1_WS_URL" | sed "s/http/ws/")/?apiToken=$apiToken"
openMode: tab-after
- name: Node 2 WS
before: |
echo "🦄 Waiting for cluster setup to finish..."
gp sync-await "local-cluster" && sleep 15s
command: |
source ./scripts/init-gitpod.sh
echo '📡 Node 2 WS Connection'
echo -e "\n"
sleep 5s
./.bin/websocat "$(echo "$HOPR_NODE_2_WS_URL" | sed "s/http/ws/")/?apiToken=$apiToken"
openMode: split-right
ports:
- name: HOPRd REST API
port: 13301-13305
visibility: public
onOpen: ignore
- name: HOPR protocol
port: 19091-19095
visibility: public
onOpen: ignore
- name: HOPRd Admin
port: 19501-19505
visibility: public
onOpen: ignore
- name: HOPRd healthcheck
port: 18081-18085
visibility: public
onOpen: ignore