fix(worker): preserve exec-form entrypoint
This commit is contained in:
@@ -49,7 +49,10 @@ $BaseImageReference = "sha256:$BaseImageSha256"
|
||||
$BuildMethod = "docker-commit-exact-layer-v1"
|
||||
$MaximumLayerBytes = [int64](32MB)
|
||||
$ImageWorkdir = "/opt/nodedc/mission-core"
|
||||
$ImageEntrypoint = '["python3","-m","k1link.observatory.m49_worker_container_main"]'
|
||||
# Windows PowerShell reconstructs native command lines and strips unescaped
|
||||
# JSON quotes. Docker commit must receive the escaped quotes so the change is
|
||||
# parsed as exec-form ENTRYPOINT instead of shell form.
|
||||
$ImageEntrypoint = '[\"python3\",\"-m\",\"k1link.observatory.m49_worker_container_main\"]'
|
||||
$ImageCommand = '[]'
|
||||
$FixedEnvironment = @(
|
||||
"PYTHONPATH=/opt/nodedc/mission-core/src:/opt/nodedc/mission-core/deps",
|
||||
|
||||
Reference in New Issue
Block a user