aqua new version

This commit is contained in:
Bogdan Fazakas 2022-11-22 23:25:56 +02:00
parent 3ac1770226
commit 430cd02cd3
2 changed files with 63 additions and 68 deletions

View File

@ -63,10 +63,10 @@ The startup script comes with a set of options for customizing various things.
The default versions are always a combination of component versions which are considered stable.
| Component name | Required by | Version | IP Address | Ports exposed |
| -------------- | ------------------ | --------------------------------- | --------------- | ------------- |
| --------------- | --------------- | -------------------------------- | ----------------------- | --------------------------------------------------------------------- |
| ganache | ocean-contracts | latest | 172.15.0.3 | 8545 -> 8545 |
| ocean-contracts | | v1.1.8 | 172.15.0.14 | |
| Aquarius | | v4.2.0 | 172.15.0.5 | 5000 -> 5000 |
| Aquarius | | v4.5.5 | 172.15.0.5 | 5000 -> 5000 |
| Elasticsearch | Aquarius | 6.8.3 | 172.15.0.6 | |
| Provider | | v1.3.6 | 172.15.0.4 | 8030 -> 8030 |
| Provider2 | | v1.3.6 | 172.15.0.7 | 8030 -> 8030 |
@ -78,9 +78,6 @@ The default versions are always a combination of component versions which are co
| Redis | | bitnami/redis:latest | 172.15.0.18 | 6379 -> 6379 |
| C2d | | multiple components | 172.15.0.12,172.15.0.13 | 31000 -> 31000 |
You can override the Docker image tag used for a particular component by setting its associated environment variable before calling `start_ocean.sh`:
- `AQUARIUS_VERSION`
@ -116,7 +113,7 @@ export AQUARIUS_LOG_LEVEL=DEBUG
### All Options
| Option | Description |
| -------------------------- | ----------------------------------------------------------------------------------------------- |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--no-aquarius` | Start up Ocean without the `aquarius` Building Block. |
| `--no-elasticsearch` | Start up Ocean without the `elasticsearch` Building Block. |
| `--no-provider` | Start up Ocean without the `provider` Building Block. |
@ -132,8 +129,6 @@ export AQUARIUS_LOG_LEVEL=DEBUG
| `--exposeip` | Binds the components to that specific ip. Example: `./start_ocean.sh --exposeip 192.168.0.1` |
| `--with-c2d` | Runs a local C2D Cluster |
## Docker Building Blocks
Barge consists of a set of building blocks that can be combined to form a local test environment. By default all building blocks will be started by the `start_ocean.sh` script.
@ -152,26 +147,26 @@ This Building Block can be disabled by setting the `--no-aquarius` flag.
### Provider
| Hostname | External Port | Internal URL | Local URL | Description |
| ----------- | ------------- | --------------------- | --------------------- | --------------------------------------------------- |
| ---------- | ------------- | -------------------- | --------------------- | ----------- |
| `provider` | `8030` | http://provider:8030 | http://localhost:8030 | |
### Ganache
| Hostname | External Port | Internal URL | Local URL | Description |
| ----------- | ------------- | --------------------- | --------------------- | --------------------------------------------------- |
| --------- | ------------- | ------------------- | --------------------- | ----------- |
| `ganache` | `8545` | http://ganache:8545 | http://localhost:8545 | |
### TheGraph
| Hostname | External Port | Internal URL | Local URL | Description |
| ----------- | ------------- | --------------------- | --------------------- | --------------------------------------------------- |
| ----------- | ------------- | --------------------- | --------------------- | ----------- |
| `graphnode` | `9000` | http://graphnode:9000 | http://localhost:9000 | |
### ocean-contracts
* Deploy all smart contracts from the `ocean-contracts` repo
* Export artifacts files (.json) to default shared folder between all containers
* Create address file (address.json) that has the address of each deployed smart contract that is required by the ocean library. This file is saved to the same folder with the artifacts files
- Deploy all smart contracts from the `ocean-contracts` repo
- Export artifacts files (.json) to default shared folder between all containers
- Create address file (address.json) that has the address of each deployed smart contract that is required by the ocean library. This file is saved to the same folder with the artifacts files
The accounts can be accessed with this seed phrase:
@ -195,14 +190,13 @@ This will start a `portainer` dashboard with the following admin credentials and
### RBAC Server
| Hostname | External Port | Internal URL | Local URL | Description |
| ----------- | ------------- | --------------------- | --------------------- | --------------------------------------------------- |
| -------- | ------------- | ---------------- | --------------------- | ----------- |
| `rbac` | `3000` | http://rbac:3000 | http://localhost:3000 | |
The following addresses are preconfigured for testing: (first 10 addresses from the default mnemonic)
| Address | Roles |
| ----------------------------------------- | ------------------------------- |
| ------------------------------------------ | ------------------------------- |
| 0xe2DD09d719Da89e5a3D0F2549c7E24566e947260 | ["user","publisher","consumer"] |
| 0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e | ["user","publisher","consumer"] |
| 0xA78deb2Fa79463945C247991075E2a0e98Ba7A09 | ["user","publisher","consumer"] |
@ -218,19 +212,20 @@ The following addresses are preconfigured for testing: (first 10 addresses from
See the page titled "[Ways to Contribute](https://docs.oceanprotocol.com/concepts/contributing/)" in the Ocean Protocol documentation.
## Readiness
Several building blocks on barge are going to require some time until they are ready. Watch for the following files to be created:
| Building block | File | Condition |
| ----------------------------------------- | ------------------------------- | -------------- |
| --------------- | --------------------------------------------- | ------------------------------------ |
| ocean-contracts | ${OCEAN_HOME}/ocean-contracts/artifacts/ready |
| c2d | ${OCEAN_HOME}/ocean-c2d/ready | |
| c2d | ${OCEAN_HOME}/ocean-c2d/imagesready | Only if WAIT_FOR_C2DIMAGES == 'yeah' |
## Certs
Registry certs were created using the following commands:
```bash
openssl genrsa 2048 > registry.key
openssl req -new -x509 -nodes -sha1 -days 3650 -key registry.key -out registry.crt -addext 'subjectAltName = IP:172.15.0.11'

View File

@ -28,7 +28,7 @@ COMPOSE_DIR="${DIR}/compose-files"
# Default versions of Aquarius, Provider
export AQUARIUS_VERSION=${AQUARIUS_VERSION:-v4.2.0}
export AQUARIUS_VERSION=${AQUARIUS_VERSION:-v4.5.5}
export PROVIDER_VERSION=${PROVIDER_VERSION:-v1.3.6}
export SUBGRAPH_VERSION=${SUBGRAPH_VERSION:-v2.1.1}
export CONTRACTS_VERSION=${CONTRACTS_VERSION:-v1.1.8}