Re: Provisional snap for DUB (D language package/build manager)

2016-10-31 Thread Kyle Fazzari


On 10/29/2016 08:14 AM, Joseph Rushton Wakeling wrote:
> On 27/10/16 10:27, Didier Roche wrote:
>> Just a note: after a quick double checking , the snapcraft go plugin
>> relies on ubuntu packages (I think it should rather download latest
>> stable go and use GOROOT to use it). This isn't the case for other
>> plugins like nodejs which was the one I had in mind and I still think
>> you should prefer that road.
> 
> In principle that should be possible, as there are precompiled downloads
> of dub available here: https://code.dlang.org/download  Using these
> could have some advantages, including allowing the user of the plugin to
> specify the exact version of dub they want to build with.
> 
> Since there are different Linux downloads for x86, x86-64 and ARM, is
> there any way for the snapcract plugin to detect what the host system is
> and download accordingly ... ?

Indeed, you can utilize the `self.project.arch_triplet` property for that.

-- 
Kyle Fazzari (kyrofa)
Software Engineer
Canonical Ltd.
k...@canonical.com



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


Re: Provisional snap for DUB (D language package/build manager)

2016-10-31 Thread Sergio Schvezov
El 31 oct. 2016 6:25 PM, "Kyle Fazzari" 
escribió:
>
>
>
> On 10/29/2016 08:14 AM, Joseph Rushton Wakeling wrote:
> > On 27/10/16 10:27, Didier Roche wrote:
> >> Just a note: after a quick double checking , the snapcraft go plugin
> >> relies on ubuntu packages (I think it should rather download latest
> >> stable go and use GOROOT to use it). This isn't the case for other
> >> plugins like nodejs which was the one I had in mind and I still think
> >> you should prefer that road.
> >
> > In principle that should be possible, as there are precompiled downloads
> > of dub available here: https://code.dlang.org/download  Using these
> > could have some advantages, including allowing the user of the plugin to
> > specify the exact version of dub they want to build with.
> >
> > Since there are different Linux downloads for x86, x86-64 and ARM, is
> > there any way for the snapcract plugin to detect what the host system is
> > and download accordingly ... ?
>
> Indeed, you can utilize the `self.project.arch_triplet` property for that.

The nodejs plugin actually used this construct if you need a reference.
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Confined Docker snap available

2016-10-31 Thread Peng Liu
Hi Loïc,

I encountered some errors when I tried to connect the interfaces, for
example:

sudo snap connect docker:docker-cli docker:docker-daemon

error: cannot perform the following tasks: - Connect docker:docker-cli to
docker:docker-daemon (cannot connect plug "docker-cli" from snap "docker",
no such plug) 

Then I am not able to run a simple docker command like "docker run --rm
hello-world"

Did I miss something? Is there anything need to do after installing the
docker snap?
Thanks.

Peng

On Tue, Oct 18, 2016 at 6:48 AM, Loïc Minier  wrote:

> Hi!
>
> Docker is since some days available as a properly confined snap. This will
> work on top of classic Ubuntu 16.04+ or on top of an up-to-date Ubuntu Core
> series 16.
>
> Because the docker.sock path is hardcoded in a lot of images, this snap
> conflicts with docker debs, so make sure you remove them first:
> sudo apt purge docker docker-engine
>
> Create a system group for docker:
> sudo groupadd --system docker
>
> Install the snap:
> sudo snap install docker
>
> And connect the interfaces (these will go away we have a snap-declaration
> in place):
> sudo snap connect docker:docker-cli docker:docker-daemon
> sudo snap connect docker:firewall-control ubuntu-core:firewall-control
> sudo snap connect docker:support ubuntu-core:docker-support
> sudo service snap.docker.dockerd stop
> sudo service snap.docker.dockerd start
>
> You're now ready to use docker, e.g.:
> sudo /snap/bin/docker run --rm -it hello-world
> sudo /snap/bin/docker run --rm -it ubuntu
>
> At the moment, the Docker snap is available for amd64, armhf, arm64, i386.
>
> Docker-compose is also included, and may be used with the "docker.compose"
> command.
>
> Want to read more about docker? Read the Docker snap status and FAQ doc
> 
> !
>
> Have fun and please report issues against https://github.com/
> docker-snap/docker
>
> Cheers,
> - Loïc Minier
>
> --
> 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


ANN: symgrpmad

2016-10-31 Thread Spencer Parkin
FWIW, I just published a new snap...

sudo snap install symgrpmad

If you have a moment, let me know what you think.

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