dagrr
Manages Dagger on a bunch of platforms
Installation
dagger install github.com/gerhard/daggerverse/dagrr@3fb884eb84c0f0c8be8a26ab9f4700c0f9f85014
Entrypoint
Return Type
Dagrr !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String | "0.12.5" | Dagger version to use: `--version=0.11.9` https://github.com/dagger/dagger/blob/main/CHANGELOG.md |
app | String | - | App name, defaults to version & date: `--app=dagger-v0119-2024-07-03` |
Example
dagger -m github.com/gerhard/daggerverse/dagrr@3fb884eb84c0f0c8be8a26ab9f4700c0f9f85014 call \
func (m *myModule) example() *Dagrr {
return dag.
Dagrr()
}
@function
def example() -> dag.Dagrr:
return (
dag.dagrr()
)
@func()
example(): Dagrr {
return dag
.dagrr()
}
Types
Dagrr 🔗
onFlyio() 🔗
Manages Dagger on Fly.io
Return Type
Fly !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
token | Secret ! | - | fly auth token: `--token=env:FLY_API_TOKEN` |
org | String | "personal" | Fly.io org name |
Example
dagger -m github.com/gerhard/daggerverse/dagrr@3fb884eb84c0f0c8be8a26ab9f4700c0f9f85014 call \
on-flyio --token env:MYSECRET
func (m *myModule) example(token *Secret) *DagrrFly {
return dag.
Dagrr().
OnFlyio(token)
}
@function
def example(token: dagger.Secret) -> dag.DagrrFly:
return (
dag.dagrr()
.on_flyio(token)
)
@func()
example(token: Secret): DagrrFly {
return dag
.dagrr()
.onFlyio(token)
}
Fly 🔗
manifest() 🔗
App manifest: dagger call on-flyio –token=env:FLY_API_TOKEN manifest file –path=fly.toml export –path=fly.toml
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
disk | String | "100GB" | Disk size in GB |
size | String | "performance-2x" | VM size, see https://fly.io/docs/about/pricing/#compute |
Example
dagger -m github.com/gerhard/daggerverse/dagrr@3fb884eb84c0f0c8be8a26ab9f4700c0f9f85014 call \
on-flyio --token env:MYSECRET \
manifest
func (m *myModule) example(token *Secret) *Directory {
return dag.
Dagrr().
OnFlyio(token).
Manifest()
}
@function
def example(token: dagger.Secret) -> dagger.Directory:
return (
dag.dagrr()
.on_flyio(token)
.manifest()
)
@func()
example(token: Secret): Directory {
return dag
.dagrr()
.onFlyio(token)
.manifest()
}
deploy() 🔗
Deploy with default manifest: dagger call on-flyio –token=env:FLY_API_TOKEN deploy
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory | - | No description provided |
Example
dagger -m github.com/gerhard/daggerverse/dagrr@3fb884eb84c0f0c8be8a26ab9f4700c0f9f85014 call \
on-flyio --token env:MYSECRET \
deploy
func (m *myModule) example(ctx context.Context, token *Secret) string {
return dag.
Dagrr().
OnFlyio(token).
Deploy(ctx)
}
@function
async def example(token: dagger.Secret) -> str:
return await (
dag.dagrr()
.on_flyio(token)
.deploy()
)
@func()
async example(token: Secret): Promise<string> {
return dag
.dagrr()
.onFlyio(token)
.deploy()
}