[erlang-questions] Making a minimal distributable program in Erlang.
Ali Sabil
ali.sabil@REDACTED
Wed Sep 20 12:40:20 CEST 2017
Like this one: https://hub.docker.com/_/erlang/ ?
On Wed, Sep 20, 2017 at 12:35 PM, Stu Bailey <stu.bailey@REDACTED> wrote:
> "As an afterthought - it would be *very nice* to have a program which
> makes a minimal distributable program for Windows/Mac/Linux."
>
> Joe,
>
> It would be nice if Erlang had an official Docker image (e.g.
> https://docs.docker.com/docker-for-windows/ ). Such an image would
> fulfill exactly your requirement. Here are the official Docker images for
> other languagesl:
>
> https://hub.docker.com/_/python/
> https://hub.docker.com/_/golang/
> https://hub.docker.com/_/rust/
> https://hub.docker.com/_/clojure/
> https://hub.docker.com/_/java/
>
> I guess this is the start:
>
> https://github.com/erlang/docker-erlang
>
> Note this work:
>
> https://store.docker.com/community/images/library/rabbitmq
>
> Stu
>
> On Wed, Sep 20, 2017 at 3:22 AM, Joe Armstrong <erlang@REDACTED> wrote:
>
>> Hello,
>>
>> I want to ship Erlang as a component inside a
>> larger application to run on Windows
>>
>> Assuming the larger application has reserved space
>> for Erlang at some destination directory $DEST then I need
>> to copy a subset of the files from a standard
>> distribution into $DEST.
>>
>> On a Mac I have reduced the number of necessary files to 11
>> (could be 10 if you remove start.script)
>>
>> ├── COPYRIGHT
>> ├── bin
>> │ ├── beam.smp
>> │ ├── erl_child_setup
>> │ ├── erlexec
>> │ ├── start.boot
>> │ └── start.script
>> ├── erl
>> └── lib
>> ├── compiler-7.0.2.ez
>> ├── kernel-5.1.ez
>> ├── sasl-3.0.1.ez
>> └── stdlib-3.1.ez
>>
>> I've thrown away all the libraries apart from compiler etc.
>>
>> I'm trying (unsuccessfully) to do the same thing on windows - does anybody
>> know how to make a minimal Erlang for windows? - which files must be
>> copied and which files must be patched????
>>
>> As an afterthought - it would be *very nice* to have a program which
>> makes a minimal distributable program for Windows/Mac/Linux.
>>
>> I was thinking along the lines of running the program twice - in run one
>> I'd trace all calls to discover which modules were actually called, then
>> from this information build a minimal distributable program.
>>
>> Cheers
>>
>> /Joe
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170920/8bab0762/attachment.htm>
More information about the erlang-questions
mailing list