Dagger
Search

earthly

Allows the Earthly to run inside Dagger.

Installation

dagger install github.com/wingyplus/daggerverse/earthly@32ee1a61d93b337a0082e09243f7ea512049e9bc

Entrypoint

Return Type
Earthly !
Arguments
NameTypeDescription
sourceDirectory !Source directory.
dockerConfigFile The Docker configuration. It's uses for authenticate with the registry auth
Example
func (m *myModule) example(source *Directory) *Earthly  {
	return dag.
			Earthly(source)
}
@function
def example(source: dagger.Directory, ) -> dag.Earthly:
	return (
		dag.earthly(source)
	)
@func()
example(source: Directory, ): Earthly {
	return dag
		.earthly(source)
}

Types

Earthly 🔗

Earthly module for dagger.

run() 🔗

Run earthly.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
args[String ! ] !-No description provided
Example
dagger -m github.com/wingyplus/daggerverse/earthly@32ee1a61d93b337a0082e09243f7ea512049e9bc call \
 --source DIR_PATH run --args string1 --args string2
func (m *myModule) example(ctx context.Context, source *Directory, args []string)   {
	return dag.
			Earthly(source).
			Run(ctx, args)
}
@function
async def example(source: dagger.Directory, args: List[str]) -> None:
	return await (
		dag.earthly(source)
		.run(args)
	)
@func()
async example(source: Directory, args: string[]): Promise<void> {
	return dag
		.earthly(source)
		.run(args)
}

withEarthly() 🔗

Setup Earthly with mounting source into workspace.

Return Type
Container !
Example
dagger -m github.com/wingyplus/daggerverse/earthly@32ee1a61d93b337a0082e09243f7ea512049e9bc call \
 --source DIR_PATH with-earthly
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			Earthly(source).
			WithEarthly()
}
@function
def example(source: dagger.Directory, ) -> dagger.Container:
	return (
		dag.earthly(source)
		.with_earthly()
	)
@func()
example(source: Directory, ): Container {
	return dag
		.earthly(source)
		.withEarthly()
}

dockerEngine() 🔗

Return Type
Service !
Example
dagger -m github.com/wingyplus/daggerverse/earthly@32ee1a61d93b337a0082e09243f7ea512049e9bc call \
 --source DIR_PATH docker-engine
func (m *myModule) example(source *Directory) *Service  {
	return dag.
			Earthly(source).
			DockerEngine()
}
@function
def example(source: dagger.Directory, ) -> dagger.Service:
	return (
		dag.earthly(source)
		.docker_engine()
	)
@func()
example(source: Directory, ): Service {
	return dag
		.earthly(source)
		.dockerEngine()
}

buildkitd() 🔗

Start the Earthly Buildkitd as a service.

Return Type
Service !
Example
dagger -m github.com/wingyplus/daggerverse/earthly@32ee1a61d93b337a0082e09243f7ea512049e9bc call \
 --source DIR_PATH buildkitd
func (m *myModule) example(source *Directory) *Service  {
	return dag.
			Earthly(source).
			Buildkitd()
}
@function
def example(source: dagger.Directory, ) -> dagger.Service:
	return (
		dag.earthly(source)
		.buildkitd()
	)
@func()
example(source: Directory, ): Service {
	return dag
		.earthly(source)
		.buildkitd()
}