-
Notifications
You must be signed in to change notification settings - Fork 12
/
runing.sh
65 lines (58 loc) · 1.51 KB
/
runing.sh
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
#!/bin/bash
# Önceki cüzdan mnemonic kelimeleri giriniz
read -p "Enter your mnemonic phrase: " mnemonic_phrase
# Repoyu Clonluyoruz
git clone https://github.com/allora-network/basic-coin-prediction-node
# Dizini değiştir
cd basic-coin-prediction-node
# JSON içeriğini config.json'a yazın
cat <<EOF > config.json
{
"wallet": {
"addressKeyName": "test",
"addressRestoreMnemonic": "$mnemonic_phrase",
"alloraHomeDir": "",
"gas": "1000000",
"gasAdjustment": 1.0,
"nodeRpc": "https://allora-rpc.testnet-1.testnet.allora.network/",
"maxRetries": 1,
"delay": 1,
"submitTx": false
},
"worker": [
{
"topicId": 1,
"inferenceEntrypointName": "api-worker-reputer",
"loopSeconds": 5,
"parameters": {
"InferenceEndpoint": "http://inference:8000/inference/{Token}",
"Token": "ETH"
}
},
{
"topicId": 2,
"inferenceEntrypointName": "api-worker-reputer",
"loopSeconds": 5,
"parameters": {
"InferenceEndpoint": "http://inference:8000/inference/{Token}",
"Token": "ETH"
}
},
{
"topicId": 7,
"inferenceEntrypointName": "api-worker-reputer",
"loopSeconds": 5,
"parameters": {
"InferenceEndpoint": "http://inference:8000/inference/{Token}",
"Token": "ETH"
}
}
]
}
EOF
echo "Belirtilen içerikle oluşturulan yapılandırma dosyası."
mkdir worker-data
chmod +x init.config
./init.config
# Docker containers calistiralim
docker-compose up -d --build