mirror of
https://github.com/oceanprotocol/barge.git
synced 2024-11-28 23:06:22 +01:00
Merge branch 'main' into predictoor
This commit is contained in:
commit
0833abdc2c
13
README.md
13
README.md
@ -27,10 +27,9 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
We recommend running Barge inside a Linux machine.
|
||||||
You need to have the newest versions of:
|
- macOs - due to lacking docker network features, we recommend running Barge inside a Linux VM.
|
||||||
|
- Windows is not currently supported. If you are on Windows, we recommend running Barge inside a Linux VM. Another option might be to use the [Windows Subsystem for Linux (WSL)](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux).
|
||||||
- Linux or macOS. Windows is not currently supported. If you are on Windows, we recommend running Barge inside a Linux VM. Another option might be to use the [Windows Subsystem for Linux (WSL)](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux).
|
|
||||||
- [Docker](https://www.docker.com/get-started)
|
- [Docker](https://www.docker.com/get-started)
|
||||||
- On Linux, [allow non-root users](https://www.thegeekdiary.com/run-docker-as-a-non-root-user/)
|
- On Linux, [allow non-root users](https://www.thegeekdiary.com/run-docker-as-a-non-root-user/)
|
||||||
- On Windows or MacOS, [increase memory to 4 GB (default is 2 GB)](https://stackoverflow.com/a/44533437). Or, for C2D, make it 8 to 16 GB
|
- On Windows or MacOS, [increase memory to 4 GB (default is 2 GB)](https://stackoverflow.com/a/44533437). Or, for C2D, make it 8 to 16 GB
|
||||||
@ -105,10 +104,10 @@ The default versions are always a combination of component versions which are co
|
|||||||
| -------------- | ------------------ | --------------------------------- | --------------- | ------------- |
|
| -------------- | ------------------ | --------------------------------- | --------------- | ------------- |
|
||||||
| ganache | ocean-contracts | latest | 172.15.0.3 | 8545 -> 8545 |
|
| ganache | ocean-contracts | latest | 172.15.0.3 | 8545 -> 8545 |
|
||||||
| ocean-contracts | | v2.0.2 | 172.15.0.14 | |
|
| ocean-contracts | | v2.0.2 | 172.15.0.14 | |
|
||||||
| Aquarius | | v5.1.0 | 172.15.0.5 | 5000 -> 5000 |
|
| Aquarius | | v5.1.4 | 172.15.0.5 | 5000 -> 5000 |
|
||||||
| Elasticsearch | Aquarius | 8.5.1 | 172.15.0.6 | |
|
| Elasticsearch | Aquarius | 8.5.1 | 172.15.0.6 | |
|
||||||
| Provider | | v2.0.0 | 172.15.0.4 | 8030 -> 8030 |
|
| Provider | | v2.1.3 | 172.15.0.4 | 8030 -> 8030 |
|
||||||
| Provider2 | | v2.0.0 | 172.15.0.7 | 8030 -> 8030 |
|
| Provider2 | | v2.1.3 | 172.15.0.7 | 8030 -> 8030 |
|
||||||
| RBAC Server | | main | 172.15.0.8 | 3000 -> 3000 |
|
| RBAC Server | | main | 172.15.0.8 | 3000 -> 3000 |
|
||||||
| GraphNode | | graphprotocol/graph-node:v0.28.2 | 172.15.0.15 | 9000 -> 8000 ,9001 -> 8001 , 9020 -> 8020, 9030 -> 8030, 9040 -> 8040 |
|
| GraphNode | | graphprotocol/graph-node:v0.28.2 | 172.15.0.15 | 9000 -> 8000 ,9001 -> 8001 , 9020 -> 8020, 9030 -> 8030, 9040 -> 8040 |
|
||||||
| Graphipfs | | ipfs/go-ipfs:v0.4.23 | 172.15.0.16 | 5001 -> 5001 |
|
| Graphipfs | | ipfs/go-ipfs:v0.4.23 | 172.15.0.16 | 5001 -> 5001 |
|
||||||
|
@ -32,5 +32,7 @@ services:
|
|||||||
RUN_EVENTS_MONITOR: "1"
|
RUN_EVENTS_MONITOR: "1"
|
||||||
AQUARIUS_URL: http://172.15.0.5:5000
|
AQUARIUS_URL: http://172.15.0.5:5000
|
||||||
EVENTS_MONITOR_SLEEP_TIME: ${EVENTS_MONITOR_SLEEP_TIME}
|
EVENTS_MONITOR_SLEEP_TIME: ${EVENTS_MONITOR_SLEEP_TIME}
|
||||||
|
SUBGRAPH_URLS: |
|
||||||
|
{"8996": "http://172.15.0.15:8000"}
|
||||||
volumes:
|
volumes:
|
||||||
- ${OCEAN_ARTIFACTS_FOLDER}:/ocean-contracts/artifacts/
|
- ${OCEAN_ARTIFACTS_FOLDER}:/ocean-contracts/artifacts/
|
||||||
|
@ -28,9 +28,9 @@ COMPOSE_DIR="${DIR}/compose-files"
|
|||||||
|
|
||||||
# Default versions of Aquarius, Provider
|
# Default versions of Aquarius, Provider
|
||||||
|
|
||||||
export AQUARIUS_VERSION=${AQUARIUS_VERSION:-v5.1.0}
|
export AQUARIUS_VERSION=${AQUARIUS_VERSION:-v5.1.5}
|
||||||
export ELASTICSEARCH_VERSION=${ELASTICSEARCH_VERSION:-8.5.1}
|
export ELASTICSEARCH_VERSION=${ELASTICSEARCH_VERSION:-8.5.1}
|
||||||
export PROVIDER_VERSION=${PROVIDER_VERSION:-v2.0.1}
|
export PROVIDER_VERSION=${PROVIDER_VERSION:-v2.1.3}
|
||||||
export SUBGRAPH_VERSION=${SUBGRAPH_VERSION:-v4.0.2}
|
export SUBGRAPH_VERSION=${SUBGRAPH_VERSION:-v4.0.2}
|
||||||
export CONTRACTS_VERSION=${CONTRACTS_VERSION:-v2.0.2}
|
export CONTRACTS_VERSION=${CONTRACTS_VERSION:-v2.0.2}
|
||||||
export RBAC_VERSION=${RBAC_VERSION:-next}
|
export RBAC_VERSION=${RBAC_VERSION:-next}
|
||||||
@ -73,8 +73,6 @@ export GANACHE_MNEMONIC=${GANACHE_MNEMONIC:-"taxi music thumb unique chat sand c
|
|||||||
export GANACHE_INSTAMINE=${GANACHE_INSTAMINE:-"eager"}
|
export GANACHE_INSTAMINE=${GANACHE_INSTAMINE:-"eager"}
|
||||||
export GANACHE_BLOCKTIME=${GANACHE_BLOCKTIME:-0}
|
export GANACHE_BLOCKTIME=${GANACHE_BLOCKTIME:-0}
|
||||||
export GANACHE_FORK=${GANACHE_FORK:-"istanbul"}
|
export GANACHE_FORK=${GANACHE_FORK:-"istanbul"}
|
||||||
|
|
||||||
|
|
||||||
# Ocean contracts
|
# Ocean contracts
|
||||||
export OCEAN_HOME="${HOME}/.ocean"
|
export OCEAN_HOME="${HOME}/.ocean"
|
||||||
export CONTRACTS_OWNER_ROLE_ADDRESS="${CONTRACTS_OWNER_ROLE_ADDRESS}"
|
export CONTRACTS_OWNER_ROLE_ADDRESS="${CONTRACTS_OWNER_ROLE_ADDRESS}"
|
||||||
@ -131,17 +129,6 @@ fi
|
|||||||
#export OPERATOR_SERVICE_URL=http://127.0.0.1:8050
|
#export OPERATOR_SERVICE_URL=http://127.0.0.1:8050
|
||||||
export OPERATOR_SERVICE_URL=${OPERATOR_SERVICE_URL:-"http://172.15.0.13:31000/"}
|
export OPERATOR_SERVICE_URL=${OPERATOR_SERVICE_URL:-"http://172.15.0.13:31000/"}
|
||||||
|
|
||||||
# Add aquarius to /etc/hosts
|
|
||||||
# Workaround mainly for macOS
|
|
||||||
|
|
||||||
if [ ${IP} = "localhost" ]; then
|
|
||||||
if grep -q "aquarius" /etc/hosts; then
|
|
||||||
echo "aquarius exists"
|
|
||||||
else
|
|
||||||
echo "127.0.0.1 aquarius" | sudo tee -a /etc/hosts
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# colors
|
# colors
|
||||||
COLOR_R="\033[0;31m" # red
|
COLOR_R="\033[0;31m" # red
|
||||||
COLOR_G="\033[0;32m" # green
|
COLOR_G="\033[0;32m" # green
|
||||||
|
Loading…
Reference in New Issue
Block a user