uranther
Elixir applications in Docker containers?
I have been thinking about setting up continuous delivery and I wonder:
Does running Elixir/OTP within a Docker container put you at a major disadvantage?
Will the application be able to use all the CPU cores and in general benefit from OTP’s design?
Maybe @jeffweiss can shed some light on the topic for us? ![]()
Most Liked
bitwalker
At work I run Elixir releases in Docker containers managed by Kubernetes, with two applications which are clusters of nodes. In my experience this setup works very well. Yes with containers you give up hot upgrades/downgrades, but I’m also of the opinion that unless you have a good reason to be doing hot upgrades, you don’t need the extra complexity, and Kubernetes makes blue/green and a/b style deployments easy to achieve. Without Kubernetes (or something like it), it’s probably much less interesting to use Docker.
NobbZ
A common problem I’ve read about is BEAMs hot-code-swap capabilities, which you seem to give up when using docker.
uranther
It seems like edeliver is the way to go; Plataformatec recently published a blog post about it and it looks easy to setup. It seems to me, unless you already have a Capistrano/Jenkins or Docker deployment pipeline setup, then it will be easier just to use edeliver.
Perhaps we can incorporate some of this information back into our deployment wiki thread.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









