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@d17c6c1924e5ad6ecfcdeb45920147488570f8fdEntrypoint
Return Type
Thunder ! Example
dagger -m github.com/jackowfish/thunder-dagger-module@d17c6c1924e5ad6ecfcdeb45920147488570f8fd 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
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| token | String ! | - | Thunder API token |
Example
dagger -m github.com/jackowfish/thunder-dagger-module@d17c6c1924e5ad6ecfcdeb45920147488570f8fd 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 and clean up associated SSH keys and config
Return Type
String !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@d17c6c1924e5ad6ecfcdeb45920147488570f8fd call \
destroy --token string --instance-id stringfunc (m *MyModule) Example(ctx context.Context, token string, instanceId string) string {
return dag.
Thunder().
Destroy(ctx, token, instanceId)
}@function
async def example(token: str, instance_id: str) -> str:
return await (
dag.thunder()
.destroy(token, instance_id)
)@func()
async example(token: string, instanceId: string): Promise<string> {
return dag
.thunder()
.destroy(token, instanceId)
}status() 🔗
List all active Thunder compute instances
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| token | String ! | - | Thunder API token |
Example
dagger -m github.com/jackowfish/thunder-dagger-module@d17c6c1924e5ad6ecfcdeb45920147488570f8fd call \
status --token stringfunc (m *MyModule) Example(ctx context.Context, token string) string {
return dag.
Thunder().
Status(ctx, token)
}@function
async def example(token: str) -> str:
return await (
dag.thunder()
.status(token)
)@func()
async example(token: string): Promise<string> {
return dag
.thunder()
.status(token)
}