From be13d4a6488b613a35e2f9c28831e487806c47f1 Mon Sep 17 00:00:00 2001 From: Fabrice Brito Date: Thu, 2 Nov 2023 11:20:31 +0100 Subject: [PATCH] calrissian --- docs/kubernetes/calrissian.md | 28 ++++++++++++++++++++++++++++ scripts/calrissian-cloud-native.sh | 3 +++ 2 files changed, 31 insertions(+) diff --git a/docs/kubernetes/calrissian.md b/docs/kubernetes/calrissian.md index d883d19..301a469 100644 --- a/docs/kubernetes/calrissian.md +++ b/docs/kubernetes/calrissian.md @@ -60,4 +60,32 @@ node-crop-pod-ebgkkvpc 0/1 ContainerCreating 0 8s --8<-- scripts/calrissian-inspect-results.sh --8<-- +``` + +### Expected outcome + +``` +(base) jovyan@coder-mrossi:~/runs$ tree $( cat /calrissian/results.json | jq -r .stac_catalog.path ) +/calrissian/results/tmp3vhr5k8r +├── S2A_10TFK_20210708_0_L2A +│ ├── S2A_10TFK_20210708_0_L2A.json +│ └── otsu.tif +├── S2A_10TFK_20210718_0_L2A +│ ├── S2A_10TFK_20210718_0_L2A.json +│ └── otsu.tif +├── S2A_10TFK_20220504_0_L2A +│ ├── S2A_10TFK_20220504_0_L2A.json +│ └── otsu.tif +├── S2A_10TFK_20220514_0_L2A +│ ├── S2A_10TFK_20220514_0_L2A.json +│ └── otsu.tif +├── S2A_10TFK_20220524_0_L2A +│ ├── S2A_10TFK_20220524_0_L2A.json +│ └── otsu.tif +├── S2B_10TFK_20210713_0_L2A +│ ├── S2B_10TFK_20210713_0_L2A.json +│ └── otsu.tif +└── catalog.json + +6 directories, 13 files ``` \ No newline at end of file diff --git a/scripts/calrissian-cloud-native.sh b/scripts/calrissian-cloud-native.sh index 4bbe7ad..bdc2a9d 100644 --- a/scripts/calrissian-cloud-native.sh +++ b/scripts/calrissian-cloud-native.sh @@ -1,5 +1,7 @@ mkdir -p /calrissian/logs +version="1.0.0" + calrissian \ --stdout /calrissian/results.json \ --stderr /calrissian/app.log \ @@ -9,6 +11,7 @@ calrissian \ --outdir /calrissian/results \ --usage-report /calrissian/usage.json \ --tool-logs-basepath /calrissian/logs \ + --pod-nodeselectors /etc/calrissian/pod-node-selector.yaml \ /workspace/runs/app-water-bodies-cloud-native.${version}.cwl \ --stac_items "https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs/items/S2A_10TFK_20210708_0_L2A" \ --stac_items "https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs/items/S2B_10TFK_20210713_0_L2A" \