Dagger
Search

nixpacks

This module provides a set of functions to build an OCI image from your project using nixpacks.

Installation

dagger install github.com/tsirysndr/daggerverse/nixpacks@9cae50a80b92215a2146444ef5afe8dc1435e1ba

Entrypoint

Return Type
Nixpacks
Example
dagger -m github.com/tsirysndr/daggerverse/nixpacks@9cae50a80b92215a2146444ef5afe8dc1435e1ba call \
func (m *myModule) example() *Nixpacks  {
	return dag.
			Nixpacks()
}
@function
def example() -> dag.Nixpacks:
	return (
		dag.nixpacks()
	)
@func()
example(): Nixpacks {
	return dag
		.nixpacks()
}

Types

Nixpacks 🔗

build() 🔗

Build an OCI image from your project using nixpacks

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
nameString !-No description provided
pathString "."No description provided
Example
dagger -m github.com/tsirysndr/daggerverse/nixpacks@9cae50a80b92215a2146444ef5afe8dc1435e1ba call \
 build --src DIR_PATH --name string
func (m *myModule) example(ctx context.Context, src *Directory, name string) string  {
	return dag.
			Nixpacks().
			Build(ctx, src, name)
}
@function
async def example(src: dagger.Directory, name: str) -> str:
	return await (
		dag.nixpacks()
		.build(src, name)
	)
@func()
async example(src: Directory, name: string): Promise<string> {
	return dag
		.nixpacks()
		.build(src, name)
}

plan() 🔗

Generate a plan for building an OCI image from your project using nixpacks

Return Type
File !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
pathString "."No description provided
formatString "json"No description provided
Example
dagger -m github.com/tsirysndr/daggerverse/nixpacks@9cae50a80b92215a2146444ef5afe8dc1435e1ba call \
 plan --src DIR_PATH
func (m *myModule) example(src *Directory) *File  {
	return dag.
			Nixpacks().
			Plan(src)
}
@function
def example(src: dagger.Directory) -> dagger.File:
	return (
		dag.nixpacks()
		.plan(src)
	)
@func()
example(src: Directory): File {
	return dag
		.nixpacks()
		.plan(src)
}

dev() 🔗

Return a Container with nixpacks installed

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