earthly
Allows the Earthly to run inside Dagger.
Installation
dagger install github.com/wingyplus/daggerverse/earthly@acef5eef5a123fc381155be900a89750fbc4c30f
Entrypoint
Return Type
Earthly !
Arguments
Name | Type | 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_PATH
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
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 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@acef5eef5a123fc381155be900a89750fbc4c30f 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@acef5eef5a123fc381155be900a89750fbc4c30f 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@acef5eef5a123fc381155be900a89750fbc4c30f 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()
}