Skip to content

About

This is an example workflow.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

example-workflow

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.

Run

python process_data.py "pear apple Banana" sorted.txt

The output file contains apple Banana pear on one line. The original spelling of each word is kept.

Run with Docker

docker build -t word-sorter .

docker run --rm -v "$PWD:/output" word-sorter word-sorter "pear apple Banana" /output/sorted.txt

The 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 GeoLabs

Run with CWL

cwltool 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.

About

This is an example workflow.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages