[HN Gopher] Ask HN: How can I make local dev with containers hur...
___________________________________________________________________
Ask HN: How can I make local dev with containers hurt less?
Containers are great for shipping code to Prod, but my friends and
I find them frustratingly painful for local dev: I have to wait on
an image build to do anything, it's easy to accidentally invalidate
the Docker layer build cache, I don't get my language's build cache
unless I jump through extra hoops to mount it into the build image,
I sometimes need to deal with file perm mismatches when mounting,
attaching a debugger becomes a remote debugger incantation, and
sometimes the language itself just seems to make containerization
painful (looking at you, Rust). Am I missing a tool or something?
Shouldn't I be able to run my server in my IDE and proxy it into a
Compose network or Kubernetes namespace, so I get my IDE tools for
free? Or at least have my Docker container run in "watch" mode,
where a change to one of the files the container is based on
restarts the process with the new files?
Author : mieubrisse
Score : 13 points
Date : 2024-01-11 21:48 UTC (1 hours ago)
___________________________________________________________________
(page generated 2024-01-11 23:01 UTC)