What is the best way to develop Snappy applications for Beagle bone black due to snapcraft cross building problem. I can run my Snappy nodejs web in kvm but service is failing on BeagleBone Black

share|improve this question
up vote 1 down vote accepted

You don't mention what version of Ubuntu Core you're using, so I'll assume 15.04. In that case, consider an arm lxc container (or just normal qemu). However, if you're willing to give 16.04 a shot, flash this bbb image, SSH onto the device, and run

$ sudo snappy enable-classic

That will download some stuff, and when it's done, you can run

$ snappy shell classic

Now you're in the Classic Dimension. You can install and run snapcraft from here!

$ sudo apt-get update
$ sudo apt-get install snapcraft
$ cd my/snap/src/
$ snapcraft

That will create a snap for the right architecture.

share|improve this answer
    
Thank you...I know for classic mode but i couldnt find 16.04 image... – user3506697 Mar 16 '16 at 20:43
    
Kyle: I did add launchpad.net -> snap packages built-in support. Feel free to review my edit so that it's public :) – didrocks Mar 17 '16 at 8:14
    
Hey, thank you very much. I only got one more question if anyone of you knows. How to install bonescript (I hope you know what it is). I put bonescript as a node-package in snapcraft.yaml not in package.json because it is said to install globally. Many errors are thrown and I just want to know if anyone had the same problem. – user3506697 Mar 21 '16 at 11:30

Another option once you get your snap working on a vm or a board you can build for from your laptop, is to use https://launchpad.net snap built-in support. Push a branch to it, and you will have a create snap option, then select your Ubuntu Core series and you will get snaps built from any desired architectures!

share|improve this answer
    
Note that currently internet access (at least non-archive access) is disabled from the Launchpad snap builders, so this will only work if the Snapcraft recipe doesn't require that. They're working on adding that support (a week or two out, it seems). – Kyle Mar 17 '16 at 12:49

There are a few options there:

  • Get access to a server running Ubuntu on ARM and use snapcraft on that device
  • Install Ubuntu Mate on a Raspberry Pi and use snapcraft on that device (most popular option)
  • Use Qemu (this might need a bit of poking around)
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.