flox
This module provides a set of functions to run flox commands and to create a development environment with flox installed.
Installation
dagger install github.com/tsirysndr/daggerverse/flox@e3f6cf1898037fbd6fda06b075ab4504f36be085
Entrypoint
Return Type
Flox
Example
dagger -m github.com/tsirysndr/daggerverse/flox@e3f6cf1898037fbd6fda06b075ab4504f36be085 call \
func (m *myModule) example() *Flox {
return dag.
Flox()
}
@function
def example() -> dag.Flox:
return (
dag.flox()
)
@func()
example(): Flox {
return dag
.flox()
}
Types
Flox 🔗
dev() 🔗
Return a container with flox installed
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/flox@e3f6cf1898037fbd6fda06b075ab4504f36be085 call \
dev
func (m *myModule) example() *Container {
return dag.
Flox().
Dev()
}
@function
def example() -> dagger.Container:
return (
dag.flox()
.dev()
)
@func()
example(): Container {
return dag
.flox()
.dev()
}
install() 🔗
Install packages in a Docker Container and return it
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
pkgs | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/flox@e3f6cf1898037fbd6fda06b075ab4504f36be085 call \
install --pkgs string1 --pkgs string2
func (m *myModule) example(pkgs []string) *Container {
return dag.
Flox().
Install(pkgs)
}
@function
def example(pkgs: List[str]) -> dagger.Container:
return (
dag.flox()
.install(pkgs)
)
@func()
example(pkgs: string[]): Container {
return dag
.flox()
.install(pkgs)
}