Dagger
Search

nodejs

Install Node.js in containers based on Red Hat Universal Base Images.

Installation

dagger install github.com/camptocamp/daggerverse/nodejs@v0.1.0

Entrypoint

Return Type
Nodejs !
Arguments
NameTypeDescription
npmrcSecret npm configuration file (can be used to pass registry credentials)
Example
func (m *myModule) example() *Nodejs  {
	return dag.
			Nodejs()
}
@function
def example() -> dag.Nodejs:
	return (
		dag.nodejs()
	)
@func()
example(): Nodejs {
	return dag
		.nodejs()
}

Types

Nodejs 🔗

Node.js

configuration() 🔗

Configure Node.js in a container

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
containerContainer !-Container in which to configure Node.js
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@1853f8d8577e800454d4e3e1e5c8cc6ca914cb88 call \
 configuration --container IMAGE:TAG
func (m *myModule) example(container *Container) *Container  {
	return dag.
			Nodejs().
			Configuration(container)
}
@function
def example(container: dagger.Container) -> dagger.Container:
	return (
		dag.nodejs()
		.configuration(container)
	)
@func()
example(container: Container): Container {
	return dag
		.nodejs()
		.configuration(container)
}

redhatInstallation() 🔗

Install Node.js in a Red Hat Universal Base Image container from packages

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
containerContainer !-Container in which to install Node.js
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@1853f8d8577e800454d4e3e1e5c8cc6ca914cb88 call \
 redhat-installation --container IMAGE:TAG
func (m *myModule) example(container *Container) *Container  {
	return dag.
			Nodejs().
			RedhatInstallation(container)
}
@function
def example(container: dagger.Container) -> dagger.Container:
	return (
		dag.nodejs()
		.redhat_installation(container)
	)
@func()
example(container: Container): Container {
	return dag
		.nodejs()
		.redhatInstallation(container)
}

redhatContainer() 🔗

Get a Red Hat Universal Base Image container with Node.js

Return Type
Container !
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@1853f8d8577e800454d4e3e1e5c8cc6ca914cb88 call \
 redhat-container
func (m *myModule) example() *Container  {
	return dag.
			Nodejs().
			RedhatContainer()
}
@function
def example() -> dagger.Container:
	return (
		dag.nodejs()
		.redhat_container()
	)
@func()
example(): Container {
	return dag
		.nodejs()
		.redhatContainer()
}

redhatMinimalInstallation() 🔗

Install Node.js in a Red Hat Minimal Universal Base Image container from packages

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
containerContainer !-Container in which to install Node.js
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@1853f8d8577e800454d4e3e1e5c8cc6ca914cb88 call \
 redhat-minimal-installation --container IMAGE:TAG
func (m *myModule) example(container *Container) *Container  {
	return dag.
			Nodejs().
			RedhatMinimalInstallation(container)
}
@function
def example(container: dagger.Container) -> dagger.Container:
	return (
		dag.nodejs()
		.redhat_minimal_installation(container)
	)
@func()
example(container: Container): Container {
	return dag
		.nodejs()
		.redhatMinimalInstallation(container)
}

redhatMinimalContainer() 🔗

Get a Red Hat Minimal Universal Base Image container with Node.js

Return Type
Container !
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@1853f8d8577e800454d4e3e1e5c8cc6ca914cb88 call \
 redhat-minimal-container
func (m *myModule) example() *Container  {
	return dag.
			Nodejs().
			RedhatMinimalContainer()
}
@function
def example() -> dagger.Container:
	return (
		dag.nodejs()
		.redhat_minimal_container()
	)
@func()
example(): Container {
	return dag
		.nodejs()
		.redhatMinimalContainer()
}