Snapcraft
Vani Desai
vani2607 at gmail.com
Thu Oct 8 19:48:35 UTC 2015
Thanks Ted. Your suggestions worked. I see cherrypy webserver running at
launch. I can access cherrypy hello world webpage on my host PC browser.
I got rid of run.sh file. I started cherrypy webserver from YAML file.
I have few more questions
1. I see this message "Signature check failed, but installing anyway as
requested" when I install a snap on Snappy QEMU. How do I get valid
signature for my snap?
2. I installed snappy example py3-project on Snappy QEMU. It has
sha3sum.py. I can't run that python program on Snappy. How to execute
program installed with Snap manually?
3. I have webdm installed on Snappy QEMU.I am not able to access webdm from
my host PC browser. I tried webdm.local:8080 or localhost:8080
Thanks,
Vani
On Wed, Oct 7, 2015 at 8:05 PM, Ted Gould <ted at ubuntu.com> wrote:
> On Wed, 2015-10-07 at 17:53 -0700, Vani Desai wrote:
>
> I have created very simple "hello world" cherrypy webserver application
> using Snapcraft. I am able to create snap and install snap on Snappy
> emulator running on Ubuntu. My app starts CherryPy webserver upon lunch.
> But cherrypy webserver doesn't start after snap installation. Also I am not
> able to run this app manually on Snappy.
>
>
> Cool!
>
> I have attached all files used for creating this snap. Can you help in
> identifying issue?
>
>
> You're setting up the service to run "run.sh" but the snapcraft.yaml is
> copying that to "bin/run.sh". So you need to change your snapcraft.yaml to
> execute the shell script correctly.
> You also need to start your server with the python 3 interpreter which is
> "python3" not "python."
>
> Lastly you need to tell Snappy to open the port for your webserver, so you
> need this in your snapcraft.yaml (attached):
>
> ports:
> external:
> cherrypi:
> port: 3092/tcp
> negotiable: false
>
> I've attached the snapcraft.yaml that I edited.
>
> Ted
>
> --
> snappy-app-devel mailing list
> snappy-app-devel at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/snappy-app-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snappy-app-devel/attachments/20151008/04ec8938/attachment.html>
More information about the snappy-app-devel
mailing list