Application Workloads
Deploy and manage applications independently of the device’s base system. This guide uses Rugix Apps, which installs applications as bundles and keeps earlier installations for rollback. For full operating system images, follow Deploy System Updates.
System and application releases have separate lifecycles. For example, you can update a data-collection application while keeping its operating system image fixed, then return to the previous release if the new one fails.
Nexigon manages applications the same way it manages system updates. For each device, Nexigon Hub stores which applications should run, in which version, and when the device may update them. The Rugix Apps integration of Nexigon Agent installs the applications, keeps them in their desired state, and reports their status. Rugix Apps describes the contract in detail.
Enable App Management
Your image needs Nexigon Agent, Rugix Ctrl 1.4 or later, and a configured Rugix Apps runtime, such as Docker and Docker Compose. Enable the integration in the agent configuration:
[integrations.rugix.apps]
enabled = true
[commands]
enabled = trueWith commands enabled, the web interface asks the device to apply changes right away. Otherwise, the device applies them at its next check, by default every four hours. App Management lists the settings of the integration.
For Rugix Bakery, add the configuration with the extra_config parameter of
the nexigon/nexigon-agent-config recipe. For Yocto, add it with
NEXIGON_AGENT_EXTRA_CONF.
Once the device reports the status of its apps, its page shows an Applications tab. The Rugix Apps guide explains the image setup, bundle verification, and bundle selection in detail.
Publish an Application
Publish each application as a package in a
repository, and each release as a version of
that package. Set its kind to rugix-app so it appears in the Applications
package selector. See Publish Software Artifacts.
For example, create a package for the controller app with:
nexigon-cli repositories packages create my-repo controller --kind rugix-app
For a private repository, link it to the device’s project under Project Settings → Repositories so the device can download its software.
A version contains a Rugix App bundle for each architecture, named
<app>-<arch>.rugixb, where <app> is the name of the app on the device.
Devices install the bundle for their architecture, using Rust’s architecture
names such as x86_64, aarch64, or arm. A bundle that runs on every
architecture is named <app>.rugixb. For example, a release of the
controller app for two architectures contains:
controller-x86_64.rugixb
controller-aarch64.rugixb
To keep Rugix Ctrl from installing a bundle on the wrong architecture, declare
a host.arch requirement in the bundle’s
compatibility metadata.
The web interface uses the package name as the app name. If they differ, set
rugix.app.name in the package metadata. For example, a package named
controller-bundle that installs the controller app uses:
nexigon-cli repositories packages create my-repo controller-bundle \
--kind rugix-app \
--metadata '{"rugix": {"app": {"name": "controller"}}}'
The app name must match the app installed by the bundles and their filenames.
Add an Application to a Device
- Open the device’s Applications tab and choose Add Application.
- Choose the package of the app and check the application name shown.
- Enter the tag to follow, such as
stable, and choose Follow. To install one specific version instead, search for it under Or Pin a Version and choose Pin.
The device installs the version and starts the app. The application list shows the version that each app runs, the state of its updates, and the status of its workload.
Change an Application
Select an application in the list to open its settings:
- Release follows another tag or pins another version. To return to an
earlier release, pin its version. If the device still has that version
installed, it switches back without downloading it again. By default, the
device keeps one previous version. The
gcpolicy sets how many it keeps. - Stop App stops the app’s workload and keeps the app installed. The app stays stopped across reboots until you choose Start App.
- Remove App uninstalls the app, including its persistent data.
After a failed update, Retry Update requests a new attempt.
Nexigon manages only the apps that the device’s configuration lists. Other installed apps appear as not managed, and Nexigon leaves them unchanged. To manage such an app, open it and choose a release. The device then installs that release. If the device also publishes the Rugix Apps commands, the list offers controls to start, stop, roll back, and remove apps that are not managed.
Configure Applications with Nexigon CLI
The applications of a device are part of its protected
dev.nexigon.rugix-apps.config property. For example, the following command makes a
device run the stable release of controller and keep historian stopped:
nexigon-cli devices properties set --protected=true <device-id> dev.nexigon.rugix-apps.config \
'{"apps": {"controller": {"path": "my-repo/controller/stable"},
"historian": {"path": "my-repo/historian/stable", "state": "stopped"}}}'
The path has the format <repository>/<package>/<version>, where <version>
is a tag or a version ID. The state is running, stopped, or removed.
Removing an app from the property ends its management but leaves it installed.
To deploy applications to many devices, set the property in a device profile. Profiles merge the apps they list, so separate profiles can manage separate apps of the same device.
Control When Applications Update
The same settings as for system updates control when the device updates its apps. Set them for all apps of the device or for a single app:
{
"window": { "ranges": [{ "start": "02:00", "end": "05:00" }] },
"apps": {
"controller": { "path": "my-repo/controller/stable" },
"historian": { "path": "my-repo/historian/stable", "hold": true }
}
}holdkeeps an app at its current version.windowrestricts when the device switches a running app to a new version. The device may download and install the new version earlier, so the switch itself takes little time.retrylimits failed attempts and sets the delays between them.spreaddelays updates by the device’s position in a spread.
A setting of an app replaces the setting for all apps. For example,
"hold": false lets one app update while the others are held. The application
settings offer Hold Updates and a Maintenance Window for a single app.
Windows and Retries and Spread describe the settings in detail.
Monitor Applications
The application list shows each app’s update state and workload status. When
an update is blocked, the application settings explain why, for example while
the device waits for its maintenance window. The device also records events of
the category apps for every installation and failure.
| Symptom | What to Check |
|---|---|
| The update is blocked by a missing bundle | Confirm that the version contains a bundle named for the architecture that the device reports, such as controller-aarch64.rugixb. |
| The update failed | Read the reported error. If the new version failed to start, Rugix Apps restored the previous version, which keeps running. Use Retry Update after fixing the cause. |
| The device does not apply a change | Confirm that the device is online. Without commands, the device applies changes at its next check. |
Configure Bundle Hash Verification
Rugix Ctrl requires every bundle to be verified. Without further setup, it verifies the bundle’s signature. Alternatively, the device can verify bundles with a hash from the metadata of their assets:
{
"rugix": {
"bundleHash": "sha512-256:..."
}
}
The sha512-256:... value above is a placeholder. Obtain the actual Rugix
bundle hash from your build output or calculate it with Rugix Bundler on your
workstation:
rugix-bundler hash controller-aarch64.rugixb
For a bundle already attached to an unsealed version, set the version asset’s metadata. For example, replace the version ID, filename, and hash in:
nexigon-cli repositories versions assets set-metadata <version-id> controller-aarch64.rugixb \
'{"rugix":{"bundleHash":"sha512-256:..."}}'
This replaces the version asset’s metadata, so include any existing fields you
want to retain. Complete the metadata before
sealing the version. When attaching
a new bundle, you can instead pass the same JSON through
versions assets add --metadata during the
publishing workflow.
Enable use-bundle-hash in the agent configuration:
[integrations.rugix.apps]
enabled = true
use-bundle-hash = trueA hash verifies the bundle against metadata delivered through the authenticated Nexigon connection. For independent publisher authentication, configure Rugix bundle signing and a device trust root.
Manage Applications with Device Commands
Devices without the Rugix Apps integration of Nexigon Agent can manage
applications through device commands instead. For Rugix Bakery, include the
nexigon/nexigon-rugix-apps recipe as described in
Getting Started with Rugix. For Yocto, use the
meta-nexigon-rugix layer from
meta-nexigon. Enable command
execution in Nexigon Agent.
On such a device, the Applications tab offers Deploy Application and controls to start, stop, roll back, and remove each application. The recipe publishes these commands:
| Command | Purpose |
|---|---|
nexigon.rugix-apps.list | List installed applications. |
nexigon.rugix-apps.info | Read details of an application. |
nexigon.rugix-apps.deploy | Deploy an application from a package version. |
nexigon.rugix-apps.start | Start an application. |
nexigon.rugix-apps.stop | Stop an application. |
nexigon.rugix-apps.rollback | Roll back to the previous generation. |
nexigon.rugix-apps.remove | Remove an application. |
The deploy command installs the first .rugixb asset of a version, or the
asset named in its input. To pass the bundle hash from the asset metadata to
Rugix Ctrl, set the recipe parameter use_bundle_hash = "true".
Use a Custom Application Updater
For applications outside Rugix Apps, store artifacts in a Nexigon repository
and use your own installation service on the device. The service can resolve
a version tag and request download URLs with
nexigon-agent repositories issue-url.
Run the updater periodically, for example with a systemd timer. It resolves the configured tag, compares the selected version with the installed version, downloads new artifacts, and installs them with your application tooling. Moving a tag changes what the next check resolves; your updater determines when and how installation happens. Define how it reports success, retries failures, and preserves or restores the previous application.
Use separate packages for system and application releases. Use separate repositories when they need different access policies. Separate packages let you promote application releases independently of system releases. Separate repositories let you control which projects can access each set of software.