Dagger
Search

alpine

A Dagger Module to integrate with Alpine Linux

Installation

dagger install github.com/shykes/dagger/modules/alpine@a5ea6e6a94d2afc84b695c6ca75fc8c6f3ae748f

Entrypoint

Return Type
Alpine !
Arguments
NameTypeDescription
archString Hardware architecture to build for
branchString Alpine branch to download packages from
packages[String ! ] APK packages to install
Example
dagger -m github.com/shykes/dagger/modules/alpine@a5ea6e6a94d2afc84b695c6ca75fc8c6f3ae748f 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/shykes/dagger/modules/alpine@a5ea6e6a94d2afc84b695c6ca75fc8c6f3ae748f 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/shykes/dagger/modules/alpine@a5ea6e6a94d2afc84b695c6ca75fc8c6f3ae748f 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/shykes/dagger/modules/alpine@a5ea6e6a94d2afc84b695c6ca75fc8c6f3ae748f 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/shykes/dagger/modules/alpine@a5ea6e6a94d2afc84b695c6ca75fc8c6f3ae748f 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/shykes/dagger/modules/alpine@a5ea6e6a94d2afc84b695c6ca75fc8c6f3ae748f 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/shykes/dagger/modules/alpine@a5ea6e6a94d2afc84b695c6ca75fc8c6f3ae748f 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()
}