Skip to content

Commit

Permalink
Add configuration for RMI Azure deployment (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcspragu authored Oct 1, 2024
1 parent b02b07b commit 3ce6a0e
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/parser/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 9 additions & 0 deletions cmd/parser/configs/test.conf
Original file line number Diff line number Diff line change
@@ -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

2 changes: 1 addition & 1 deletion cmd/runner/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 8 additions & 0 deletions cmd/runner/configs/test.conf
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion cmd/server/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 10 additions & 0 deletions cmd/server/configs/test.conf
Original file line number Diff line number Diff line change
@@ -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

7 changes: 7 additions & 0 deletions scripts/jumphost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ce6a0e

Please sign in to comment.