chore(worker): namespace Mission Core containers
This commit is contained in:
@@ -21,8 +21,8 @@ param(
|
||||
[string]$RuntimeRoot = "D:\NDC_MISSIONCORE\runtime",
|
||||
[string]$ModelRoot = "D:\NDC_MISSIONCORE\runtime\models\yolox_s",
|
||||
[string]$MediaRuntimeRoot = "D:\NDC_MISSIONCORE\runtime\derived\perception-e15-media-pyav180-lz445-v1",
|
||||
[string]$TritonContainer = "mission-core-triton",
|
||||
[string]$PersistentContainer = "mission-core-perception-worker",
|
||||
[string]$TritonContainer = "ndc-mission-core-triton",
|
||||
[string]$PersistentContainer = "ndc-mission-core-perception-worker",
|
||||
[string]$PersistentOutputRoot = "D:\NDC_MISSIONCORE\runtime\derived\.perception-persistent-publish",
|
||||
[ValidateRange(1024, 65535)] [int]$PersistentPort = 18020,
|
||||
[string]$ContainerImage = "nvcr.io/nvidia/tritonserver:26.06-py3@sha256:58df7489c3f2276f9591d500a012dee03e23d35543ce3c390b4c001e6bf90794"
|
||||
@@ -30,6 +30,7 @@ param(
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$ProgressPreference = "SilentlyContinue"
|
||||
. (Join-Path $PSScriptRoot "MissionCoreDockerNames.ps1")
|
||||
|
||||
function Assert-LastExitCode([string]$Operation) {
|
||||
if ($LASTEXITCODE -ne 0) { throw "$Operation failed with exit code $LASTEXITCODE" }
|
||||
@@ -213,6 +214,14 @@ $freeBytesBefore = Assert-FreeSpace "preflight" 512MB
|
||||
|
||||
& docker image inspect $ContainerImage *> $null
|
||||
Assert-LastExitCode "Pinned container image inspection"
|
||||
$TritonContainer = Resolve-NdcDockerContainerName `
|
||||
-RequestedName $TritonContainer `
|
||||
-CanonicalName $script:NdcMissionCoreTritonContainer `
|
||||
-LegacyNames @("mission-core-triton")
|
||||
$PersistentContainer = Resolve-NdcDockerContainerName `
|
||||
-RequestedName $PersistentContainer `
|
||||
-CanonicalName $script:NdcMissionCorePerceptionContainer `
|
||||
-LegacyNames @("mission-core-perception-worker")
|
||||
$tritonState = docker inspect --format "{{.State.Running}}" $TritonContainer
|
||||
Assert-LastExitCode "Triton container inspection"
|
||||
if ($tritonState.Trim().ToLowerInvariant() -ne "true") {
|
||||
@@ -336,6 +345,10 @@ if ($PersistentService) {
|
||||
|
||||
$serveArgs = @(
|
||||
"run", "--detach", "--name", $PersistentContainer,
|
||||
"--label", "com.nodedc.product=mission-core",
|
||||
"--label", "com.nodedc.stack=ndc-mission-core-compute",
|
||||
"--label", "com.nodedc.role=perception-worker",
|
||||
"--label", "com.nodedc.managed-by=mission-core-worker",
|
||||
"--label", "missioncore.role=perception-persistent-worker",
|
||||
"--label", ("missioncore.runner.sha256={0}" -f $runnerSha256),
|
||||
"--label", ("missioncore.live.sha256={0}" -f $liveProfileSha256),
|
||||
|
||||
Reference in New Issue
Block a user