diff --git a/cleanup.sh b/cleanup.sh index 4f87596..fcf5193 100755 --- a/cleanup.sh +++ b/cleanup.sh @@ -18,6 +18,7 @@ docker container stop docker-registry docker container stop ocean_pdr-trader_1 docker container stop ocean_pdr-predictoor_1 docker container stop ocean_pdr-trueval_1 +docker container stop ocean_pdr-publisher_1 docker container rm ocean_aquarius_1 docker container rm ocean_graph-node_1 docker container rm ocean_subgraph_1 @@ -37,6 +38,7 @@ docker container rm docker-registry docker container rm ocean_pdr-trader_1 docker container rm ocean_pdr-predictoor_1 docker container rm ocean_pdr-trueval_1 +docker container rm ocean_pdr-publisher_1 docker volume rm ocean_graphipfs docker volume rm ocean_graphpgsql docker volume rm ocean_provider1db diff --git a/compose-files/pdr-publisher.yml b/compose-files/pdr-publisher.yml new file mode 100644 index 0000000..4f66c18 --- /dev/null +++ b/compose-files/pdr-publisher.yml @@ -0,0 +1,17 @@ +version: '3' +services: + pdr-publisher: + image: oceanprotocol/pdr-publisher:${PDR_PUBLISHER_VERSION:-latest} + networks: + backend: + ipv4_address: 172.15.0.43 + depends_on: + - ocean-contracts + environment: + RPC_URL: ${NETWORK_RPC_URL} + ADDRESS_FILE: /root/.ocean/ocean-contracts/artifacts/address.json + WAIT_FOR_CONTRACTS: "true" + depends_on: + - ganache + volumes: + - ${OCEAN_ARTIFACTS_FOLDER}:/root/.ocean/ocean-contracts/artifacts diff --git a/start_ocean.sh b/start_ocean.sh index 5902978..c0fff23 100755 --- a/start_ocean.sh +++ b/start_ocean.sh @@ -46,6 +46,7 @@ export WAIT_FOR_C2DIMAGES=${WAIT_FOR_C2DIMAGES:-false} 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 PROJECT_NAME="ocean" @@ -308,6 +309,10 @@ while :; do COMPOSE_FILES+=" -f ${COMPOSE_DIR}/pdr-predictoor.yml" printf $COLOR_Y'Starting with pdr-predictoor...\n\n'$COLOR_RESET ;; + --with-pdr-publisher) + COMPOSE_FILES+=" -f ${COMPOSE_DIR}/pdr-publisher.yml" + printf $COLOR_Y'Starting with pdr-publisher...\n\n'$COLOR_RESET + ;; ################################################# # Cleaning switches #################################################