earthly
Provides a functionallity to run Earth
Installation
dagger install github.com/wingyplus/daggerverse/earthly@f8fe2b8c01af78d0a837f4a3a4a7edb8b8d9be76
Entrypoint
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
func (m *myModule) 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
func (m *myModule) example(ctx context.Context, source *Directory, args []string) {
return dag.
Earthly(source).
Run(ctx, args)
}
withEarthly() 🔗
Setup Earthly with mounting source into workspace.
Return Type
Container !
Example
func (m *myModule) example(source *Directory) *Container {
return dag.
Earthly(source).
WithEarthly()
}
dockerEngine() 🔗
Return Type
Service !
Example
func (m *myModule) example(source *Directory) *Service {
return dag.
Earthly(source).
DockerEngine()
}
buildkitd() 🔗
Start the Earthly Buildkitd as a service.
Return Type
Service !
Example
func (m *myModule) example(source *Directory) *Service {
return dag.
Earthly(source).
Buildkitd()
}