apko
Apko builds Alpine or Wolfi containers from simple lists of packages.
Installation
dagger install github.com/vito/daggerverse/apko@v0.1.3
Entrypoint
Return Type
Apko
Example
dagger -m github.com/vito/daggerverse/apko@dd441abffabb98405c6ba74f9fde6a62ecaea81a call \
func (m *myModule) example() *Apko {
return dag.
Apko()
}
@function
def example() -> dag.Apko:
return (
dag.apko()
)
@func()
example(): Apko {
return dag
.apko()
}
Types
Apko 🔗
alpine() 🔗
Alpine returns a Container with the specified packages installed from Alpine repositories.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
packages | [String ! ] ! | - | No description provided |
branch | String ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/apko@dd441abffabb98405c6ba74f9fde6a62ecaea81a call \
alpine --packages string1 --packages string2 --branch string
func (m *myModule) example(packages []string, branch string) *Container {
return dag.
Apko().
Alpine(packages, branch)
}
@function
def example(packages: List[str], branch: str) -> dagger.Container:
return (
dag.apko()
.alpine(packages, branch)
)
@func()
example(packages: string[], branch: string): Container {
return dag
.apko()
.alpine(packages, branch)
}
wolfi() 🔗
Wolfi returns a Container with the specified packages installed from Wolfi OS repositories.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
packages | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/apko@dd441abffabb98405c6ba74f9fde6a62ecaea81a call \
wolfi --packages string1 --packages string2
func (m *myModule) example(packages []string) *Container {
return dag.
Apko().
Wolfi(packages)
}
@function
def example(packages: List[str]) -> dagger.Container:
return (
dag.apko()
.wolfi(packages)
)
@func()
example(packages: string[]): Container {
return dag
.apko()
.wolfi(packages)
}