nodejs
Install Node.js in containers based on Red Hat Universal Base Images.Installation
dagger install github.com/camptocamp/daggerverse/nodejs@v0.2.3Entrypoint
Return Type
Nodejs !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| npmrc | Secret | - | npm configuration file (can be used to pass registry credentials) |
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@e60fd01c8dd169af3a7af9d01f039e2286d2254e call \
func (m *MyModule) Example() *dagger.Nodejs {
return dag.
Nodejs()
}@function
def example() -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| container | Container ! | - | Container in which to configure Node.js |
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@e60fd01c8dd169af3a7af9d01f039e2286d2254e call \
configuration --container IMAGE:TAGfunc (m *MyModule) Example(container *dagger.Container) *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| container | Container ! | - | Container in which to install Node.js |
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@e60fd01c8dd169af3a7af9d01f039e2286d2254e call \
redhat-installation --container IMAGE:TAGfunc (m *MyModule) Example(container *dagger.Container) *dagger.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 !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| platform | Scalar | - | Platform to get container for |
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@e60fd01c8dd169af3a7af9d01f039e2286d2254e call \
redhat-containerfunc (m *MyModule) Example() *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| container | Container ! | - | Container in which to install Node.js |
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@e60fd01c8dd169af3a7af9d01f039e2286d2254e call \
redhat-minimal-installation --container IMAGE:TAGfunc (m *MyModule) Example(container *dagger.Container) *dagger.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 !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| platform | Scalar | - | Platform to get container for |
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@e60fd01c8dd169af3a7af9d01f039e2286d2254e call \
redhat-minimal-containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
Nodejs().
RedhatMinimalContainer()
}@function
def example() -> dagger.Container:
return (
dag.nodejs()
.redhat_minimal_container()
)@func()
example(): Container {
return dag
.nodejs()
.redhatMinimalContainer()
}