[erlang-questions] Bundling C dependencies with a release

Nathan Fiedler nathanfiedler@REDACTED
Tue Oct 25 17:39:08 CEST 2016


I don't know about best practices, but compiling the code and copying it to
the "priv" directory seems to work well. The pre_hooks in rebar are very
helpful for this. By using the priv dir, everything gets included as part
of the release, at least with rebar3. Just zip up or copy the "rel"
directory under _build and you're good to go.

Hope that helps.

n


On Tue, Oct 25, 2016 at 5:35 AM, Radu Popescu <i.radu.popescu@REDACTED>
wrote:

> Hello!
>
> I'm developing an Erlang application which is structured as an OTP
> release. It contains OTP applications and some native executables (written
> in C++). One of the Erlang dependencies also requires libsodium.
>
> When the time will come to deploy this - mostly to RH and Ubuntu/Debian
> servers, the idea is to have something as self-contained as possible.
>
> Are there best practices for how to handle C library dependencies for an
> Erlang/OTP release? I appreciate any advice.
>
> Thanks!
>
> Best regards,
> Radu
> _______________________________________________
> 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/20161025/62916d9e/attachment.htm>


More information about the erlang-questions mailing list