<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Yea, we were doing the same at Heroku. A docker image that built the release and uploaded to S3 so we could deploy.<br></div>
<div> </div>
<div>It is a decent flow, but now I have just travis-ci doing the build, after tests pass, and uploading to S3. Which works nicely.<br></div>
<div> </div>
<div>I intend to document different deployment and upgrade strategies on rebar3 and relx websites eventually.<br></div>
<div> </div>
<div id="sig19496053"><div class="signature">--<br></div>
<div class="signature">Tristan Sloughter<br></div>
<div class="signature">t@crashfast.com<br></div>
<div class="signature"> </div>
</div>
<div> </div>
<div> </div>
<div>On Thu, Dec 18, 2014, at 11:29 AM, Mark Nijhof wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div>Maybe a bit more cumbersome then changing a parameter (perhaps more guaranteed success), but I used to use a docker image to create a release for Ubuntu on MacOS so the platform is the same. Now I run Ubuntu on my machine so I don't need it anymore, but it was useful.<br></div>
<div> </div>
<div>Here is a repo: <a defang_rel="noreferrer" href="https://github.com/MarkNijhof/erlang_docker">https://github.com/MarkNijhof/erlang_docker</a><br></div>
<div> </div>
<div>-Mark<br></div>
</div>
<div><div> </div>
<div defang_data-gmailquote="yes"><div>On Thu, Dec 18, 2014 at 6:14 PM, Tristan Sloughter <span dir="ltr"><<a defang_rel="noreferrer" href="mailto:t@crashfast.com" target="_blank">t@crashfast.com</a>></span> wrote:<br></div>
<blockquote defang_data-gmailquote="yes" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><u></u><br></div>
<div><div><div>You must also set: <br></div>
<div> </div>
<div>{system_libs, false}.<br></div>
<div> </div>
<div>I've been undecided on making a single config variable that says to not include erts or system libs.<br></div>
<div> </div>
<div>Or you can set it to include another erts, which could be compiled for the platform you are deploying to:<br></div>
<div> </div>
<div>{include_erts, "/path/to/erts"}.<br></div>
</div>
<div> </div>
<div>I'm working on documentation as well. Currently it is within the rebar3 project, <a defang_rel="noreferrer" href="http://www.rebar3.org/v1.0/docs/releases" target="_blank">http://www.rebar3.org/v1.0/docs/releases</a>, but is the same for using relx on its own or with <a defang_rel="noreferrer" href="http://erlang.mk" target="_blank">erlang.mk</a> (except that you have to have a relx.config and can't use profiles). But I'll be creating a relx only set of docs similar to these.<br></div>
<div> </div>
<div>Tristan<br></div>
<div><div><div> </div>
<div>On Thu, Dec 18, 2014, at 11:09 AM, Max Lapshin wrote:<br></div>
</div>
</div>
<blockquote type="cite"><div><div><div dir="ltr"><div> </div>
<div>I've made simple project with <a defang_rel="noreferrer" href="http://erlang.mk" target="_blank">erlang.mk</a> and relx.config:<br></div>
<div> </div>
<div><div>{release, {peeklio, "0.1"},<br></div>
<div> [peeklio]}.<br></div>
<div> </div>
<div>{extended_start_script, true}.<br></div>
<div> </div>
<div>{include_erts, false}.<br></div>
</div>
<div> </div>
<div> </div>
<div>I compile it under MacOS and copy _rel/... to linux. It doesn't work because<br></div>
<div>crypto library is copied with MacOS .so<br></div>
<div> </div>
<div>How should I force relx to make some output that will use erlang from system?<br></div>
<div> </div>
</div>
</div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>erlang-questions mailing list<br></div>
<div><a defang_rel="noreferrer" href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br></div>
<div><a defang_rel="noreferrer" href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br></div>
</blockquote><div> </div>
</div>
<div> </div>
<div>_______________________________________________<br></div>
<div>
erlang-questions mailing list<br></div>
<div> <a defang_rel="noreferrer" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br></div>
<div> <a defang_rel="noreferrer" href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br></div>
<div> </div>
</blockquote></div>
<div> </div>
<div> </div>
<div>-- <br></div>
<div><div dir="ltr"><div>Mark Nijhof<br></div>
<div><div>t:   <a defang_rel="noreferrer" href="https://twitter.com/MarkNijhof" target="_blank">@MarkNijhof</a><br></div>
<div>s:  marknijhof<br></div>
</div>
<div> </div>
</div>
</div>
</div>
</blockquote><div> </div>
</body>
</html>