Post

Do you want to run with containers or without? How comfortable are you with server management? I use digital ocean VPS to host most things without containers and that's been mostly great. But I'm looking at moving to a more containerized setup.

0 reposts2 likes

In my dream world, deploying an app takes 0% effort and would cost nothing, but that's not possible of course, so Heroku/Fly/Render are my next best option. However, I also think that an engineer should know the basics of how to deploy an app, so that's why I'm teaching myself Kamal by Fire :D

Sorry, regarding your questions: I'd like to see a docker-less setup for once, because everything seems to be docker-based and for Elixir, it "should" be enough to copy a release to a machine and replace the old release. Personally, I'll probably still use Docker but it'd be nice to see.

I know you are already down the Kemal path rn but I just noticed a new book that covers deployment on AWS pretty thoroughly: pragprog.com/titles/beamo... The stack: * Terraform * Docker,Docker Compose, and Docker Swarm * GitHub Actions and ghcr.io * AWS and EC2 * Packer * SOPS * Grafana

pragprog.comEngineering Elixir ApplicationsDevelop, deploy, and debug BEAM applications using BEAMOps: a new paradigm that focuses on scalability, fault tolerance, and owning each software delivery step.

w/r/t the platform "... using Docker and Packer—which again are two open source platforms—means that you can reuse a lot of your knowledge in this book should you be working on a future project that’s not AWS-based." Might be worth a read as a compliment your current path or as an alternative.

I have a more involved setup for prod, but I have a simple bash script that works great when I just want to deploy elixir releases on a VPS. It does build on the actual machine, but that makes it nicely portable. I'll see if I have a moment to dig it up today.