Re:Erlang/OTP by Example
by ilovecaching on Sunday October 21, 2018 @01:11AM
(#18266827)
It's a major pain to run it in containers, and that extends beyond Docker. That's why I do advocate switching away from Erlang.
Giving up on containerization isn't an option unless we want to manage two completely separate infrastructures, which we definitely do not want to do.
I think that those people I wrote about are running BEAM in containers as if it were PHP. No connections between nodes and a load balancer in front of the containers. That should leave them with the niceties of the language, most but not all of OTP, and almost none of the deployment woes people have when unfamiliar with BEAM.
So don't. Deploy using edeliver and give up docker for the Erlang / Elixir parts of the project. If you really can't, you might want to switch to a language with a runtime that plays more nicely with the container idea of the world, but I know companies that deploy Erlang with docker and they are happy with that. Purists frown at the idea but it works.