Re: CLI UX for plugs with parameters?

2016-09-22 Thread Simon Fels
You wont set the attribute of the slot/plug in the command line you use to
connect slot and plug. Every attribute as to be set in the definition of
the plug/slot. Like

plugs:
  my-plug:
interface: really-awesome-interface
attribute1: value1
...

Then you simply connect via

$ snap connect my-snap:my-plug ..

without specifying  any attributes.

regards,
Simon


On Tue, Sep 20, 2016 at 9:52 AM, Stuart Bishop 
wrote:

> Hi.
>
> I believe that slots will have support for arguments, for example allowing
> a snap to connect to the 'home' slot and provide an argument requesting
> access to hidden files.
>
> Does anyone know what the command line interface will look like?
>
> In the snap layer for Juju, I need to define the data structure to declare
> what additional connections need to be made after installation of the snap.
> I'd like to get this right the first time since I'm going to be stuck with
> it.
>
>
> --
> Stuart Bishop 
>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Ratings

2016-09-22 Thread Spencer
I'm about to add audio to my snap, yo, the ratings are about to go through the 
roof, dawg!...

Say, how do you rate a snap, anyway?
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Access to other commands

2016-09-22 Thread Leo Arias
On Thu, Sep 15, 2016 at 6:12 AM, Mark Shuttleworth  wrote:

>
> I think this is a topic for the next snapfest community event, in
> October/November. Call it "snapping CLI utilities".
>
>
Here's another interesting one to take into account in that discussion:
https://github.com/elopio/htop/tree/snapcraft
(currently in the sandpit)

In devmode, snappy-debug doesn't stop printing warnings.
-- 
¡paz y baile!
http://www.ubuntu.com
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Access to other commands

2016-09-22 Thread Joseph Rushton Wakeling

On 15/09/16 14:12, Mark Shuttleworth wrote:

On 15/09/16 05:00, Zygmunt Krynicki wrote:

As discussed a few times this is technically challenging to do.

All of “classic” is visible from /var/lib/snapd/hostfs/ but there is no 
guarantee that you can run them in any way. They may require the classic 
dynamic linker, the classic runtime libraries and the classic filesystem layout 
that are all lost when snap-confine sets up the execution environment. If 
there’s desire to run executables from the outside we could look for solutions 
but this is not as simple as “just use devmode”


I think this is a topic for the next snapfest community event, in
October/November. Call it "snapping CLI utilities".


Is this going to be an online or face-to-face event?  This  seems like something 
I ought to not miss ... :-)



--
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Docker image for building Ubuntu (amd64/i386/armhf/arm64) snaps

2016-09-22 Thread Rex Tsai
Since the image[1] does not use the auto-build hook with github nor share
the Dockerfile, I can only check the binary image. Form the binary image it
looks like it only supports x86_64 and using an old 2.15.1 snapcraft. Not
sure who is the maintainer.

I'm aiming to support system engineers to build Ubuntu Core image, maybe we
are not sharing the same goal here. If it's useful please find the source
code on github[2].

[1] https://hub.docker.com/r/snapcore/snapcraft/
[2] https://github.com/chihchun/snapcraft-docker
Cheers
-Rex

On Fri, Sep 23, 2016 at 12:19 AM, Loïc Minier 
wrote:

> Hi!
>
> Is there a big difference with the https://hub.docker.com/r/
> snapcore/snapcraft/ image? Perhaps we can merge the two to avoid
> confusion from end-users?
>
> Thanks,
> - Loïc
>
> On Thu, Sep 22, 2016 at 3:24 PM, Rex Tsai  wrote:
>
>>
>> This image includes toolchains and snapcraft to help app developers (and
>> hardware enablement engineers) who don't have a Ubuntu installation to
>> build a snap software package.
>>
>> It's also support building snap on amd64, i386 (native and amd64
>> architecture), armhf (native and amd64 architecture), arm64 (native and
>> amd64 architecture). That help an app developer to cross build a arm-based
>> snap from amd64.
>>
>> To use the docker container to build a
>> #
>> ​ ​
>> Please put this line in your
>> ${HOME}/.$(basename ${SHELL})rc
>> ​
>> alias snapcraft-docker='docker run -u $(id -u) -t -i --rm -v
>> $(pwd):/build \
>> -v ${HOME}/.snap:/build/.snap \
>> -v ${HOME}/.local/share/snapcraft:/build/.local/share/snapcraft \
>> snapcraft/xenial-amd64 snapcraft'
>>
>> snapcraft-docker tour
>> cd snapcraft-tour/00-SNAPCRAFT/01-easy-start && snapcraft-docker
>>
>> Please find the README on https://hub.docker.com/r/snapc
>> raft/xenial-amd64/
>>
>> Cheers
>> -Rex
>>
>
>
>
> --
> - Loïc
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Docker image for building Ubuntu (amd64/i386/armhf/arm64) snaps

2016-09-22 Thread Loïc Minier
Hi!

Is there a big difference with the
https://hub.docker.com/r/snapcore/snapcraft/ image? Perhaps we can merge
the two to avoid confusion from end-users?

Thanks,
- Loïc

On Thu, Sep 22, 2016 at 3:24 PM, Rex Tsai  wrote:

>
> This image includes toolchains and snapcraft to help app developers (and
> hardware enablement engineers) who don't have a Ubuntu installation to
> build a snap software package.
>
> It's also support building snap on amd64, i386 (native and amd64
> architecture), armhf (native and amd64 architecture), arm64 (native and
> amd64 architecture). That help an app developer to cross build a arm-based
> snap from amd64.
>
> To use the docker container to build a
> #
> ​ ​
> Please put this line in your
> ${HOME}/.$(basename ${SHELL})rc
> ​
> alias snapcraft-docker='docker run -u $(id -u) -t -i --rm -v $(pwd):/build
> \
> -v ${HOME}/.snap:/build/.snap \
> -v ${HOME}/.local/share/snapcraft:/build/.local/share/snapcraft \
> snapcraft/xenial-amd64 snapcraft'
>
> snapcraft-docker tour
> cd snapcraft-tour/00-SNAPCRAFT/01-easy-start && snapcraft-docker
>
> Please find the README on https://hub.docker.com/r/snapcraft/xenial-amd64/
>
> Cheers
> -Rex
>



-- 
- Loïc
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Docker image for building Ubuntu (amd64/i386/armhf/arm64) snaps

2016-09-22 Thread Rex Tsai
This image includes toolchains and snapcraft to help app developers (and
hardware enablement engineers) who don't have a Ubuntu installation to
build a snap software package.

It's also support building snap on amd64, i386 (native and amd64
architecture), armhf (native and amd64 architecture), arm64 (native and
amd64 architecture). That help an app developer to cross build a arm-based
snap from amd64.

To use the docker container to build a
#
​ ​
Please put this line in your
${HOME}/.$(basename ${SHELL})rc
​
alias snapcraft-docker='docker run -u $(id -u) -t -i --rm -v $(pwd):/build \
-v ${HOME}/.snap:/build/.snap \
-v ${HOME}/.local/share/snapcraft:/build/.local/share/snapcraft \
snapcraft/xenial-amd64 snapcraft'

snapcraft-docker tour
cd snapcraft-tour/00-SNAPCRAFT/01-easy-start && snapcraft-docker

Please find the README on https://hub.docker.com/r/snapcraft/xenial-amd64/

Cheers
-Rex
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft