earthly
Allows the Earthly to run inside Dagger.
Installation
dagger install github.com/wingyplus/daggerverse/earthly@acef5eef5a123fc381155be900a89750fbc4c30fEntrypoint
Return Type
Earthly !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | Source directory. |
| dockerConfig | File | - | The Docker configuration. It's uses for authenticate with the registry auth |
Example
dagger -m github.com/wingyplus/daggerverse/earthly@acef5eef5a123fc381155be900a89750fbc4c30f call \
--source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Earthly {
return dag.
Earthly(source)
}@function
def example(source: dagger.Directory, ) -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/wingyplus/daggerverse/earthly@acef5eef5a123fc381155be900a89750fbc4c30f call \
--source DIR_PATH run --args string1 --args string2func (m *MyModule) Example(ctx context.Context, source *dagger.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@acef5eef5a123fc381155be900a89750fbc4c30f call \
--source DIR_PATH with-earthlyfunc (m *MyModule) Example(source *dagger.Directory) *dagger.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@acef5eef5a123fc381155be900a89750fbc4c30f call \
--source DIR_PATH docker-enginefunc (m *MyModule) Example(source *dagger.Directory) *dagger.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@acef5eef5a123fc381155be900a89750fbc4c30f call \
--source DIR_PATH buildkitdfunc (m *MyModule) Example(source *dagger.Directory) *dagger.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()
}