Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Major upgrade (#126)
Browse files Browse the repository at this point in the history
v0.1 -> v1

---------

Signed-off-by: RedBird96 <73715579+RedBird96@users.noreply.github.com>
Signed-off-by: Diego C <xmariachi@gmail.com>
Co-authored-by: xmariachi <xmariachi@gmail.com>
Co-authored-by: RedBird96 <73715579+RedBird96@users.noreply.github.com>
Co-authored-by: Michael <michael.c@upshot.xyz>
Co-authored-by: RedBird96 <gt20181122@gmail.com>
Co-authored-by: vladupshot <154623109+vladupshot@users.noreply.github.com>
  • Loading branch information
6 people authored Jun 6, 2024
1 parent 5914508 commit 261effa
Show file tree
Hide file tree
Showing 14 changed files with 1,309 additions and 552 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/build_push_ghcr.yaml

This file was deleted.

43 changes: 30 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ In order to build locally:
GOOS=linux GOARCH=amd64 make
```

***WARNING***

This repo is currently relying on a private module, current development requires

```bash
export GOPRIVATE=github.com/allora-network/allora-appchain
```

# Run locally

## Head
Expand All @@ -44,6 +36,8 @@ export GOPRIVATE=github.com/allora-network/allora-appchain
```
## Worker

Worker (for inference or forecast requests) node:

```
./allora-node \
--role=worker \
Expand All @@ -60,12 +54,35 @@ export GOPRIVATE=github.com/allora-network/allora-appchain
--allora-chain-key-name=local-worker \
--allora-chain-restore-mnemonic='your mnemonic words...' --allora-node-rpc-address=https://some-allora-rpc-address/ \
--allora-chain-topic-id=1 \
--allora-chain-initial-stake=1000
--allora-chain-initial-stake=1000 \
--allora-chain-worker-mode=worker
```

Reputer (for reputation requests) node:

```
./allora-node \
--role=worker \
--peer-db=/data/peerdb \
--function-db=/data/function-db \
--runtime-path=/app/runtime \
--runtime-cli=bls-runtime \
--workspace=/data/workspace \
--private-key=/var/keys/priv.bin \
--port=9011 \
--rest-api=:6000 \
--boot-nodes=/ip4/<head-ip-addr>/tcp/9010/p2p/<advertised-head-peerid-key>
--topic=1 \
--allora-chain-key-name=local-worker \
--allora-chain-restore-mnemonic='your mnemonic words...' --allora-node-rpc-address=https://some-allora-rpc-address/ \
--allora-chain-topic-id=1 \
--allora-chain-initial-stake=1000 \
--allora-chain-worker-mode=reputer
```

## Notes

If you plan to deploy without wanting to connect to the Allora blockchain, just by testing your setup and your inferences, do not set any `--allora-...` flag.
If you plan to deploy temporarily without attempting to connect to the Allora blockchain, e.g. just for testing your setup and your inferences and forecasts, do not set any `--allora-...` flag.

### Topic registration

Expand Down Expand Up @@ -94,13 +111,13 @@ Blockless nodes need to define a number of directories:
To build the image for the head:

```
docker build -f docker/Dockerfile_head -t allora-inference-base:dev-head --build-arg "GH_TOKEN=${YOUR_GH_TOKEN}" --build-arg "BLS_EXTENSION_VER=${BLS_EXTENSION_VERSION}" .
docker build --pull -f docker/Dockerfile_head -t allora-inference-base:dev-head --build-arg "GH_TOKEN=${YOUR_GH_TOKEN}" --build-arg "BLS_EXTENSION_VER=${BLS_EXTENSION_VERSION}" .
```

Then to build the image for the head:
To build the image for the worker:

```
docker build -f docker/Dockerfile_worker -t allora-inference-base:dev-worker --build-arg "GH_TOKEN=${YOUR_GH_TOKEN}" --build-arg "BLS_EXTENSION_VER=${BLS_EXTENSION_VERSION}" .
docker build --pull -f docker/Dockerfile_worker -t allora-inference-base:dev-worker --build-arg "GH_TOKEN=${YOUR_GH_TOKEN}" --build-arg "BLS_EXTENSION_VER=${BLS_EXTENSION_VERSION}" .
```

where `YOUR_GH_TOKEN` is your Github token, and optionally `BLS_EXTENSION_VER` is the release version of the [Allora inference extension](https://github.com/allora-network/allora-inference-extension) to use (it will use latest if none is set).
Expand Down
Loading

0 comments on commit 261effa

Please sign in to comment.