From 3ce6a0edcb27dd43784d9792db370c2adce7626f Mon Sep 17 00:00:00 2001 From: Brandon Sprague Date: Mon, 30 Sep 2024 18:27:05 -0700 Subject: [PATCH] Add configuration for RMI Azure deployment (#212) --- cmd/parser/BUILD.bazel | 2 +- cmd/parser/configs/test.conf | 9 +++++++++ cmd/runner/BUILD.bazel | 2 +- cmd/runner/configs/test.conf | 8 ++++++++ cmd/server/BUILD.bazel | 2 +- cmd/server/configs/test.conf | 10 ++++++++++ scripts/jumphost.sh | 7 +++++++ 7 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 cmd/parser/configs/test.conf create mode 100644 cmd/runner/configs/test.conf create mode 100644 cmd/server/configs/test.conf diff --git a/cmd/parser/BUILD.bazel b/cmd/parser/BUILD.bazel index 0939003..16d0f71 100644 --- a/cmd/parser/BUILD.bazel +++ b/cmd/parser/BUILD.bazel @@ -60,7 +60,7 @@ oci_push( name = "push_image", image = ":image", remote_tags = ["latest"], - repository = "rmisa.azurecr.io/pactaparser", + repository = "rmisppactaweupatdev.azurecr.io/pactaparser", ) # Note: This tarball is provided for local testing of the Docker image, see the README.md for details on usage. diff --git a/cmd/parser/configs/test.conf b/cmd/parser/configs/test.conf new file mode 100644 index 0000000..c7c4b34 --- /dev/null +++ b/cmd/parser/configs/test.conf @@ -0,0 +1,9 @@ +env test +min_log_level warn + +azure_event_topic pacta-events-test +azure_topic_location centralus-1 + +azure_storage_account rmipactatest +azure_dest_portfolio_container parsedportfolios + diff --git a/cmd/runner/BUILD.bazel b/cmd/runner/BUILD.bazel index ed50415..3d57e9a 100644 --- a/cmd/runner/BUILD.bazel +++ b/cmd/runner/BUILD.bazel @@ -59,7 +59,7 @@ oci_push( name = "push_image", image = ":image", remote_tags = ["latest"], - repository = "rmisa.azurecr.io/runner", + repository = "rmisppactaweupatdev.azurecr.io/runner", ) # Note: This tarball is provided for local testing of the Docker image, see the README.md for details on usage. diff --git a/cmd/runner/configs/test.conf b/cmd/runner/configs/test.conf new file mode 100644 index 0000000..84eda68 --- /dev/null +++ b/cmd/runner/configs/test.conf @@ -0,0 +1,8 @@ +env test +min_log_level warn + +azure_event_topic pacta-events-test +azure_topic_location centralus-1 + +azure_storage_account rmipactatest +azure_report_container reports diff --git a/cmd/server/BUILD.bazel b/cmd/server/BUILD.bazel index e5775a5..c3cb6cb 100644 --- a/cmd/server/BUILD.bazel +++ b/cmd/server/BUILD.bazel @@ -76,7 +76,7 @@ oci_push( name = "push_image", image = ":image", remote_tags = ["latest"], - repository = "rmisa.azurecr.io/pacta", + repository = "rmisppactaweupatdev.azurecr.io/pacta", ) # Note: This tarball is provided for local testing of the Docker image, see the README.md for details on usage. diff --git a/cmd/server/configs/test.conf b/cmd/server/configs/test.conf new file mode 100644 index 0000000..51a6214 --- /dev/null +++ b/cmd/server/configs/test.conf @@ -0,0 +1,10 @@ +env test +allowed_cors_origin https://pacta.dev.rmi.siliconally.dev +port 80 + +use_azure_runner true + +azure_event_subscription 69b6db12-37e3-4e1f-b48c-aa41dba612a9 +azure_event_resource_group rmi-pacta-test +azure_event_topic pacta-events-test + diff --git a/scripts/jumphost.sh b/scripts/jumphost.sh index dd4a85a..d4e1d2a 100755 --- a/scripts/jumphost.sh +++ b/scripts/jumphost.sh @@ -31,6 +31,13 @@ case "$1" in VNET_NAME="pacta-vn-dev" SUBNET_NAME="bastion-sn-dev" ;; + rmi-test) + LOCATION="West Europe" + RESOURCE_GROUP="RMI-SP-PACTA-WEU-PAT-DEV" + POSTGRES_HOST="pactadb-test.postgres.database.azure.com" + VNET_NAME="pacta-vn-test" + SUBNET_NAME="bastion-sn-test" + ;; *) echo "Unknown environment ${1}" exit 1