You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For future workflows consisting of exclusively python code:
Rather than needing to define a docker container per-workflow, there could be a single “dummy” docker container that installs a python package that is developed independently (eg pip install portal-containers). This package could expose a CLI that is parameterized by a workflow name (eg anndata-to-ui), and the input/output directory paths. Based on the workflow name, this CLI would call a different data processing function defined in the package.
A python package for data processing developed/tested independently would substantially lower the barrier to developing/improving these workflows.
Docker would still be wrapping this package before it is used in the ingest-pipeline, but there would only need to be one dockerfile and one docker image per version of the python package.
The existing workflows could be incrementally migrated into such a package and of course the standalone dockerfile option could continue to be used in cases of dependency conflicts or non-python processing code.
The text was updated successfully, but these errors were encountered:
Here, portal-containers-cli anndata-to-ui and portal-containers-cli sprm-to-anndata could each correspond to an independent sub-parser (e.g., implemented with argparse). The portal-containers python package itself could be created with Hatch.
Idea
For future workflows consisting of exclusively python code:
Rather than needing to define a docker container per-workflow, there could be a single “dummy” docker container that installs a python package that is developed independently (eg
pip install portal-containers
). This package could expose a CLI that is parameterized by a workflow name (eganndata-to-ui
), and the input/output directory paths. Based on the workflow name, this CLI would call a different data processing function defined in the package.A python package for data processing developed/tested independently would substantially lower the barrier to developing/improving these workflows.
Docker would still be wrapping this package before it is used in the ingest-pipeline, but there would only need to be one dockerfile and one docker image per version of the python package.
The existing workflows could be incrementally migrated into such a package and of course the standalone dockerfile option could continue to be used in cases of dependency conflicts or non-python processing code.
The text was updated successfully, but these errors were encountered: