Skip to content

Commit

Permalink
Merge pull request #25 from allora-network/kush-alloralabs-patch-1
Browse files Browse the repository at this point in the history
Update init.config
  • Loading branch information
okedeji authored Sep 20, 2024
2 parents ef4b04b + ef7d08d commit 2eadb7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:

worker:
container_name: worker
image: alloranetwork/allora-offchain-node:v0.3.0
image: alloranetwork/allora-offchain-node:v0.4.0
volumes:
- ./worker-data:/data
depends_on:
Expand Down
4 changes: 2 additions & 2 deletions init.config
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ ENV_LOADED=$(grep '^ENV_LOADED=' ./worker-data/env_file | cut -d '=' -f 2)
if [ "$ENV_LOADED" = "false" ]; then
json_content=$(cat ./config.json)
stringified_json=$(echo "$json_content" | jq -c .)
docker run -it --entrypoint=bash -v $(pwd)/worker-data:/data -v $(pwd)/scripts:/scripts -e NAME="${nodeName}" -e ALLORA_OFFCHAIN_NODE_CONFIG_JSON="${stringified_json}" alloranetwork/allora-chain:v0.4.0 -c "bash /scripts/init.sh"
docker run -it --entrypoint=bash -v $(pwd)/worker-data:/data -v $(pwd)/scripts:/scripts -e NAME="${nodeName}" -e ALLORA_OFFCHAIN_NODE_CONFIG_JSON="${stringified_json}" alloranetwork/allora-chain:v0.5.0 -c "bash /scripts/init.sh"
echo "config.json saved to ./worker-data/env_file"
else
echo "config.json is already loaded, skipping the operation. You can set ENV_LOADED variable to false in ./worker-data/env_file to reload the config.json"
fi
fi
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
flask[async]
gunicorn[gthread]
numpy
pandas
pandas==2.2.2
Requests
aiohttp
multiprocess
Expand Down

0 comments on commit 2eadb7f

Please sign in to comment.