Skip to content

Commit 3eae6ff

Browse files
committed
Only start emulator for dev and review deployments
1 parent 85fff93 commit 3eae6ff

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

scripts/bash/deploy_arc_ring.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ SAMPLE_IMAGES_PATH=${BASE_PATH}/current/sample_images"
106106
--arg pyver "$PYTHON_VERSION" \
107107
--arg envb64 "$ENV_CONTENT_B64" \
108108
--arg token "$GITHUB_TOKEN" \
109+
--arg env "$ENVIRONMENT" \
109110
'{
110111
location: $loc,
111112
properties: {
@@ -114,7 +115,8 @@ SAMPLE_IMAGES_PATH=${BASE_PATH}/current/sample_images"
114115
{ name: "ReleaseTag", value: $tag },
115116
{ name: "PythonVersion", value: $pyver },
116117
{ name: "EnvContentB64", value: $envb64 },
117-
{ name: "GitHubToken", value: $token }
118+
{ name: "GitHubToken", value: $token },
119+
{ name: "Environment", value: $env }
118120
],
119121
runAsSystem: true,
120122
timeoutInSeconds: 1800

scripts/powershell/deploy.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ param(
4343
[string]$GitHubToken,
4444

4545
[Parameter()]
46-
[string]$EnvContentB64 = ""
46+
[string]$EnvContentB64 = "",
47+
48+
[Parameter()]
49+
[string]$Environment = "prod"
4750
)
4851

4952
Set-StrictMode -Version Latest
@@ -335,9 +338,11 @@ $services = @(
335338
@{ Name = "Gateway-Relay"; Script = "relay_listener.py" },
336339
@{ Name = "Gateway-PACS"; Script = "pacs_main.py" },
337340
@{ Name = "Gateway-MWL"; Script = "mwl_main.py" },
338-
@{ Name = "Gateway-Upload"; Script = "upload_main.py" },
339-
@{ Name = "Gateway-Emulator"; Script = "modality_emulator.py" }
341+
@{ Name = "Gateway-Upload"; Script = "upload_main.py" }
340342
)
343+
if (($Environment -ne "prod") -and ($Environment -ne "preprod")) {
344+
$services += @{ Name = "Gateway-Emulator"; Script = "modality_emulator.py" }
345+
}
341346

342347
# -- Extraction ---------------------------------------------------------------
343348

0 commit comments

Comments
 (0)