1
0
mirror of https://github.com/oceanprotocol/barge.git synced 2024-11-25 03:20:17 +01:00

add typesense

This commit is contained in:
alexcos20 2024-08-08 13:24:01 +03:00
parent 13d0b7c34a
commit c1d929e62b
No known key found for this signature in database
3 changed files with 22 additions and 2 deletions

View File

@ -106,6 +106,7 @@ The default versions are always a combination of component versions which are co
| ocean-contracts | | v2.0.2 | 172.15.0.14 | | | ocean-contracts | | v2.0.2 | 172.15.0.14 | |
| Aquarius | | v5.1.4 | 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 | |
| Typesense | Ocean-node | 0.25.1 | 172.15.0.20 | 8108 -> 8108 |
| Provider | | v2.1.6 | 172.15.0.4 | 8030 -> 8030 | | Provider | | v2.1.6 | 172.15.0.4 | 8030 -> 8030 |
| Provider2 | | v2.1.6 | 172.15.0.7 | 8030 -> 8030 | | Provider2 | | v2.1.6 | 172.15.0.7 | 8030 -> 8030 |
| RBAC Server | | main | 172.15.0.8 | 3000 -> 3000 | | RBAC Server | | main | 172.15.0.8 | 3000 -> 3000 |
@ -156,6 +157,7 @@ export AQUARIUS_LOG_LEVEL=DEBUG
| -------------------------- | ----------------------------------------------------------------------------------------------- | | -------------------------- | ----------------------------------------------------------------------------------------------- |
| `--no-aquarius` | Start up Ocean without the `aquarius` Building Block. | | `--no-aquarius` | Start up Ocean without the `aquarius` Building Block. |
| `--no-elasticsearch` | Start up Ocean without the `elasticsearch` Building Block. | | `--no-elasticsearch` | Start up Ocean without the `elasticsearch` Building Block. |
| `--with-typesense` | Start up Ocean with Typesense |
| `--no-provider` | Start up Ocean without the `provider` Building Block. | | `--no-provider` | Start up Ocean without the `provider` Building Block. |
| `--no-ipfs` | Start up Ocean without the `ipfs` Building Block | | `--no-ipfs` | Start up Ocean without the `ipfs` Building Block |
| `--with-provider2` | Runs a 2nd provider, on port 8031. This is required for ocean.js/ocean.py integration tests. 2nd Provider will use the same image and parameters (log_level, ipfs gateway, compute gateway, etc) as provider1, but has a different private key | | `--with-provider2` | Runs a 2nd provider, on port 8031. This is required for ocean.js/ocean.py integration tests. 2nd Provider will use the same image and parameters (log_level, ipfs gateway, compute gateway, etc) as provider1, but has a different private key |

View File

@ -0,0 +1,14 @@
version: '3'
services:
typesense:
image: typesense/typesense:${TYPESENSE_VERSION:-latest}
ports:
- 8108:8108
networks:
backend:
ipv4_address: 172.15.0.20
volumes:
- typesense-data:/data
command: '--data-dir /data --api-key=xyz'
volumes:
typesense-data:

View File

@ -27,7 +27,7 @@ DIR="${DIR/ /\\ }"
COMPOSE_DIR="${DIR}/compose-files" COMPOSE_DIR="${DIR}/compose-files"
# Default versions of Aquarius, Provider # Default versions of Aquarius, Provider
export TYPESENSE_VERSION=${TYPESENSE_VERSION:-0.25.1}
export AQUARIUS_VERSION=${AQUARIUS_VERSION:-v5.1.5} 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.1.6} export PROVIDER_VERSION=${PROVIDER_VERSION:-v2.1.6}
@ -227,6 +227,10 @@ while :; do
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/registry.yml" COMPOSE_FILES+=" -f ${COMPOSE_DIR}/registry.yml"
printf $COLOR_Y'Starting with Registry...\n\n'$COLOR_RESET printf $COLOR_Y'Starting with Registry...\n\n'$COLOR_RESET
;; ;;
--with-typesense)
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/typesense.yml"
printf $COLOR_Y'Starting with Typesense...\n\n'$COLOR_RESET
;;
--with-c2d) --with-c2d)
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/registry.yml" COMPOSE_FILES+=" -f ${COMPOSE_DIR}/registry.yml"
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/ipfs.yml" COMPOSE_FILES+=" -f ${COMPOSE_DIR}/ipfs.yml"