From 6298d66a7d809264f1bcb517da17be8e4bccdd4a Mon Sep 17 00:00:00 2001 From: Yan Ou Date: Mon, 26 Aug 2024 20:44:43 +1000 Subject: [PATCH] change README --- iac/README.md | 1 + iac/scripts/inserter/inserter-service.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/iac/README.md b/iac/README.md index 1edd613..84682cb 100644 --- a/iac/README.md +++ b/iac/README.md @@ -155,6 +155,7 @@ Now that you have set up your Google Cloud project and created a bucket for the Specify the version for the Indexer app with the `VERSION` variable defined in the [script](./scripts/indexer/indexer-service.sh#L4). Specify the version for the Inserter app with the `VERSION` variable defined in the [script](./scripts/inserter/inserter-service.sh#L4). +Specify the project ID for the Inserter app with `PROJECT_ID` variable defined in the [script](./scripts/inserter/inserter-service.sh#L13). Latest application releases can be found here: https://github.com/blockchain-etl/solana-etl/releases diff --git a/iac/scripts/inserter/inserter-service.sh b/iac/scripts/inserter/inserter-service.sh index e5b979d..6aaf654 100644 --- a/iac/scripts/inserter/inserter-service.sh +++ b/iac/scripts/inserter/inserter-service.sh @@ -10,6 +10,7 @@ SERVICE_EXEC_START="${SERVICE_WORKING_DIRECTORY}/main myFirstConsumer" SERVICE_ENVIRONMENT="GOOGLE_APPLICATION_CREDENTIALS=${SERVICE_WORKING_DIRECTORY}/solana-bq.json" BINARY_URL="https://github.com/BCWResearch/solana-etl/releases/download/inserter.${VERSION}/blockchain_etl_inserter" ENV_FILE_PATH="${SERVICE_WORKING_DIRECTORY}/.env" +PROJECT_ID="your_project_id" # Check if the script is being run as root if [ "$EUID" -ne 0 ]; then @@ -38,7 +39,7 @@ chmod +x ${SERVICE_WORKING_DIRECTORY}/main # Create the .env file cat < $ENV_FILE_PATH QUEUE_NAME="solana-etl" -BQ_PROJECT_ID="" +BQ_PROJECT_ID="$PROJECT_ID" BQ_DATASET_ID="crypto_solana_mainnet_us" RABBITMQ_USER="jb" RABBITMQ_PASS="jb"