Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add d-bus interface to allow interactive use #5

Merged
merged 5 commits into from
Sep 28, 2023
Merged

Conversation

dvzrv
Copy link
Owner

@dvzrv dvzrv commented Sep 27, 2023

Fixes #1

@dvzrv dvzrv added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 27, 2023
@dvzrv dvzrv self-assigned this Sep 27, 2023
Caterpillar is turned into a state machine driven application, that is
designed to be running in the background.

A D-Bus interface allows to interact with the application and to trigger
certain actions such as:
* searching for an update
* installing (and optionally rebooting) or skipping the installation of
  an update
These blocking actions, as well as the state handling are run in
separate tokio tasks (threads).
Various state related facilities are exposed as properties.
More information on the interface can be found in the XML describing it.

Further integration for D-Bus and systemd is added/updated to fully
integrate also with scenarios in which caterpillar is started over D-
Bus.

Signed-off-by: David Runge <[email protected]>
Add documentation on newly added D-Bus interface and the exposed
interactive mode.
Add various code snippets explaining how to navigate the installation of
updates using the new interface.

Signed-off-by: David Runge <[email protected]>
@dvzrv dvzrv force-pushed the dvzrv/dbus_interface branch 2 times, most recently from 43cd447 to 734c12a Compare September 28, 2023 11:17
Add htop and tmux to list of installed packages in the created images.

Signed-off-by: David Runge <[email protected]>
As caterpillar is now a long-running service, it never quits.
This means that currently the tests for skipping on "no update found"
can not be run, as they relied on the application exiting at some point.

Signed-off-by: David Runge <[email protected]>
Remove dbus-udisks2 and version-compare as they are unused.

Signed-off-by: David Runge <[email protected]>
@dvzrv dvzrv merged commit 82bbf2b into main Sep 28, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow starting caterpillar via dbus interface
1 participant