Dagger
Search

devbox

This module provides a set of functions to run commands inside devbox shell and to create a development environment with devbox installed.

Installation

dagger install github.com/tsirysndr/daggerverse/devbox@249c3e3d940b1aaf08a4c0ab3a6e6bf02d81ecb6

Entrypoint

Return Type
Devbox
Example
dagger -m github.com/tsirysndr/daggerverse/devbox@249c3e3d940b1aaf08a4c0ab3a6e6bf02d81ecb6 call \
func (m *myModule) example() *Devbox  {
	return dag.
			Devbox()
}
@function
def example() -> dag.Devbox:
	return (
		dag.devbox()
	)
@func()
example(): Devbox {
	return dag
		.devbox()
}

Types

Devbox 🔗

run() 🔗

Run a command

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
commandString !-No description provided
Example
dagger -m github.com/tsirysndr/daggerverse/devbox@249c3e3d940b1aaf08a4c0ab3a6e6bf02d81ecb6 call \
 run --command string
func (m *myModule) example(command string) *Container  {
	return dag.
			Devbox().
			Run(command)
}
@function
def example(command: str) -> dagger.Container:
	return (
		dag.devbox()
		.run(command)
	)
@func()
example(command: string): Container {
	return dag
		.devbox()
		.run(command)
}

dev() 🔗

Return a container with a dev environment

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
Example
dagger -m github.com/tsirysndr/daggerverse/devbox@249c3e3d940b1aaf08a4c0ab3a6e6bf02d81ecb6 call \
 dev
func (m *myModule) example() *Container  {
	return dag.
			Devbox().
			Dev()
}
@function
def example() -> dagger.Container:
	return (
		dag.devbox()
		.dev()
	)
@func()
example(): Container {
	return dag
		.devbox()
		.dev()
}

install() 🔗

Install packages in a Docker Container and return it

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
pkgs[String ! ] !-No description provided
Example
dagger -m github.com/tsirysndr/daggerverse/devbox@249c3e3d940b1aaf08a4c0ab3a6e6bf02d81ecb6 call \
 install --pkgs string1 --pkgs string2
func (m *myModule) example(pkgs []string) *Container  {
	return dag.
			Devbox().
			Install(pkgs)
}
@function
def example(pkgs: List[str]) -> dagger.Container:
	return (
		dag.devbox()
		.install(pkgs)
	)
@func()
example(pkgs: string[]): Container {
	return dag
		.devbox()
		.install(pkgs)
}