chore(worker): namespace Mission Core containers

This commit is contained in:
DCCONSTRUCTIONS
2026-07-28 00:53:34 +03:00
parent 667db00b52
commit 9fc002d86f
7 changed files with 74 additions and 7 deletions
@@ -3,7 +3,7 @@ param(
[switch]$TokenStdin,
[ValidatePattern("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")]
[string]$RequestId = ("physical-k1-shadow-{0}" -f [Guid]::NewGuid().ToString("N")),
[string]$PersistentContainer = "mission-core-perception-worker",
[string]$PersistentContainer = "ndc-mission-core-perception-worker",
[string]$PersistentOutputRoot = "D:\NDC_MISSIONCORE\runtime\derived\.perception-persistent-publish",
[ValidateRange(1024, 65535)] [int]$PersistentPort = 18020,
[ValidateRange(5, 3600)] [int]$MaximumDurationSeconds = 20,
@@ -12,6 +12,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" }
@@ -35,6 +36,10 @@ if (-not $token -or $token.Length -lt 40 -or $token.Length -gt 512) {
}
$outputRoot = Resolve-DDirectory $PersistentOutputRoot "Persistent output root"
$PersistentContainer = Resolve-NdcDockerContainerName `
-RequestedName $PersistentContainer `
-CanonicalName $script:NdcMissionCorePerceptionContainer `
-LegacyNames @("mission-core-perception-worker")
$freeBefore = Get-DFreeBytes
if ($freeBefore -lt ([int64]$FreeGiBFloor * 1GB + 512MB)) {
throw "D: lacks the guarded persistent-run reserve"