#Calling dagger functions / modules from sdk

1 messages · Page 1 of 1 (latest)

violet wyvern
#

Hi all, I want to say dagger is an awesome tool.
I am trying to understand how to migrate to dagger 0.10 and make use of functions and modules. We basically have a python cli that parses a custom defined config file and then launches different dagger pipelines conditionally, based on settings and env vars (if it is CI or local). I am struggling to understand how we could achieve something similar and integrate dagger modules and functions in our CLI. Any thoughts?

flint verge
opal trail
#

@violet wyvern you have 2 options:

  • Option 1 is what @flint verge explained: modify your tool to call external functions, written either by you or the community. This is not yet supported.

  • Option 2: wrap your tool itself as a Dagger Function, and call it with dagger call. That works today.

Of course these are not mutually exclusive 🙂 You can start with option 2, and add option 1 later when it becomes possible .