[erlang-questions] Light-weight operating systems supporting Erlang in production web servers

Tristan Sloughter t@REDACTED
Fri Sep 15 22:48:01 CEST 2017


Same, and I have an example multi-stage docker file for building the
image on Alpine for an example project:
https://github.com/SpaceTime-IoT/presence-sample/blob/master/Dockerfile
It also uses all the options relx supports to shrink the size of the
tarball
https://github.com/SpaceTime-IoT/presence-sample/blob/master/rebar.config#L26-L34
One feature relx doesn't yet support that may help a little with size of
the unpacked release would be compressed applications (.ez). Pretty sure
that is what reltool would do by default? Not sure how much it saves. 
Also, it is possible to use docker scratch*  to have no real base image,
but with Alpine being so small I don't think it saves enough to be worth
it -- esp considering everything you then don't have, as Phil mentioned.
* And some hacks, copying over libs and a linker. Or a statically
  linked Erlang? Never done it with a statically linked Erlang, would
  that work with SSL?
--
  Tristan Sloughter
  "I am not a crackpot" - Abe Simpson
  t@REDACTED


On Fri, Sep 15, 2017, at 10:14 AM, Phil Toland wrote:
> I second the vote for Alpine Linux. My application is a mix of Erlang
> and Elixir and runs in Docker containers. I use Alpine as the base
> and I get reasonably sized containers that don't have anything I
> don't need.> 
> As a side note, it isn't just about providing the necessary support to
> run the BEAM VM. I also want enough of a familiar environment (ls, ps,
> top, nslookup/dig, netstat) to troubleshoot issues. Alpine provides
> that without the other stuff that you don't need.> 
> ~phil
> 
> 
> 
> On September 15, 2017 at 9:47:00 AM, felixgallo@REDACTED
> (felixgallo@REDACTED) wrote:>> 
>> 
>> 
>> FreeBSD and alpine Linux have both served me well. 
>> 
>> F. 
>>
>> On Sep 15, 2017, at 7:20 AM, Lloyd R. Prentice
>> <lloyd@REDACTED> wrote:>>> Hi,


>>> Joe Armstrong states in his 2003 Doctor of Technology thesis:


>>> "Our system has very little need of an operating system. We make use
>>> of very few operating system services, thus it is relatively easy to
>>> port our system to specialised environments such as embedded
>>> systems.">>> As a one-time Forth developer, software bloat offends me. I sigh and
>>> use Ubuntu on my development system out laziness and convenience.>>> But I would like my production servers to be lean and mean.


>>> What light weight open-source off-the shelf operating systems would
>>> battle-hardened Erlang gurus recommend?>>> All the best,


>>> LRP


>>> 
>>> Sent from my iPad
>>> _______________________________________________
>>> 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>> 
> _________________________________________________
> 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/20170915/2385b177/attachment.htm>


More information about the erlang-questions mailing list