manhvu
Recently, I’ve heard people using dev containers for development. I want to give it a try—has anyone here developed an Elixir app with them? Any tips or experiences would be appreciated.
I’m working on an Elixir cluster (Phoenix + Postgres) on macOS, with Kubernetes as the deployment environment.
Trending in Questions
Hello!
Suppose you are building workflow (order / task / payment) processing system with the following requirements:
Each workflow con...
New
I’m aware of 2 such projects, are there others?
git: GitHub - team-alembic/realworld: A fullstack Phoenix LiveView application with back...
New
Hi all,
I’m working on a Phoenix project where I need to make external HTTP requests and I’m trying to choose between Req and HTTPoison....
New
How do I tell Hologram not to escape HTML when substituting into templates?
{Textile.render(@product.long_description)}
escapes the HTM...
New
Hi,
we run different LLM models across a cluster, with each node loading a configurable subset. Model-specific queues let nodes consume ...
New
Hello
I’ve been coding in Elixir for almost two years now because of my current job where we implemented Elixir in our application. But ...
New
Hi all, I’m new here and would like to hear peoples views on my Elixir/Phoenix based game-engine! :smiley:
Mutonex gamedesign was finish...
New
Other Trending Topics
Hey there,
I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first.
...
New
Hi everyone :waving_hand:
I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #elixirconf-us
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #security
- #elixirconf-eu
- #api
- #forms
- #hex










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
NobbZ
I know that my co-worker is using containers for development, though I don’t know if he does it the dev-containers way.
Also I don’t know if he is active on this forum or whether he has an account.
DGollings
Personally I’d advise using something like devenv.sh instead of a dev container. Most of the advantages without the disadvantages of Docker.
Been using that for two years, a dev can switch between any project and have the exact same setup as any other dev in a matter of moments
allen-munsch
They are nice for a uniform and reproducible development environment.
They are NOT great when used in github’s browser based devcontainer environment ( extremely slow, laggy ).
I see it as trading in one set of problems for another. ( easily reproducible dev envs, for docker debugging issues )
In the same sense that having a web app inside the container network is a pain, because you’ll have a layer of problems arise from the internal DNS, networking layer, volume mount issues, files missing, etc, meaning there’s more stuff to go wrong in comparison to just having the standard stuff go wrong ( service ports not open, dependencies missing )
just my opinion, nice for initial start, less nice for long term debugging, but still okay
It’s a layer of abstraction, so it doesn’t help developers with learning how to do things manually when stuff goes wrong.
It might just be how i like things, but it really bugs me when tools get in the way, and its especially true for visual studio code and dev containers, its just a layer ( hey its great if its working, but at the same time, I don’t want to spend a few hours debugging/configuring/diagnosing the tool, the plugin, the whatever, just so i can get to the work )
rocket4ce
Hi! I just created a template for a Phoenix 1.8.3 project using Docker and Docker Compose, both for production deployment and for running Docker Compose in development mode.
Feel free to download it and adapt it to your needs. If you have any questions, you can send me a message — I’d be happy to help you with whatever you need
https://github.com/rocket4ce/template_docker_dev
allen-munsch
I’m wondering if the question was originally about this?
See:
I only did a quick skim of the repo you shared ( which looked promising for sure ), or maybe I misunderstood the original question.
I thought the original question was about
devcontainer.jsonsetup?I think it’d be straight forward to vibe into your
template_docker_devrepo?manhvu
Thank for your suggestion!
Actually, I thought about dev container because it have same env for dev & deployment environment. We have some issues in early day when we run project on multi environment (macOS, Windows).
manhvu
Thanks for sharing! It sounds like we might be creating more trouble instead of making things simpler. I’ve spent a lot of time bringing the local/dev cluster to Kubernetes, and that’s also why I started thinking about dev containers.
Currently, I use the Zed editor for development (VS Code is too slow for me). I develop with multiple nodes, so that might be an issue if I use dev containers.
manhvu
Thank you so much!
allen-munsch
Do you mean Create a Dev Container? I’m a bit confused about the original question.
Or just like containers in general? like docker containers, kubernetes pods with helm charts?
Cause then what rocket4ce posted is totally relevant.
But my recommendation would be to make it easy to run the web app locally outside of the container network, as many things can break down in the container for webapps, debugging, stdout, stderr, tty for breakpoint debugging, gdb, valgrind, delv, etc
As far as just general k8s related container tooling there’s tons of it, but several come to mind for general pod development classically I have used
minikube, more recently i’ve looked atk3s, andtilti really like the spirit of whattilthas going on, especially for any sprawling microservice architecture ( 7+ services ) ( but again a level abstraction, and yet another tool, and I haven’t used it enough to find out how much it complicates things )But this doesn’t solve the issue of installing the dev dependencies themselves, which is why I thought you were asking about
devcontainers.json, which i’d second a vote with DGollings suggestion using the nix based devenv.shmanhvu
" Do you mean Create a Dev Container? I’m a bit confused about the original question."
Sorry for not clear question, I want to ask about experience & pros/cons when work with dev container. Your answer in last post is good info for me.