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