alpine
A Dagger Module to integrate with Alpine Linux
Installation
dagger install github.com/dagger/dagger/modules/alpine@v0.13.3
Entrypoint
Return Type
Alpine !
Arguments
Name | Type | Description |
---|---|---|
arch | String | Hardware architecture to build for |
branch | String | Alpine branch to download packages from |
packages | [String ! ] | APK packages to install |
Example
dagger -m github.com/dagger/dagger/modules/alpine@d3a02170c96d4d81343dbbcd5c555ba6b8d38b45 call \
func (m *myModule) example() *Alpine {
return dag.
Alpine()
}
@function
def example() -> dag.Alpine:
return (
dag.alpine()
)
@func()
example(): Alpine {
return dag
.alpine()
}
Types
Alpine 🔗
An Alpine Linux configuration
arch() 🔗
The hardware architecture to build for
Return Type
String !
Example
dagger -m github.com/dagger/dagger/modules/alpine@d3a02170c96d4d81343dbbcd5c555ba6b8d38b45 call \
arch
func (m *myModule) example(ctx context.Context) string {
return dag.
Alpine().
Arch(ctx)
}
@function
async def example() -> str:
return await (
dag.alpine()
.arch()
)
@func()
async example(): Promise<string> {
return dag
.alpine()
.arch()
}
branch() 🔗
The Alpine branch to download packages from
Return Type
String !
Example
dagger -m github.com/dagger/dagger/modules/alpine@d3a02170c96d4d81343dbbcd5c555ba6b8d38b45 call \
branch
func (m *myModule) example(ctx context.Context) string {
return dag.
Alpine().
Branch(ctx)
}
@function
async def example() -> str:
return await (
dag.alpine()
.branch()
)
@func()
async example(): Promise<string> {
return dag
.alpine()
.branch()
}
packages() 🔗
The APK packages to install
Return Type
[String ! ] !
Example
dagger -m github.com/dagger/dagger/modules/alpine@d3a02170c96d4d81343dbbcd5c555ba6b8d38b45 call \
packages
func (m *myModule) example(ctx context.Context) []string {
return dag.
Alpine().
Packages(ctx)
}
@function
async def example() -> List[str]:
return await (
dag.alpine()
.packages()
)
@func()
async example(): Promise<string[]> {
return dag
.alpine()
.packages()
}
container() 🔗
Build an Alpine Linux container
Return Type
Container !
Example
dagger -m github.com/dagger/dagger/modules/alpine@d3a02170c96d4d81343dbbcd5c555ba6b8d38b45 call \
container
func (m *myModule) example() *Container {
return dag.
Alpine().
Container()
}
@function
def example() -> dagger.Container:
return (
dag.alpine()
.container()
)
@func()
example(): Container {
return dag
.alpine()
.container()
}
archive() 🔗
Build an Alpine Linux OCI archive
Return Type
File !
Example
dagger -m github.com/dagger/dagger/modules/alpine@d3a02170c96d4d81343dbbcd5c555ba6b8d38b45 call \
archive
func (m *myModule) example() *File {
return dag.
Alpine().
Archive()
}
@function
def example() -> dagger.File:
return (
dag.alpine()
.archive()
)
@func()
example(): File {
return dag
.alpine()
.archive()
}
apkoConfig() 🔗
Generate the APKO build configuration
Return Type
File !
Example
dagger -m github.com/dagger/dagger/modules/alpine@d3a02170c96d4d81343dbbcd5c555ba6b8d38b45 call \
apko-config
func (m *myModule) example() *File {
return dag.
Alpine().
ApkoConfig()
}
@function
def example() -> dagger.File:
return (
dag.alpine()
.apko_config()
)
@func()
example(): File {
return dag
.alpine()
.apkoConfig()
}