Dagger
Search

alpine

A Dagger Module to integrate with Alpine Linux

Installation

dagger install github.com/TomChv/dagger/modules/alpine@4cce43b582dd8576899468bf0cceb2abfb04d64b

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/TomChv/dagger/modules/alpine@4cce43b582dd8576899468bf0cceb2abfb04d64b 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/TomChv/dagger/modules/alpine@4cce43b582dd8576899468bf0cceb2abfb04d64b 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/TomChv/dagger/modules/alpine@4cce43b582dd8576899468bf0cceb2abfb04d64b 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/TomChv/dagger/modules/alpine@4cce43b582dd8576899468bf0cceb2abfb04d64b 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/TomChv/dagger/modules/alpine@4cce43b582dd8576899468bf0cceb2abfb04d64b 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/TomChv/dagger/modules/alpine@4cce43b582dd8576899468bf0cceb2abfb04d64b 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/TomChv/dagger/modules/alpine@4cce43b582dd8576899468bf0cceb2abfb04d64b 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()
}