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

multiple predictoor versions

This commit is contained in:
alexcos20 2023-07-31 18:08:29 +03:00
parent 88f7813282
commit 2bf56ed49a

View File

@ -294,10 +294,39 @@ while :; do
# Enforce images # Enforce images
export CONTRACTS_VERSION=predictoor2 export CONTRACTS_VERSION=predictoor2
export SUBGRAPH_VERSION=predictoor export SUBGRAPH_VERSION=predictoor
export PDR_TRUEVAL_VERSION=v0.0.1
export PDR_PREDICTOOR_VERSION=v0.0.1
export PDR_TRADER_VERSION=v0.0.1
export PDR_PUBLISHER_VERSION=v0.0.1
export PDR_DFBUYER_VERSION=v0.0.1
# replicate true blockchain behiavour # replicate true blockchain behiavour
export GANACHE_INSTAMINE=strict export GANACHE_INSTAMINE=strict
export GANACHE_BLOCKTIME=1 export GANACHE_BLOCKTIME=1
;; ;;
--new-predictoor)
# Add what we need
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/thegraph.yml"
# We should remove what is not needed for now, but ocean,py requires both aqua & provider
#COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/provider.yml/}"
#COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/redis.yml/}"
#COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/aquarius.yml/}"
#COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/elasticsearch.yml/}"
#COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/dashboard.yml/}"
# Enforce images
export CONTRACTS_VERSION=predictoor3
export SUBGRAPH_VERSION=predictoor3
export PDR_TRUEVAL_VERSION=${PDR_TRUEVAL_VERSION:-latest}
export PDR_PREDICTOOR_VERSION=${PDR_PREDICTOOR_VERSION:-latest}
export PDR_TRADER_VERSION=${PDR_TRADER_VERSION:-latest}
export PDR_PUBLISHER_VERSION=${PDR_PUBLISHER_VERSION:-latest}
export PDR_DFBUYER_VERSION=${PDR_DFBUYER_VERSION:-latest}
# replicate true blockchain behiavour
export GANACHE_INSTAMINE=strict
export GANACHE_BLOCKTIME=1
;;
--with-pdr-trueval) --with-pdr-trueval)
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/pdr-trueval.yml" COMPOSE_FILES+=" -f ${COMPOSE_DIR}/pdr-trueval.yml"
printf $COLOR_Y'Starting with pdr-trueval...\n\n'$COLOR_RESET printf $COLOR_Y'Starting with pdr-trueval...\n\n'$COLOR_RESET