apko
Builds containers from simple lists of packages using the Apko CLI.
Installation
dagger install github.com/vito/daggerverse/apko@v0.1.7Entrypoint
Return Type
Apko !Example
dagger -m github.com/vito/daggerverse/apko@09c1b5b172e58a8fd58ee790d81018cd478590fc call \
func (m *MyModule) Example() *dagger.Apko  {
	return dag.
			Apko()
}@function
def example() -> dagger.Apko:
	return (
		dag.apko()
	)@func()
example(): Apko {
	return dag
		.apko()
}Types
Apko 🔗
An Apko image config and container builder.
withAlpine() 🔗
Adds the Alpine repository and alpine-base package.
Return Type
Apko !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| branch | String ! | "edge" | No description provided | 
Example
dagger -m github.com/vito/daggerverse/apko@09c1b5b172e58a8fd58ee790d81018cd478590fc call \
 with-alpine --branch stringfunc (m *MyModule) Example(branch string) *dagger.Apko  {
	return dag.
			Apko().
			WithAlpine(branch)
}@function
def example(branch: str) -> dagger.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@09c1b5b172e58a8fd58ee790d81018cd478590fc call \
 with-wolfifunc (m *MyModule) Example() *dagger.Apko  {
	return dag.
			Apko().
			WithWolfi()
}@function
def example() -> dagger.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
| Name | Type | Default Value | Description | 
|---|---|---|---|
| packages | [String ! ] ! | - | No description provided | 
Example
dagger -m github.com/vito/daggerverse/apko@09c1b5b172e58a8fd58ee790d81018cd478590fc call \
 with-packages --packages string1 --packages string2func (m *MyModule) Example(packages []string) *dagger.Apko  {
	return dag.
			Apko().
			WithPackages(packages)
}@function
def example(packages: List[str]) -> dagger.Apko:
	return (
		dag.apko()
		.with_packages(packages)
	)@func()
example(packages: string[]): Apko {
	return dag
		.apko()
		.withPackages(packages)
}alpine() 🔗
Alpine returns a Container with the specified packages installed from Alpine repositories.
Return Type
Container !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| branch | String ! | "edge" | No description provided | 
| packages | [String ! ] ! | - | No description provided | 
Example
dagger -m github.com/vito/daggerverse/apko@09c1b5b172e58a8fd58ee790d81018cd478590fc call \
 alpine --branch string --packages string1 --packages string2func (m *MyModule) Example(branch string, packages []string) *dagger.Container  {
	return dag.
			Apko().
			Alpine(branch, packages)
}@function
def example(branch: str, packages: List[str]) -> dagger.Container:
	return (
		dag.apko()
		.alpine(branch, packages)
	)@func()
example(branch: string, packages: string[]): Container {
	return dag
		.apko()
		.alpine(branch, packages)
}wolfi() 🔗
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 | 
Example
dagger -m github.com/vito/daggerverse/apko@09c1b5b172e58a8fd58ee790d81018cd478590fc call \
 wolfi --packages string1 --packages string2func (m *MyModule) Example(packages []string) *dagger.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)
}withArchs() 🔗
Configures the architectures to build.
Return Type
Apko !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| archs | [String ! ] ! | - | No description provided | 
Example
dagger -m github.com/vito/daggerverse/apko@09c1b5b172e58a8fd58ee790d81018cd478590fc call \
 with-archs --archs string1 --archs string2func (m *MyModule) Example(archs []string) *dagger.Apko  {
	return dag.
			Apko().
			WithArchs(archs)
}@function
def example(archs: List[str]) -> dagger.Apko:
	return (
		dag.apko()
		.with_archs(archs)
	)@func()
example(archs: string[]): Apko {
	return dag
		.apko()
		.withArchs(archs)
}asContainer() 🔗
Builds the configured image and returns it as a Container.
Return Type
Container !Example
dagger -m github.com/vito/daggerverse/apko@09c1b5b172e58a8fd58ee790d81018cd478590fc call \
 as-containerfunc (m *MyModule) Example() *dagger.Container  {
	return dag.
			Apko().
			AsContainer()
}@function
def example() -> dagger.Container:
	return (
		dag.apko()
		.as_container()
	)@func()
example(): Container {
	return dag
		.apko()
		.asContainer()
}