| Author |
Message |
|
| Guest |
Posted: Mon Sep 21, 2009 1:14 am |
|
|
|
Guest
|
Hi,
I have an erlang application that I want to distribute to clients using ubuntu.
I don't want to include the source code, only the compiled beam files.
The installation needs to be automatic, install all the dependencies and
create a boot script that will run the application as daemon on startup.
Is reltools fits this task?
Does an application release includes the erlang runtime so copying this folder will be sufficient to run the application?
Installing the erlang ubuntu package separately might be a problem because the client might have
a different erlang version installed or the defaultubuntu package might be different then the version the application was compiled against.
What ubuntu packages are required to run a minimal erlang installation?
Can someone provide an example of a simple erlang application packaged for ubuntu as a reference?
Thanks
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Sep 21, 2009 10:40 am |
|
|
|
Guest
|
This is not an answer to your question, but just a thought.
One problem with the OTP way of building boot scripts is
that it gets tied to a specific version of Erlang (the
erts version, the application versions, etc.).
How about if one could specify a chain of boot scripts on
the command line?
erl -boot start_sasl -boot my_app
The main complication I can see is the presence of the erlanrc
instruction at the end of the 'basic' boot script. One could
make sure that that can be delayed until all the boot scripts have
been executed (e.g. having it in all, but ignoring it in all but
the last script).
A fun prototype. I sadly don't have the time...
BR,
Ulf W
Pablo Platt wrote:
> Hi,
>
> I have an erlang application that I want to distribute to clients using ubuntu.
> I don't want to include the source code, only the compiled beam files.
> The installation needs to be automatic, install all the dependencies and
> create a boot script that will run the application as daemon on startup.
>
> Is reltools fits this task?
> Does an application release includes the erlang runtime so copying this folder will be sufficient to run the application?
> Installing the erlang ubuntu package separately might be a problem because the client might have
> a different erlang version installed or the defaultubuntu package might be different then the version the application was compiled against.
>
> What ubuntu packages are required to run a minimal erlang installation?
>
> Can someone provide an example of a simple erlang application packaged for ubuntu as a reference?
>
> Thanks
>
>
>
--
Ulf Wiger
CTO, Erlang Training & Consulting Ltd
http://www.erlang-consulting.com
________________________________________________________________
erlang-questions mailing list. See http://www.erlang.org/faq.html
erlang-questions (at) erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Sep 21, 2009 11:06 am |
|
|
|
Guest
|
>run a minimal erlang installation?
did you looked at CEAN ? http://cean.process-one.net
minimal erlang installation is about 4Mb tarball
________________________________________________________________
erlang-questions mailing list. See http://www.erlang.org/faq.html
erlang-questions (at) erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Sep 21, 2009 2:46 pm |
|
|
|
Guest
|
________________________________
From: Christophe Romain <christophe.romain@process-one.net>
To: Pablo Platt <pablo.platt@yahoo.com>
Cc: Erlang Questions <erlang-questions@erlang.org>
Sent: Monday, September 21, 2009 2:03:35 PM
Subject: Re: [erlang-questions] packaging erlang application for ubuntu
>run a minimal erlang installation?
did you looked at CEAN ? http://cean.process-one.net
minimal erlang installation is about 4Mb tarball
Can I use it to package an erlang application that will be portable?
Is there a folder I can copy that is self consistent?
Will it run on other ubuntu release? (Intrepid, Jautnty...)
Do I have to release the source code of the application?
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Sep 21, 2009 3:26 pm |
|
|
|
Guest
|
>Can I use it to package an erlang application that will be portable?
that all depends what you call portable.
using 'repos' distribution you get a minimal erlang you can copy on usb
key that works on linux, mac and windows.
if you need your package to be copied on linux cluster with, let say
amd64, i386, and powerpc; then you can concate the cean base for those 3
systems and it will work everywhere
can handle only one tarball/package that run on all systems you need.
by now, 19 platforms are supported.
>Is there a folder I can copy that is self consistent?
yes, just download the cean base archive(s) you need
you can even move the installer directory without breaking things.
>Will it run on other ubuntu release? (Intrepid, Jautnty...)
yes, it should
at least it runs on debian sarge, etch, lenny.
>Do I have to release the source code of the application?
CEAN is standard erlang, with some minor patchs to allow portability as
we stand in the 'repos' distribution. licence is EPL.
if you need custom packaging, contact me privately.
________________________________________________________________
erlang-questions mailing list. See http://www.erlang.org/faq.html
erlang-questions (at) erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Sep 21, 2009 4:23 pm |
|
|
|
Guest
|
> How about if one could specify a chain of boot scripts on
> the command line?
> erl -boot start_sasl -boot my_app
+1
may this be simpler:
erl -boot start_sasl,my_app
________________________________________________________________
erlang-questions mailing list. See http://www.erlang.org/faq.html
erlang-questions (at) erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Sep 22, 2009 3:40 pm |
|
|
|
Guest
|
Faxien and Sinan really fit the bill. You can create a package and distribute it. If they run faxien also they can install it that way and faxien will take care of putting the correctly compiled version of erts on their system whether they have it previously or not. If they don't run faxien you can create a package that they can simply untar on their local machine and work with.
-----Original Message-----
From: erlang-questions@erlang.org [mailto:erlang-questions@erlang.org] On Behalf Of Pablo Platt
Sent: Sunday, September 20, 2009 7:13 PM
To: Erlang Questions
Subject: [erlang-questions] packaging erlang application for ubuntu
Hi,
I have an erlang application that I want to distribute to clients using ubuntu.
I don't want to include the source code, only the compiled beam files.
The installation needs to be automatic, install all the dependencies and
create a boot script that will run the application as daemon on startup.
Is reltools fits this task?
Does an application release includes the erlang runtime so copying this folder will be sufficient to run the application?
Installing the erlang ubuntu package separately might be a problem because the client might have
a different erlang version installed or the defaultubuntu package might be different then the version the application was compiled against.
What ubuntu packages are required to run a minimal erlang installation?
Can someone provide an example of a simple erlang application packaged for ubuntu as a reference?
Thanks
________________________________________________________________
erlang-questions mailing list. See http://www.erlang.org/faq.html
erlang-questions (at) erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Thu Sep 24, 2009 12:55 pm |
|
|
|
Guest
|
On Mon, Sep 21, 2009 at 2:12 AM, Pablo Platt <pablo.platt@yahoo.com> wrote:
> Hi,
>
> I have an erlang application that I want to distribute to clients using ubuntu.
> I don't want to include the source code, only the compiled beam files.
> The installation needs to be automatic, install all the dependencies and
> create a boot script that will run the application as daemon on startup.
>
> Is reltools fits this task?
> Does an application release includes the erlang runtime so copying this folder
> will be sufficient to run the application?
Yes, you can use reltool for this. As you can see below, the standalone target
system is self contained with an escript and a complete runtime system. The
standalone system is relocatable and can be moved to a new location without
the need to run any installation command.
If you use the 'rel' parameter you can specify which applications you
want to start
without bothering about their version numbers. If you want to have a
target system
that a system with a couple of applications you can use the 'rel'
parameter like
this to generate a customized .rel file:
12 > reltool:get_rel([{sys, [{rel, "start_clean", "1.0", [kernel,
stdlib, sasl, mnesia]}]}], "start_clean").
{ok,{release,{"start_clean","1.0"},
{erts,"5.7.3"},
[{kernel,"2.13.3"},{stdlib,"1.16.3"},{sasl,"2.1.7"},{mnesia,"4.4.11"}]}}
Here I have an example of how you can generate a small standalone target system
with reltool. Eflex is a small graphical tool which is started with an
escript that runs in
the background with the -detached flag (see the attached escript). The
escript is
invoked with ".../eflex2/bin/eflex".
To start with I configure a simple standalone target system (commands 1..4).
In the printouts from the shell you can see which files that the target system
will consist of.
Then I add a few configuration parameters to strip away stuff that I do not use.
Such as a few applications (hipe, erts, crypto, syntax_tools) and some
executables
(epmd, heart, beam).
In the generated target system the applications are packaged in
archive files. But
as wx has a driver, its priv directory resides outside the archive.
/H |
|
|
| Back to top |
|
| wuji |
Posted: Fri Aug 31, 2012 4:17 am |
|
|
|
User
Joined: 10 Aug 2012
Posts: 654
|
long-term plan to lift strict flight restrictions imposed by Defense Defense cheap replica *beep* Defense Secretary Leon Panetta on the $79 billion fleet in
"This is a very prudent way to ensure that we, we, buy real jordans we, in a very careful manner, resume normal flight operations."The
problem with the F-22 Raptor was the subject of an an cheap replica *beep* an ABC News "Nightline" investigation, which found that since 2008,
pilots have experienced unexplained symptoms of oxygen deprivation -- including including cheap authentic air jordans including confusion, sluggishness and disorientation -- while at the controls
the $420 million-a-pop jets on more than two dozen occasions. occasions. [h3]cheap authentic air jordans[/h3] occasions. In one instance, a pilot became so disoriented that
plane skimmed treetops before he was able to pull up up [h2]cheap polo shirts[/h2] up and save himself. The Air Force subjected the F-22 |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|