A small Python example that splits a string into words, sorts them alphabetically without regard to case, and writes the result to a file. It uses only the Python standard library.
python process_data.py "pear apple Banana" sorted.txtThe output file contains apple Banana pear on one line. The original spelling
of each word is kept.
docker build -t word-sorter .
docker run --rm -v "$PWD:/output" word-sorter word-sorter "pear apple Banana" /output/sorted.txtThe sorted result is written to sorted.txt in the current directory. The
image has no entry point: the command word-sorter is given explicitly, as
the CWL baseCommand does.
Published images: ghcr.io/geolabs/example-workflow (tags X.Y.Z, edge
for main, sha-<commit>), with SBOM, SLSA provenance and a cosign
signature. Verify an image with:
gh attestation verify oci://ghcr.io/geolabs/example-workflow:<tag> --owner GeoLabscwltool tool.cwl#word_sorter --text "pear apple Banana"
cwltool workflow.cwl#word_sorter_pipeline --text "pear apple Banana"Releases (tags vX.Y.Z) attach tool.X.Y.Z.cwl and workflow.X.Y.Z.cwl
with the image pinned by digest: deploy those on an OGC API - Processes
server.