Looking to distribute a commercial package as a snap

Jamie Strandboge jamie at canonical.com
Thu Oct 6 15:43:39 UTC 2016


On Wed, 2016-10-05 at 23:57 -0300, Gustavo Niemeyer wrote:
> On Wed, Oct 5, 2016 at 11:34 PM, Spencer <spencertparkin at gmail.com> wrote:
> 
> > 
> > My entry into the snap world has been a tough one.  There is online
> > documentation, but it is not kept up-to-date.  I get the feeling that the
> > bar for entry is the need to be the kind of person who loves to learn
> > everything about a system by becoming one of its developers.  For example,
> > I couldn't figure out how to use the scons plugin until I dug into the
> > python code for it.  Is it documented somewhere?  I don't know.
> > 
> I share your feeling. We're doing a suboptimal job on documentation, both
> for snapcraft and for snapd itself. We need fix that.
> 
> Anyhow, talking with someone on this mailing list, I learned a very useful
> > 
> > thing: if you go down the snap road, you want to learn how to get the log
> > information from you
> app when it's installed in strict mode.  I know of no other way to diagnose
> > 
> > problems with your app exhibited in strict mode, but no where else.
> > 
> Logs are indeed the best way at the moment. We need to introduce some
> further tooling to help out on the process.
> 
There is a tool that can help:

$ sudo snap install snappy-debug
$ sudo snap connect snappy-debug:log-observe ubuntu-core:log-observe
$ sudo snappy-debug.security scanlog
$ <exercise your snap>

This will look at the logs and make suggestions. It has some limitations
currently but it's useful as is. We'll get those sorted and I plan to work with
Gustavo on how to improve the tool (I suspect it might include a rename as
well). I know this tool is documented in some places, but based on your feedback
it seems it too is underdocumented.

PS - soon you'll need to use 'core:log-observe' instead of 'ubuntu-core:log-
observe' with the snap connect command.

-- 
Jamie Strandboge             | http://www.canonical.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161006/2cba1eb3/attachment.sig>


More information about the Snapcraft mailing list