Closed DnPlas closed 8 months ago
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/KF-5331.
This message was autogenerated
From the Snapcraft overview guide, here are my findings:
snapcraft
(similar to rockcraft
and charmcraft
) allows you to build, publish, debug, test and version control snapssnapcraft
.
(3) Publish the application to the Snap Store (public).For more details on how to actually write a snap, we can follow this guide.
Snaps are built using plugins, parts, and interfaces that are defined in a snapcraft.yaml
file. The snapcraft.yaml
schema can be found here.
Building a snap (the project) requires us to define top-level metadata with things like the base os, supported architechtures, etc; then a parts metadata where the application is built and its dependencies imported or added; and finally we can define interface metadata to connect external system resources to the application.
Building the actual application is as easy as running snapcraft --debug
in the same dir where the snap was initialised.
For local testing, the snap install <snap file>
can be used
This guide provides better information about creating a snap step by step.
There are confinement levels for snaps: a strict snap is a snap that runs in complete isolation with a minimum access level that can be considered safe; on the other hand classic snaps allow access to the system’s resources in much the same way traditional packages do. For the latter, manual reviews are needed.
juju-wait is a familiar example.
References: [1] snaps intro [2] snapcraft overview [3] quickstart tour [4] creating a snap
More information:
From here I think we have enough information to start moving on with the first draft of the dss snap.
Closing this issue as we have captured all necessary information and we have a path to get us started.
Why it needs to get done
We need to explore how snaps are written and tested before we can start creating one on our own. We need to gather enough information to start writing a snap for DSS.
Estimate 1D
What needs to get done
Explore the following:
snapcraft.yaml
constructed?When is the task considered done
When we have enough information to answer the questions presented above to get started with writing our first snap.