Make Elasticsearch the default & MongoDB an option (#161)
This commit is contained in:
parent
75eda67ea7
commit
ae6e34d18f
17
README.md
17
README.md
|
@ -91,7 +91,7 @@ Other `start_ocean.sh` options:
|
||||||
| `--no-aquarius` | Start up Ocean without the `aquarius` Building Block. |
|
| `--no-aquarius` | Start up Ocean without the `aquarius` Building Block. |
|
||||||
| `--no-brizo` | Start up Ocean without the `brizo` Building Block. |
|
| `--no-brizo` | Start up Ocean without the `brizo` Building Block. |
|
||||||
| `--no-secret-store` | Start up Ocean without the `secret-store` Building Block. |
|
| `--no-secret-store` | Start up Ocean without the `secret-store` Building Block. |
|
||||||
| `--elasticsearch` | Start up Ocean with ElasticSearch as DB engine for Aquarius instead of MongoDB. |
|
| `--mongodb` | Start up Ocean with MongoDB as DB engine for Aquarius instead of Elasticsearch. |
|
||||||
| `--local-ganache-node` | Runs a local `ganache` node. |
|
| `--local-ganache-node` | Runs a local `ganache` node. |
|
||||||
| `--local-spree-node` | Runs a node of the local `spree` network. This is the default. |
|
| `--local-spree-node` | Runs a node of the local `spree` network. This is the default. |
|
||||||
| `--local-duero-node` | Runs a local parity node and connects the node to the `duero` network. |
|
| `--local-duero-node` | Runs a local parity node and connects the node to the `duero` network. |
|
||||||
|
@ -114,25 +114,26 @@ By default it will start one container. If Pleuston is running, you can open the
|
||||||
|
|
||||||
This Building Block can be disabled by setting the `--no-pleuston` flag.
|
This Building Block can be disabled by setting the `--no-pleuston` flag.
|
||||||
|
|
||||||
| Hostname | External Port | Internal Url | Local Url | Description |
|
| Hostname | External Port | Internal URL | Local URL | Description |
|
||||||
| ---------- | ------------- | -------------------- | --------------------- | ----------------------------------------------------- |
|
| ---------- | ------------- | -------------------- | --------------------- | ----------------------------------------------------- |
|
||||||
| `pleuston` | `3000` | http://pleuston:3000 | http://localhost:3000 | [Pleuston](https://github.com/oceanprotocol/pleuston) |
|
| `pleuston` | `3000` | http://pleuston:3000 | http://localhost:3000 | [Pleuston](https://github.com/oceanprotocol/pleuston) |
|
||||||
|
|
||||||
### Aquarius
|
### Aquarius
|
||||||
|
|
||||||
By default it will start two containers (one for aquarius and one for its database engine). By default Barge will use MongoDB as DB Engine. You can use option `--elasticsearch` to use ElasticSearch instead.
|
By default it will start two containers (one for Aquarius and one for its database engine). By default, Barge will use Elasticsearch for its database engine. You can use the `--mongodb` option to use MongoDB instead.
|
||||||
This Building Block can be disabled by setting the `--no-aquarius` flag.
|
This Building Block can be disabled by setting the `--no-aquarius` flag.
|
||||||
|
|
||||||
| Hostname | External Port | Internal Url | Local Url | Description |
|
| Hostname | External Port | Internal URL | Local URL | Description |
|
||||||
| ---------- | ------------- | -------------------- | --------------------- | ----------------------------------------------------- |
|
| --------------- | ------------- | -------------------- | --------------------- | ----------------------------------------------------- |
|
||||||
| `aquarius` | `5000` | http://aquarius:5000 | http://localhost:5000 | [Aquarius](https://github.com/oceanprotocol/aquarius) |
|
| `aquarius` | `5000` | http://aquarius:5000 | http://localhost:5000 | [Aquarius](https://github.com/oceanprotocol/aquarius) |
|
||||||
| `mongodb` | | | | MongoDB used by Aquarius |
|
| `elasticsearch` | | | | The Elasticsearch used by Aquarius |
|
||||||
|
| `mongodb` | | | | The MongoDB used by Aquarius |
|
||||||
|
|
||||||
### Brizo
|
### Brizo
|
||||||
|
|
||||||
By default it will start one container. This Building Block can be disabled by setting the `--no-brizo` flag.
|
By default it will start one container. This Building Block can be disabled by setting the `--no-brizo` flag.
|
||||||
|
|
||||||
| Hostname | External Port | Internal Url | Local Url | Description |
|
| Hostname | External Port | Internal URL | Local URL | Description |
|
||||||
| -------- | ------------- | ----------------- | --------------------- | ----------------------------------------------- |
|
| -------- | ------------- | ----------------- | --------------------- | ----------------------------------------------- |
|
||||||
| `brizo` | `8030` | http://brizo:8030 | http://localhost:8030 | [Brizo](https://github.com/oceanprotocol/brizo) |
|
| `brizo` | `8030` | http://brizo:8030 | http://localhost:8030 | [Brizo](https://github.com/oceanprotocol/brizo) |
|
||||||
|
|
||||||
|
@ -141,7 +142,7 @@ By default it will start one container. This Building Block can be disabled by s
|
||||||
Controlled by the `--local-*-node` config switches will start a container `keeper-node` that uses port `8545` to expose an rpc endpoint to the Ethereum Protocol.
|
Controlled by the `--local-*-node` config switches will start a container `keeper-node` that uses port `8545` to expose an rpc endpoint to the Ethereum Protocol.
|
||||||
You can find a detailed explanation of how to use this in the [script options](#script-options) section of this document.
|
You can find a detailed explanation of how to use this in the [script options](#script-options) section of this document.
|
||||||
|
|
||||||
| Hostname | External Port | Internal Url | Local Url | Description |
|
| Hostname | External Port | Internal URL | Local URL | Description |
|
||||||
| ------------- | ------------- | ----------------------- | --------------------- | -------------------- |
|
| ------------- | ------------- | ----------------------- | --------------------- | -------------------- |
|
||||||
| `keeper-node` | `8545` | http://keeper-node:8545 | http://localhost:8545 | An Ethereum RPC node |
|
| `keeper-node` | `8545` | http://keeper-node:8545 | http://localhost:8545 | An Ethereum RPC node |
|
||||||
|
|
||||||
|
|
|
@ -49,10 +49,17 @@ export KEEPER_MNEMONIC="taxi music thumb unique chat sand crew more leg another
|
||||||
export CONFIGURE_ACL="true"
|
export CONFIGURE_ACL="true"
|
||||||
export ACL_CONTRACT_ADDRESS=""
|
export ACL_CONTRACT_ADDRESS=""
|
||||||
|
|
||||||
# Default Aquarius parameters
|
# Default Aquarius parameters: use Elasticsearch
|
||||||
export DB_MODULE="mongodb"
|
export DB_MODULE="elasticsearch"
|
||||||
export DB_HOSTNAME="mongodb"
|
export DB_HOSTNAME="elasticsearch"
|
||||||
export DB_PORT="27017"
|
export DB_PORT="9200"
|
||||||
|
export DB_USERNAME="elastic"
|
||||||
|
export DB_PASSWORD="changeme"
|
||||||
|
export DB_SSL="false"
|
||||||
|
export DB_VERIFY_CERTS="false"
|
||||||
|
export DB_CA_CERTS=""
|
||||||
|
export DB_CLIENT_KEY=""
|
||||||
|
export DB_CLIENT_CERT=""
|
||||||
|
|
||||||
# Export User UID and GID
|
# Export User UID and GID
|
||||||
export LOCAL_USER_ID=$(id -u)
|
export LOCAL_USER_ID=$(id -u)
|
||||||
|
@ -118,7 +125,7 @@ COMPOSE_FILES=""
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/keeper_contracts.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/keeper_contracts.yml"
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/network_volumes.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/network_volumes.yml"
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/pleuston.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/pleuston.yml"
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/aquarius_mongodb.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/aquarius_elasticsearch.yml"
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/brizo.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/brizo.yml"
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/secret_store.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/secret_store.yml"
|
||||||
|
|
||||||
|
@ -160,7 +167,7 @@ while :; do
|
||||||
printf $COLOR_Y'Starting without Brizo...\n\n'$COLOR_RESET
|
printf $COLOR_Y'Starting without Brizo...\n\n'$COLOR_RESET
|
||||||
;;
|
;;
|
||||||
--no-aquarius)
|
--no-aquarius)
|
||||||
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/aquarius_mongodb.yml/}"
|
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/aquarius_elasticsearch.yml/}"
|
||||||
printf $COLOR_Y'Starting without Aquarius...\n\n'$COLOR_RESET
|
printf $COLOR_Y'Starting without Aquarius...\n\n'$COLOR_RESET
|
||||||
;;
|
;;
|
||||||
--no-secret-store)
|
--no-secret-store)
|
||||||
|
@ -179,22 +186,15 @@ while :; do
|
||||||
printf $COLOR_Y'Starting only Secret Store...\n\n'$COLOR_RESET
|
printf $COLOR_Y'Starting only Secret Store...\n\n'$COLOR_RESET
|
||||||
;;
|
;;
|
||||||
#################################################
|
#################################################
|
||||||
# Elasticsearch
|
# MongoDB
|
||||||
#################################################
|
#################################################
|
||||||
--elasticsearch)
|
--mongodb)
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/aquarius_elasticsearch.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/aquarius_mongodb.yml"
|
||||||
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/aquarius_mongodb.yml/}"
|
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/aquarius_elasticsearch.yml/}"
|
||||||
export DB_MODULE="elasticsearch"
|
export DB_MODULE="mongodb"
|
||||||
export DB_HOSTNAME="elasticsearch"
|
export DB_HOSTNAME="mongodb"
|
||||||
export DB_PORT="9200"
|
export DB_PORT="27017"
|
||||||
export DB_USERNAME="elastic"
|
printf $COLOR_Y'Starting with MongoDB...\n\n'$COLOR_RESET
|
||||||
export DB_PASSWORD="changeme"
|
|
||||||
export DB_SSL="false"
|
|
||||||
export DB_VERIFY_CERTS="false"
|
|
||||||
export DB_CA_CERTS=""
|
|
||||||
export DB_CLIENT_KEY=""
|
|
||||||
export DB_CLIENT_CERT=""
|
|
||||||
printf $COLOR_Y'Starting with Elasticsearch...\n\n'$COLOR_RESET
|
|
||||||
;;
|
;;
|
||||||
#################################################
|
#################################################
|
||||||
# Contract/Storage switches
|
# Contract/Storage switches
|
||||||
|
|
Loading…
Reference in New Issue