Manage applications on an edge device
Modify the application list in the device specification to deploy, update, or remove applications. The Red Hat Edge Manager agent detects changes upon check-in, downloads new or updated Open Container Initiative (OCI) packages and images, and manages their deployment or removal at runtime.
The Red Hat Edge Manager supports the podman-compose tool as the application runtime and format.
Build an application package image Copy linkLink copied!
The Red Hat Edge Manager can download application packages from an Open Container Initiative (OCI) compatible registry. You can build an OCI container image that includes your application package in the podman-compose format and push the image to your OCI registry.
Before you begin Copy linkLink copied!
- You must install the Red Hat Edge Manager CLI.
- You must log in to the Red Hat Edge Manager service.
- Your device must run an operating system image with the
podman-composetool installed.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
Specify applications inline in the device specification Copy linkLink copied!
Application manifests are specified inline in a device’s specification, so you do not need to build an OCI registry application package.
The inline application provider accepts a list of application content with the following parameters:
| Parameter | Description |
|---|---|
| Path |
The relative path to the file on the device. Note that any existing file is overwritten. |
| Content (Optional) |
The plain text (UTF-8) or base64-encoded content of the file. |
| ContentEncoding |
How the contents are encoded. Must be either "plain" or "base64". Defaults to "plain". |
Example
apiVersion: flightctl.io/v1alpha1
kind: Device
metadata:
name: some_device_name
spec:
[...]
applications:
- name: my-app
appType: compose
inline:
- content: |
version: "3.8"
services:
service1:
image: quay.io/flightctl-tests/alpine:v1
command: ["sleep", "infinity"]
path: podman-compose.yaml
[...]
Inline compose applications can have two paths at most. You must name the first one podman-compose.yaml, and the second (override) podman-compose.override.yaml.
Deploy applications to a device using the CLI Copy linkLink copied!
Deploy application packages securely from an OCI registry onto a target device by using the Red Hat Edge Manager CLI. Specifying the container image reference in the device manifest automatically triggers the transactional deployment through the device agent.