Components
Nuon supports several different component types which allow you to connect your existing devops automation, infrastructure as code and containers to your app.
What is a Component?
A component represents a part of your application, Nuon supports the following components:
- Docker - any Dockerfile that can be built.
- Container Images - any prebuilt OCI image.
- Helm Charts - any Helm chart located in a repository.
- Terraform - any Terraform module.
- Jobs - any script that can be executed using an OCI image.
Setting up an application requires definining and testing your application configuration.
Component Management
The cli exposes many operational commands to manage components.
To see all available commands, run: nuon components --help
.
Pinning a Component
You can pin a component, which will set it’s ID as a default argument to all component commands. This is helpful to avoid
having to pass -c
to each command.
nuon components select
To show the currently pinned component:
nuon components current
Component Management Commands
Commands for working with components
Get a component
nuon components get
List components - List components for an app.
nuon components delete
Delete a component - delete a component
nuon components delete
Print a component config - print the latest configuration for a component.
nuon components latest-config
Component Builds
All components must be built before releasing. The release commands support an -auto-build
flag which will trigger a
build.
Create a build - create a build using the latest component configuration.
nuon builds create
List builds - list builds for a component.
nuon builds list
Get a build - print out build details.
nuon builds get -b <build-id>
Logs - show logs for a build.
nuon builds logs -b <build-id>
Print Plan - print a build plan with configuration for the build.
nuon builds print-plan -b <build-id>