diff --git a/workflows/raster/standardising.yaml b/workflows/raster/standardising.yaml index 8f95dfe3e..bcc993237 100644 --- a/workflows/raster/standardising.yaml +++ b/workflows/raster/standardising.yaml @@ -436,7 +436,7 @@ spec: - name: collection-id-setup script: image: '019359803926.dkr.ecr.ap-southeast-2.amazonaws.com/topo-imagery:{{=sprig.trim(workflow.parameters.version_topo_imagery)}}' - command: [python] + args: [python] source: | import ulid collection_id = "{{workflow.parameters.collection_id}}" @@ -472,10 +472,9 @@ spec: volumeMounts: - name: ephemeral mountPath: '/tmp' - command: + args: - python - '/app/scripts/standardise_validate.py' - args: - '--from-file' - '/tmp/input/{{inputs.parameters.group_id}}.json' - '--target' @@ -519,10 +518,9 @@ spec: requests: memory: 7.8Gi cpu: 15000m - command: + args: - python - '/app/scripts/collection_from_items.py' - args: - '--uri' - '{{inputs.parameters.location}}flat/' - '--collection-id' diff --git a/workflows/raster/tests.yaml b/workflows/raster/tests.yaml index 5408d0b29..9167e0fa6 100644 --- a/workflows/raster/tests.yaml +++ b/workflows/raster/tests.yaml @@ -24,11 +24,6 @@ spec: - name: test-script script: image: 019359803926.dkr.ecr.ap-southeast-2.amazonaws.com/topo-imagery:{{workflow.parameters.version_topo_imagery}} - command: [python] + args: [python] source: | - import sys - - # Because Argo Workflow executes the script under "/argo/staging/script" - sys.path.append("/app/scripts/") - # Put your code below diff --git a/workflows/test/env.yaml b/workflows/test/env.yaml index c4709d1d6..9ac57aa62 100644 --- a/workflows/test/env.yaml +++ b/workflows/test/env.yaml @@ -12,4 +12,6 @@ spec: - name: env container: image: 019359803926.dkr.ecr.ap-southeast-2.amazonaws.com/topo-imagery:latest + # Use `command` if you want to print the environment variables outside the virtualenv, or `args` if you want + # to print the variables inside the virtualenv. command: [env] diff --git a/workflows/util/create-thumbnails.yaml b/workflows/util/create-thumbnails.yaml index 09ab9c24e..3f8cc5166 100644 --- a/workflows/util/create-thumbnails.yaml +++ b/workflows/util/create-thumbnails.yaml @@ -92,10 +92,9 @@ spec: volumeMounts: - name: ephemeral mountPath: '/tmp' - command: + args: - python - '/app/scripts/thumbnails.py' - args: - '--from-file' - '/tmp/file_list.json' - '--target'