Dagger
Search

apko

Builds containers from simple lists of packages using the Apko CLI.

Installation

dagger install github.com/vito/daggerverse/apko@v0.1.4

Entrypoint

Return Type
Apko !
Example
dagger -m github.com/vito/daggerverse/apko@5635bd1c56a8036b17984103cb971b4258bbb88b 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 🔗

withAlpine() 🔗

Adds the Alpine repository and alpine-base package.

Return Type
Apko !
Arguments
NameTypeDefault ValueDescription
branchString !"edge"No description provided
Example
dagger -m github.com/vito/daggerverse/apko@5635bd1c56a8036b17984103cb971b4258bbb88b call \
 with-alpine --branch string
func (m *myModule) example(branch string) *Apko  {
	return dag.
			Apko().
			WithAlpine(branch)
}
@function
def example(branch: str) -> dag.Apko:
	return (
		dag.apko()
		.with_alpine(branch)
	)
@func()
example(branch: string): Apko {
	return dag
		.apko()
		.withAlpine(branch)
}

withWolfi() 🔗

Adds the Wolfi repository, keyring, and wolfi-base package.

Return Type
Apko !
Example
dagger -m github.com/vito/daggerverse/apko@5635bd1c56a8036b17984103cb971b4258bbb88b call \
 with-wolfi
func (m *myModule) example() *Apko  {
	return dag.
			Apko().
			WithWolfi()
}
@function
def example() -> dag.Apko:
	return (
		dag.apko()
		.with_wolfi()
	)
@func()
example(): Apko {
	return dag
		.apko()
		.withWolfi()
}

withPackages() 🔗

Adds the specified packages to the list.

Return Type
Apko !
Arguments
NameTypeDefault ValueDescription
packages[String ! ] !-No description provided
Example
dagger -m github.com/vito/daggerverse/apko@5635bd1c56a8036b17984103cb971b4258bbb88b call \
 with-packages --packages string1 --packages string2
func (m *myModule) example(packages []string) *Apko  {
	return dag.
			Apko().
			WithPackages(packages)
}
@function
def example(packages: List[str]) -> dag.Apko:
	return (
		dag.apko()
		.with_packages(packages)
	)
@func()
example(packages: string[]): Apko {
	return dag
		.apko()
		.withPackages(packages)
}

asContainer() 🔗

Builds the configured image and returns it as a Container.

Return Type
Container !
Example
dagger -m github.com/vito/daggerverse/apko@5635bd1c56a8036b17984103cb971b4258bbb88b call \
 as-container
func (m *myModule) example() *Container  {
	return dag.
			Apko().
			AsContainer()
}
@function
def example() -> dagger.Container:
	return (
		dag.apko()
		.as_container()
	)
@func()
example(): Container {
	return dag
		.apko()
		.asContainer()
}

alpine() 🔗

Alpine returns a Container with the specified packages installed from Alpine repositories.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
packages[String ! ] !-No description provided
branchString !"edge"No description provided
Example
dagger -m github.com/vito/daggerverse/apko@5635bd1c56a8036b17984103cb971b4258bbb88b 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() 🔗

Alpine returns a Container with the specified packages installed from Alpine repositories.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
packages[String ! ] !-No description provided
Example
dagger -m github.com/vito/daggerverse/apko@5635bd1c56a8036b17984103cb971b4258bbb88b 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)
}