WIP: Support for Canonical Snap builds to run on Ubuntu Core #17199
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Provide the ability to create a Snap package for Netdata Agent and associated utilities.
Test Plan
TBD
Additional Information
This worked is based on a request for supporting Ubuntu Core, which is primarily used in IoT settings, but is also the framework within which (most) Snaps run.
This PR takes a different approach than #1991, in that instead of a full build as part of the snapcraft building process, it takes the static builds and packages them. That PR had a request to move the
snap
directory to another place than the root of the repo, but snapcraft makes this very hard, and if we decide to make a huge point on this, there may be some avenues I can try, but it most likely means that the YAML file will be.snapcraft.yaml
and other things like hooks need to be populated explicitly.The major issue with running the Agent in this environment is providing sufficient permissions in the strict confinement model, through so-called plugs for interfaces.