nodejs
Install Node.js in containers based on Red Hat Universal Base Images.Installation
dagger install github.com/camptocamp/daggerverse/nodejs@v0.2.2
Entrypoint
Return Type
Nodejs !
Arguments
Name | Type | Description |
---|---|---|
npmrc | Secret | npm configuration file (can be used to pass registry credentials) |
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@c3c8cdc46473919a7e36a5b7180861a47c6be914 call \
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
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Container in which to configure Node.js |
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@c3c8cdc46473919a7e36a5b7180861a47c6be914 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
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Container in which to install Node.js |
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@c3c8cdc46473919a7e36a5b7180861a47c6be914 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 !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar | - | Platform to get container for |
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@c3c8cdc46473919a7e36a5b7180861a47c6be914 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
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Container in which to install Node.js |
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@c3c8cdc46473919a7e36a5b7180861a47c6be914 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 !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar | - | Platform to get container for |
Example
dagger -m github.com/camptocamp/daggerverse/nodejs@c3c8cdc46473919a7e36a5b7180861a47c6be914 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()
}