thunder
This module provides integration with Thunder Compute for running workloads on GPU-enabled Kubernetes nodes.Installation
dagger install github.com/jackowfish/thunder-dagger-module@f7b4bf5efcc0468a048b395905aa05877c8c828dEntrypoint
Return Type
Thunder ! Example
dagger -m github.com/jackowfish/thunder-dagger-module@f7b4bf5efcc0468a048b395905aa05877c8c828d call \
func (m *MyModule) Example() *dagger.Thunder {
return dag.
Thunder()
}@function
def example() -> dagger.Thunder:
return (
dag.thunder()
)@func()
example(): Thunder {
return dag
.thunder()
}Types
Thunder 🔗
Thunder provides integration with Thunder Compute for GPU workloads
deploy() 🔗
Deploy a new Thunder compute instance with a Dagger runner
Returns the command to set the DAGGER_RUNNER_HOST environment variable
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| token | String ! | - | Thunder API token |
Example
dagger -m github.com/jackowfish/thunder-dagger-module@f7b4bf5efcc0468a048b395905aa05877c8c828d call \
deploy --token stringfunc (m *MyModule) Example(ctx context.Context, token string) string {
return dag.
Thunder().
Deploy(ctx, token)
}@function
async def example(token: str) -> str:
return await (
dag.thunder()
.deploy(token)
)@func()
async example(token: string): Promise<string> {
return dag
.thunder()
.deploy(token)
}destroy() 🔗
Destroy a Thunder compute instance
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| token | String ! | - | Thunder API token |
| instanceId | String ! | - | Instance ID to destroy |
Example
dagger -m github.com/jackowfish/thunder-dagger-module@f7b4bf5efcc0468a048b395905aa05877c8c828d call \
destroy --token string --instance-id stringfunc (m *MyModule) Example(ctx context.Context, token string, instanceId string) {
return dag.
Thunder().
Destroy(ctx, token, instanceId)
}@function
async def example(token: str, instance_id: str) -> None:
return await (
dag.thunder()
.destroy(token, instance_id)
)@func()
async example(token: string, instanceId: string): Promise<void> {
return dag
.thunder()
.destroy(token, instanceId)
}