Dagger
Search

build

This module has been generated via dagger init and serves as a reference to
basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.

The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.

Installation

dagger install github.com/antonkad/build-image@216d07a042f8eda3ff19ddb123ea4277639b8098

Entrypoint

Return Type
Build
Example
dagger -m github.com/antonkad/build-image@216d07a042f8eda3ff19ddb123ea4277639b8098 call \
func (m *myModule) example() *Build  {
	return dag.
			Build()
}
@function
def example() -> dag.Build:
	return (
		dag.build()
	)
@func()
example(): Build {
	return dag
		.build()
}

Types

Build 🔗

buildEnv() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/antonkad/build-image@216d07a042f8eda3ff19ddb123ea4277639b8098 call \
 build-env --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			Build().
			BuildEnv(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.build()
		.build_env(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.build()
		.buildEnv(source)
}

buildNginx() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/antonkad/build-image@216d07a042f8eda3ff19ddb123ea4277639b8098 call \
 build-nginx --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			Build().
			BuildNginx(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.build()
		.build_nginx(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.build()
		.buildNginx(source)
}

build() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/antonkad/build-image@216d07a042f8eda3ff19ddb123ea4277639b8098 call \
 build --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			Build().
			Build(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.build()
		.build(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.build()
		.build(source)
}

startNext() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/antonkad/build-image@216d07a042f8eda3ff19ddb123ea4277639b8098 call \
 start-next --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string  {
	return dag.
			Build().
			StartNext(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.build()
		.start_next(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.build()
		.startNext(source)
}