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@b375e434d66ac4e8d3a7d8e2a704c9e7c4d144d8

Entrypoint

Return Type
Build
Example
dagger -m github.com/antonkad/build-image@b375e434d66ac4e8d3a7d8e2a704c9e7c4d144d8 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 🔗

test() 🔗

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

npmInstall() 🔗

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

publish() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
idString -No description provided
repositoryString !-No description provided
refString -No description provided
pathString -No description provided
projectIdString -No description provided
frameworkString !-No description provided
packageManagerString -No description provided
exposedPortInteger -No description provided
Example
dagger -m github.com/antonkad/build-image@b375e434d66ac4e8d3a7d8e2a704c9e7c4d144d8 call \
 publish --repository string --framework string
func (m *myModule) example(ctx context.Context, repository string, framework string) string  {
	return dag.
			Build().
			Publish(ctxrepository, framework)
}
@function
async def example(repository: str, framework: str) -> str:
	return await (
		dag.build()
		.publish(repository, framework)
	)
@func()
async example(repository: string, framework: string): Promise<string> {
	return dag
		.build()
		.publish(repository, framework)
}

buildDocker() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
idString -No description provided
repositoryString !-No description provided
refString -No description provided
pathString -No description provided
projectIdString -No description provided
frameworkString !-No description provided
packageManagerString -No description provided
exposedPortInteger -No description provided
Example
dagger -m github.com/antonkad/build-image@b375e434d66ac4e8d3a7d8e2a704c9e7c4d144d8 call \
 build-docker --repository string --framework string
func (m *myModule) example(repository string, framework string) *Container  {
	return dag.
			Build().
			BuildDocker(repository, framework)
}
@function
def example(repository: str, framework: str) -> dagger.Container:
	return (
		dag.build()
		.build_docker(repository, framework)
	)
@func()
example(repository: string, framework: string): Container {
	return dag
		.build()
		.buildDocker(repository, framework)
}

npmBuild() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
idString -No description provided
repositoryString !-No description provided
refString -No description provided
pathString -No description provided
projectIdString -No description provided
packageManagerString -No description provided
Example
dagger -m github.com/antonkad/build-image@b375e434d66ac4e8d3a7d8e2a704c9e7c4d144d8 call \
 npm-build --repository string
func (m *myModule) example(repository string) *Container  {
	return dag.
			Build().
			NpmBuild(repository)
}
@function
def example(repository: str) -> dagger.Container:
	return (
		dag.build()
		.npm_build(repository)
	)
@func()
example(repository: string): Container {
	return dag
		.build()
		.npmBuild(repository)
}

buildNginx() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
idString -No description provided
repositoryString !-No description provided
refString -No description provided
pathString -No description provided
projectIdString -No description provided
frameworkString !-No description provided
packageManagerString -No description provided
exposedPortInteger -No description provided
Example
dagger -m github.com/antonkad/build-image@b375e434d66ac4e8d3a7d8e2a704c9e7c4d144d8 call \
 build-nginx --repository string --framework string
func (m *myModule) example(repository string, framework string) *Container  {
	return dag.
			Build().
			BuildNginx(repository, framework)
}
@function
def example(repository: str, framework: str) -> dagger.Container:
	return (
		dag.build()
		.build_nginx(repository, framework)
	)
@func()
example(repository: string, framework: string): Container {
	return dag
		.build()
		.buildNginx(repository, framework)
}

buildNext() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
idString -No description provided
repositoryString !-No description provided
refString -No description provided
pathString -No description provided
projectIdString -No description provided
frameworkString !-No description provided
packageManagerString -No description provided
exposedPortInteger -No description provided
Example
dagger -m github.com/antonkad/build-image@b375e434d66ac4e8d3a7d8e2a704c9e7c4d144d8 call \
 build-next --repository string --framework string
func (m *myModule) example(repository string, framework string) *Container  {
	return dag.
			Build().
			BuildNext(repository, framework)
}
@function
def example(repository: str, framework: str) -> dagger.Container:
	return (
		dag.build()
		.build_next(repository, framework)
	)
@func()
example(repository: string, framework: string): Container {
	return dag
		.build()
		.buildNext(repository, framework)
}