snapd events API

2016-08-16 Thread Robert Ancell
Hi, I've been trying to access snapd events using the REST API [1] and I'm not able to get it working. When I do the websocket upgrade I send something like this: GET /v2/events HTTP/1.1 Host: Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: ... Sec-WebSocket-Version: 13 And snapd just

Re: Putting git inside a snap

2016-08-16 Thread Sergio Schvezov
El 16/08/16 a las 20:28, Marco Ceppi escribió: > Thanks for the hint, I've added that to my snapcraft.yaml but I'm still > getting the same error. What's the best way to troubleshoot this, is > there a way to 'enter' the snap environment and poke the git command? Create a new `apps` entry like t

Re: Putting git inside a snap

2016-08-16 Thread Oliver Grawert
hi, On Di, 2016-08-16 at 22:08 +, Marco Ceppi wrote: > Hello, I've spent the better part of my day hitting my head too hard > against a wall. Figured I'd ask the list for more assistance. > > tl;dr: git doesn't work when included inside my snap and it's really > messing me up. depending on ho

Re: Putting git inside a snap

2016-08-16 Thread Marco Ceppi
Thanks for the hint, I've added that to my snapcraft.yaml but I'm still getting the same error. What's the best way to troubleshoot this, is there a way to 'enter' the snap environment and poke the git command? Marco On Tue, Aug 16, 2016 at 6:58 PM Evan Dandrea wrote: > On Tue, 16 Aug 2016 at 1

Re: Putting git inside a snap

2016-08-16 Thread Evan Dandrea
On Tue, 16 Aug 2016 at 17:09 Marco Ceppi wrote: > > After consulting some in IRC the suggestion seems to be that I need to > compile git from source in my snapcraft parts. After a few hours of trying > to get the following part to compile I've all but given up. > Before content interfaces became

Putting git inside a snap

2016-08-16 Thread Marco Ceppi
Hello, I've spent the better part of my day hitting my head too hard against a wall. Figured I'd ask the list for more assistance. tl;dr: git doesn't work when included inside my snap and it's really messing me up. snap install charm --edge I'm snapping charm and charm-tools as a single snap. On

Re: custom lxd bridges inside a snap

2016-08-16 Thread Jamie Strandboge
On Tue, 2016-08-16 at 19:07 +, Adam Stokes wrote: > I've found some discussion on this here: > > https://lists.ubuntu.com/archives/snappy-app-devel/2015-November/000477.html > > I am curious to know if this is possible now or still a work in progress? I > have a snap that requires a custom LX

Re: Using snap for application with plugins

2016-08-16 Thread Alexey Yakovenko
Hi Thomas Thanks for replying so quickly! Answering inline. :) On Tue, Aug 16, 2016 at 8:56 PM, Thomas Voß wrote: > Hey Alexey, > > first of all: Thanks for reaching out :) And to answer your final > question first: Snap'ing up applications that feature > a runtime extension mechanism is certai

custom lxd bridges inside a snap

2016-08-16 Thread Adam Stokes
I've found some discussion on this here: https://lists.ubuntu.com/archives/snappy-app-devel/2015-November/000477.html I am curious to know if this is possible now or still a work in progress? I have a snap that requires a custom LXD bridge and would like to make use of that if possible. -- Snapc

Re: Using snap for application with plugins

2016-08-16 Thread Thomas Voß
Hey Alexey, first of all: Thanks for reaching out :) And to answer your final question first: Snap'ing up applications that feature a runtime extension mechanism is certainly possible, complexity depends on the actual application, though. To get you started fast: devmode (see http://askubuntu.com

Using snap for application with plugins

2016-08-16 Thread Alexey Yakovenko
Hi (Before I start, I'd like to apologise if this message has duplicates, I messed up with the mailing list subscription at first). Many users are requesting snap package format for my music player application. I researched this topic, and came up with a list of problems which I could not solve

Re: Including custom kernel driver with a snap

2016-08-16 Thread MikeB
On 2016-08-12 06:25:12 -0500 Jamie Strandboge wrote: > Note that this is an extremely privileged interface since it essentially gives > device ownership to the snap and there will be assertions and store checks > limiting its use. AFAIK, the snappy way of doing this is still to build a kernel > sn

Re: Using sudo from within a snap

2016-08-16 Thread Jamie Strandboge
On Tue, 2016-08-16 at 09:53 -0400, Chris Wayne wrote: > Is this something that could be added to the roadmap?  We'd really prefer > to not have to call the snap itself with sudo as it creates some > permissions issues (root-owned dirs in $HOME for example) and some other > general flakiness.  What

Re: my snap cannot be build anymore - 'ascii' codec can't encode character

2016-08-16 Thread Pawel Stolowski
That helped, thanks! Pawel On 16.08.2016 16:34, Joe Talbott wrote: In the mean time you can use the 'desktop-xxx' version of the desktop helpers now. Thanks, Joe On Tue, Aug 16, 2016 at 10:31 AM, Sergio Schvezov wrote: El 16/08/16 a las 11:22, Oliver Grawert escribió: hi, On Di, 2016-08-1

Re: my snap cannot be build anymore - 'ascii' codec can't encode character

2016-08-16 Thread Sergio Schvezov
El 16/08/16 a las 11:22, Oliver Grawert escribió: > hi, > On Di, 2016-08-16 at 16:17 +0200, Pawel Stolowski wrote: >> Hi, >> >> I'm getting the following error when trying to 'snapcraft >> cleanbuild' >> ... >> Processing triggers for ureadahead (0.100.0-19) ... >> 'ascii' codec can't encode cha

Re: my snap cannot be build anymore - 'ascii' codec can't encode character

2016-08-16 Thread Joe Talbott
In the mean time you can use the 'desktop-xxx' version of the desktop helpers now. Thanks, Joe On Tue, Aug 16, 2016 at 10:31 AM, Sergio Schvezov wrote: > > > El 16/08/16 a las 11:22, Oliver Grawert escribió: >> hi, >> On Di, 2016-08-16 at 16:17 +0200, Pawel Stolowski wrote: >>> Hi, >>> >>> I'm g

Re: my snap cannot be build anymore - 'ascii' codec can't encode character

2016-08-16 Thread Oliver Grawert
hi, On Di, 2016-08-16 at 16:17 +0200, Pawel Stolowski wrote: > Hi, > > I'm getting the following error when trying to 'snapcraft > cleanbuild'  > ... > Processing triggers for ureadahead (0.100.0-19) ... > 'ascii' codec can't encode character '\u29f8' in position 19: ordinal   that is: https://bu

my snap cannot be build anymore - 'ascii' codec can't encode character

2016-08-16 Thread Pawel Stolowski
Hi, I'm getting the following error when trying to 'snapcraft cleanbuild' something I contributed a few weeks ago to playpen - https://github.com/ubuntu/snappy-playpen/tree/master/qcomicbook: . (installation of dependencies). Processing triggers for ureadahead (0.100.0-19) ... 'ascii

Re: Using sudo from within a snap

2016-08-16 Thread Chris Wayne
Is this something that could be added to the roadmap? We'd really prefer to not have to call the snap itself with sudo as it creates some permissions issues (root-owned dirs in $HOME for example) and some other general flakiness. What would the sudo interface entail, just access to /usr/bin/sudo

Re: Build snaps in container

2016-08-16 Thread Oliver Grawert
hi, On Di, 2016-08-16 at 08:39 -0500, Matt Bruzek wrote: > > To get better acquainted with snapping I built a snapcraft > environment in an Ubuntu docker container. This gives us a consistent > snapcraft environment everywhere, from development, CI to my > colleagues OSX installation. > did you

Build snaps in container

2016-08-16 Thread Matt Bruzek
​​ To get better acquainted with snapping I built a snapcraft environment in an Ubuntu docker container. This gives us a consistent snapcraft environment everywhere, from development, CI to my colleagues OSX installation. This is a minimum viable product that provides a few features: * Gives deve