<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hello,</div><div class=""><br class=""></div><div class="">The private folder of applications are automatically added to the release. </div><div class="">There are not need to add an overlay. You can move your root /priv folder under you application x.</div><div class=""><br class=""></div><div class="">Best Regards,</div><div class="">Dmitry</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On 8 Nov 2017, at 0.25, Alexander Petrovsky <<a href="mailto:askjuise@gmail.com" class="">askjuise@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi!<div class=""><br class=""></div><div class="">I try to prepare erlang release, with follow config:</div><div class=""><br class=""></div><div class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">{relx, [<br class="">    {release, {x, "0.0.1"},<br class="">         [x,<br class="">          sasl]},<br class="">    {overlay, [<br class="">         {copy, "priv/*", "priv/"}<br class="">    ...<br class="">./rebar3 release</blockquote><div class=""><br class=""></div><div class="">But, relx doesn't support wildcard. I'm try the follow config:</div><div class=""><br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">    ...<br class="">         {copy, "priv/", "priv/"}<br class="">    ...<br class="">./rebar3 release</blockquote><div class=""><br class=""></div><div class="">Unfortunately, the result will be <i class="">priv/priv</i>. But when I do:</div><div class=""><br class=""></div><div class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">    ...<br class="">         {copy, "priv/", "./"}<br class="">    ...<br class="">./rebar3 release</blockquote></div><div class=""><br class=""></div><div class="">Everything goes without problems. But, when I'm try to make tarball from that here problems come: the <i class="">./rebar3 tar</i> goes to endless loop continuously add <u class=""><i class="">x-0.0.1.tar.gz</i></u> to himself. </div><div class=""><br class=""></div><div class="">The <i class="">./rebar3 tar</i> keep archive tar.gz file in the same directory with generated erlang release files. So, when rebar3 sees mappings like {copy, "priv/", "./"} it's transforms them into something like</div><div class=""><br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[{"./",           "/Users/juise/Documents/x/_build/default/rel/x"},<br class=""> {"log/sasl", "/Users/juise/Documents/x/_build/default/rel/x/log/sasl"}]</blockquote><div class=""><br class=""></div><div class="">which cause endless loop.</div><div class=""><br class=""></div><div class="">I see multiple solutions:</div><div class="">- ./rebar3 tar must archive all files in release directory, and not pay attention to overlay directive;</div><div class="">- relx should ignore mappings like {"./", "/Users/juise/Documents/x/_build/default/rel/x"};</div><div class="">- erl_tar should explicitly ignore result archive and don't add to himself.</div><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class="">Петровский Александр / Alexander Petrovsky,<br class=""><br class="">Skype: askjuise<br class=""><div class="">Phone: +7 931 9877991<div class=""><br class=""></div></div></div></div></div></div>
</div></div>
_______________________________________________<br class="">erlang-questions mailing list<br class=""><a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">http://erlang.org/mailman/listinfo/erlang-questions<br class=""></div></blockquote></div><br class=""></body></html>