-
Notifications
You must be signed in to change notification settings - Fork 8
/
Taskfile.yml
102 lines (89 loc) · 2.88 KB
/
Taskfile.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
91
92
93
94
95
96
97
98
99
100
101
102
version: 3
includes:
helper: ./HelperTasks.yml
dotenv:
- .env
env:
SOLO_CHART_VERSION: 0.34.0
CONSENSUS_NODE_VERSION: v0.56.0
SOLO_NAMESPACE: solo-e2e
SOLO_CLUSTER_SETUP_NAMESPACE: solo-setup
SOLO_CLUSTER_RELEASE_NAME: solo-cluster-setup
SOLO_NETWORK_SIZE: 2
SOLO_CLUSTER_NAME: solo-cluster
KIND_IMAGE: kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72
MIRROR_RELEASE_NAME: mirror
tasks:
default:
desc: install Solo, deploy the network, set it up, and start it
cmds:
- task: "helper:install:solo"
- task: "install"
- task: "start"
default-with-mirror:
desc: in addition to the defaults, also deploy the mirror node
cmds:
- task: "default"
- task: "solo:mirror-node"
default-with-relay:
desc: in addition to default-with-mirror, deploy the JSON RPC relay
cmds:
- task: "default"
- task: "solo:mirror-node"
- task: "helper:solo:relay"
install:
desc: create the cluster, solo init, solo cluster create, solo node keys, solo network deploy
cmds:
- task: "helper:cluster:create"
- task: "helper:solo:init"
- task: "helper:cluster:setup"
- task: "helper:solo:keys"
- task: "helper:solo:network:deploy"
start:
desc: solo node start
cmds:
- task: "helper:solo:node:start"
stop:
desc: solo node stop
cmds:
- task: "helper:solo:node:stop"
solo:mirror-node:
desc: solo mirror-node deploy with port forward on explorer
cmds:
- npm run build
- solo mirror-node deploy --namespace "${SOLO_NAMESPACE}"
- echo "Enable port forwarding for Hedera Explorer & Mirror Node Network"
- kubectl port-forward -n "${SOLO_NAMESPACE}" svc/hedera-explorer 8080:80 &
- kubectl port-forward svc/mirror-grpc -n "${SOLO_NAMESPACE}" 5600:5600 &
- task: "helper:sleep_after_port_forward"
solo:destroy-mirror-node:
desc: solo mirror-node destroy
status:
- helm list -n "${SOLO_NAMESPACE}" | grep -vqz "${MIRROR_RELEASE_NAME}"
cmds:
- npm run build
- solo mirror-node destroy --namespace "${SOLO_NAMESPACE}" --force || true
destroy:
desc: destroy relay, mirror-node, and network
cmds:
- task: "helper:solo:node:stop"
- task: "helper:solo:network:destroy"
- task: "solo:destroy-mirror-node"
- task: "helper:solo:destroy-relay"
- task: "helper:cluster:destroy"
clean:
desc: destroy, then remove cache directory, logs directory, config, and port forwards
cmds:
- task: "destroy"
- task: "clean:cache"
- task: "clean:logs"
- task: "helper:solo:config:remove"
- task: "helper:clean:port-forward"
clean:cache:
desc: remove solo cache directory
cmds:
- task: "helper:solo:cache:remove"
clean:logs:
desc: remove solo logs director
cmds:
- task: "helper:solo:logs:remove"