Re: Does anyone know how to build snap for ARM architecture?

2016-08-24 Thread Oliver Grawert
hi,
Am Mittwoch, den 24.08.2016, 13:34 +0800 schrieb XiaoGuo Liu:
> Hi,
> 
> I just now successfully used launchpad.net to build snaps for ARM
> architecture. However, the precondition is that it works on my
> desktop well. I am thinking whether there is an alternative way to
> compile snaps for armhf in view of the fact that raspberry is now
> supporting the architecture. I used to come with a docker solution to
> it for 15.04. Now docker snap is not there any more. Can anyone tell
> me how to build for armhf snaps?

grab the pi2 image from:
http://people.canonical.com/~mvo/all-snaps/16/

or the pi3 image from:
http://people.canonical.com/~ogra/snappy/all-snaps/

put it on the SD, boot and log in...

run:
ubuntu@pi3:~$ sudo snap install classic --devmode --beta

classic (beta) 16.04-4 from 'canonical' installed
ubuntu@pi3:~$ sudo classic.create
Creating classic environment
Parallel unsquashfs: Using 4 processors
8313 inodes (8981 blocks) to write
...
Generating locales (this might take a while)...
Generation complete.
Processing triggers for libc-bin (2.23-0ubuntu3) ...
ubuntu@pi3:~$ sudo classic.shell
(classic)ubuntu@pi3:~$ sudo apt update
[sudo] password for ubuntu: 
Get:1 http://ports.ubuntu.com/ubuntu-ports xenial InRelease [247 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports xenial-updates InRelease
[95.7 kB]
...
All packages are up to date.
(classic)ubuntu@pi3:~$ sudo apt install snapcraft git-core
...

etc ...


ciao
oli

signature.asc
Description: This is a digitally signed message part
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Does anyone know how to build snap for ARM architecture?

2016-08-24 Thread XiaoGuo Liu
Hi Loïc,

Thanks! Yes, I want to build it for Ubuntu core series 16. I will have a
try.

Best regards,
XiaoGuo

On Wed, Aug 24, 2016 at 2:40 PM, Loïc Minier  wrote:

> Hi,
>
> On Wed, Aug 24, 2016 at 7:34 AM, XiaoGuo Liu 
> wrote:
>
>> I just now successfully used launchpad.net to build snaps for ARM
>> architecture. However, the precondition is that it works on my desktop
>> well. I am thinking whether there is an alternative way to compile snaps
>> for armhf in view of the fact that raspberry is now supporting the
>> architecture. I used to come with a docker solution to it for 15.04. Now
>> docker snap is not there any more. Can anyone tell me how to build for
>> armhf snaps?
>>
>
> Docker snap should be available for 15.04 in stable channel; it's only in
> the edge channel (and using devmode) for series 16 (install with snap
> install --devmode --edge docker). Please let me know if it's in any way
> broken or missing!
>
> Otherwise you can indeed use the classic environment, or a classic image
> as Simon mentioned.
>
> Cheers,
> - Loïc
>



-- 
XiaoGuo, Liu (刘晓国)
Mobile: +86-13911181302
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Does anyone know how to build snap for ARM architecture?

2016-08-24 Thread XiaoGuo Liu
Hi Simon,

Thanks a lot for your reply. On 15.04, I installed docker, and inside
docker, I installed a Ubuntu Server so that I can compile for armhf. A lot
of developers may not have the luxury to have two arm devices. I am
thinking your second option could be more realistic. I do not have a Ubuntu
Core device yet. So, the right command is:

$ snap install --devmode --edge classic

In this case, it enters to the classic ubuntu mode, rightt?

By the way, how to exit the mode? Previously, I saw some instructions like:

$ sudo snappy enable-classic
$ snappy shell classic
$ sudo snappy destroy-classic

I think they were for the 15.04 Ubuntu core.

Thanks & best regards,
XiaoGuo


On Wed, Aug 24, 2016 at 1:44 PM, Simon Fels 
wrote:

> On 24.08.2016 07:34, XiaoGuo Liu wrote:
> > Hi,
> >
> > I just now successfully used launchpad.net  to
> > build snaps for ARM architecture. However, the precondition is that it
> > works on my desktop well. I am thinking whether there is an alternative
> > way to compile snaps for armhf in view of the fact that raspberry is now
> > supporting the architecture. I used to come with a docker solution to it
> > for 15.04. Now docker snap is not there any more. Can anyone tell me how
> > to build for armhf snaps?
>
> I've installed Ubuntu Server for that purpose on one of my pi2 machines
> and doing all builds there. The classic snap from the store (not sure
> how far that is, but installing with snap install --devmode --edge
> classic should work) would be another possible way to build on an arm
> device as it gives you a full apt-get'able system on an all-snap one.
>
> regards,
> Simon
>
>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>



-- 
XiaoGuo, Liu (刘晓国)
Mobile: +86-13911181302
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft