Dagger
Search

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@2e372bf3418ad1fcdadf021a7d039047c6872951

Entrypoint

Return Type
Thunder !
Example
dagger -m github.com/jackowfish/thunder-dagger-module@2e372bf3418ad1fcdadf021a7d039047c6872951 call \
func (m *myModule) example() *Thunder  {
	return dag.
			Thunder()
}
@function
def example() -> dag.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
NameTypeDefault ValueDescription
tokenString !-Thunder API token
Example
dagger -m github.com/jackowfish/thunder-dagger-module@2e372bf3418ad1fcdadf021a7d039047c6872951 call \
 deploy --token string
func (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
NameTypeDefault ValueDescription
tokenString !-Thunder API token
instanceIdString !-Instance ID to destroy
Example
dagger -m github.com/jackowfish/thunder-dagger-module@2e372bf3418ad1fcdadf021a7d039047c6872951 call \
 destroy --token string --instance-id string
func (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)
}