<div dir="ltr"><div><div><div>Thanks!<br><br></div>I see webdm has references to "snappy's packages api", e.g. in webdm/snappy/handlers.go it says<br><br>// MakeMuxer sets up the handlers multiplexing to handle requests against snappy's<br>// packages api<br>func (h *Handler) MakeMuxer(prefix string) http.Handler {<br>..<br><br></div>Is this API something that is part of a base installation of snappy or webdm itself? Is it intended to be used by other snaps than webdm, and if so, is it documented?<br><br></div><div>The reason I'm asking is that I'm wondering what I should build my framework snap on top of for doing package operations.<br>I have no problems using the snappy CLI, but I just wanted to check if there is a "more official" (e.g. http API) method first.<br></div><div><br><br></div>I'm not well-versed in go, so sorry for not being able to deduce this myself. :-/<br><div><br><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 28, 2015 at 1:16 PM, Manik Taneja <span dir="ltr"><<a href="mailto:manik.taneja@canonical.com" target="_blank">manik.taneja@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Jul 28, 2015 at 12:51 PM, Eystein Måløy Stenberg <span dir="ltr"><<a href="mailto:eystein.stenberg@gmail.com" target="_blank">eystein.stenberg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for the answers everyone!<div>I will play a bit more given your input.<br></div><div><br></div><div>webdm seems similar to what I had in mind, is the source code for it available somewhere?</div></div></blockquote></span><div><pre><code>$ sudo add-apt-repository ppa:snappy-dev/tools
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install snappy-tools bzr<br></code></pre><pre><code>$ bzr branch lp:webdm<br></code></pre></div><span class=""><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I'm in particular curious about the required security policies (I see it's a framework, not an app) and interaction with the snappy CLI manager (if that what it's using).</div></div></blockquote></span><div>yes, you will need to work with Canonical to define custom security policies for your framework <br></div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 28, 2015 at 9:54 AM, Charles Butler <span dir="ltr"><<a href="mailto:chuck@dasroot.net" target="_blank">chuck@dasroot.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">As a side note the webdm snap exists as a front end to snaps for snappy and managing them.</p>
<p dir="ltr">It's a great resource for you to model after for your own front end. Hope this helps, I'm pretty fresh on my voyage with snappy my self.</p>
<p dir="ltr">If you need additional help I know the fine people in #snappy on freenode are a great complimentary companion to this mailing list.</p>
<p dir="ltr">All the best,</p>
<div class="gmail_quote"><div><div>On Jul 23, 2015 10:21 PM, "Eystein Måløy Stenberg" <<a href="mailto:eystein.stenberg@gmail.com" target="_blank">eystein.stenberg@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div>Hi,<br></div><div><br></div><div>I am new to Snappy, but have read much of the docs and tried it for a few hours.</div><div>No problems and it looks simple so far, but I had a few questions about managing snaps.</div><div><br></div><div>On [1] I get a feeling for how the base system itself is updated. But is this entirely managed with the "ubuntu-core" snap? So if I run "snappy update ubuntu-core" it will download a new image (if any) to the passive partition? Or are there other snaps that should be updated as part of the base system as well (I see "generic-amd64" which sounds like a base snap). Any other software that comprises a base system update?</div><div><br></div><div>Furthermore, assuming base system update goes well, I should reboot to the other partition. Is there a preferred method do this (I see a --automatic-reboot option to snappy update) or will the regular "shutdown -r now" do the job well enough?</div><div><br></div><div>Is there a way to see which snaps can be updated? I am looking for something similar to "apt-get -s upgrade". Or would this be the difference in version between "snappy list -v" and "snappy search"?</div><div><br></div><div>Finally, is there a way for software to manage snaps, just like you can being logged in as superuser with the "snappy" command? I am planning to make an application that can update and manage snaps. Supposedly it would either need to be part of the base OS (which I guess is unlikely it would be allowed to) or it would have to be packaged as a snap with special privileges (perhaps as a framework)?</div><div><br></div><div>Thanks for reading to the end and appreciate any help! :)</div><div><br></div><div>[1] <a href="https://developer.ubuntu.com/en/snappy/guides/transactional-updates/" target="_blank">https://developer.ubuntu.com/en/snappy/guides/transactional-updates/</a></div><div><br></div><div>--</div><div><br></div><div>Eystein Stenberg</div></div>
<br></div></div><span>--<br>
snappy-devel mailing list<br>
<a href="mailto:snappy-devel@lists.ubuntu.com" target="_blank">snappy-devel@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snappy-devel" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/snappy-devel</a><br>
<br></span></blockquote></div>
</blockquote></div><br></div>
</div></div><br>--<br>
snappy-devel mailing list<br>
<a href="mailto:snappy-devel@lists.ubuntu.com" target="_blank">snappy-devel@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snappy-devel" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/snappy-devel</a><br>
<br></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>