A noob trying to make an etherpad-lite snap with lots of questions
Sergio Schvezov
sergio.schvezov at canonical.com
Tue Feb 16 15:06:33 UTC 2016
El lunes, 15 de febrero de 2016 06h'09:39 PST, Winael
<vinzjobard at ubuntu.com> escribió:
> Hi Every one,
Hello Winael!
> Let's me introduce my self, I a totaly noob in all this snappy apps
> development. For now, I was more an advocate, I do several talk about
> snappy and how it will imapct the world, but I never, never tried to do my
> own things on it.
>
> Few months ago, I thank that it could be nice to have a box with serevarl
> services we found in the framacould project (
> https://degooglisons-internet.org/liste), but for now, I'm still waiting
> that someone does it.
>
> So I decided to try to do it by myself. If I could do it, lots of people
> can do it too
I am glad you decided to take the plunge and dive into this exciting new
world!
> And I decide to share my experience on my blog. For now the post is still
> in draft (
> https://github.com/Winael/Notes/blob/master/md/Ubuntu/Snappy/how-to-build-a-snapp-from-a-github-project-by-a-noob-for-the-noobs.md
> )
>
> So now those are my questions
>
> 1) In the installDeps.sh script (
> https://github.com/ether/etherpad-lite/blob/develop/bin/installDeps.sh),
> there several hash command to test if some dependancies are installed. I
> add them in the stage-packages sections of etherpad-lite parts, but does it
> mean that I need to add the binaries in my snapp ? And how could I do it,
> because I notice there are in the parts/etherpad-lite/ubuntu/downloaded
> forlder as deb ?
To be fair, the etherpad lite install script is not well suited for
snapcraft's built in plugins.To make this work for this specific script
you'd need to look into creating a custom plugin. That said, our nodejs
plugin is well suited for snapcraft as someone on this list has already
been succesful in getting etherpad lite going.
I won't spill the beans just yet just in case you want a walkthrough:-)
> 2) I have several bin folder (stage/bin, parts/etherpad-lite/src/bin, ...).
> Do I need to create a filesets to group all my binairies folder ?
By default everything will go in, filesets and the 'stage' and
'snap'keyword are interesting when you want to trim things or reduce the
share fileset with other parts you might be building.
> 3) Do I need to rewrite the run.sh script to adapt it to my snapp ?
>
> I know that could be very basics questions, but I'm a very beginner, and
> I'm very lost
>
> Thx for your help. And i hope that my shared experience could help other
> beginners to join us
We can expand on this if you want; in theory no, but I haven't looked at
the script in detail yet.
Cheers
Sergio
--
Enviado con Dekko desde mi dispositivo Ubuntu
More information about the snappy-app-devel
mailing list