jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
7.83k stars 187 forks source link

Override configuration #2029

Open JoyceBabu opened 2 months ago

JoyceBabu commented 2 months ago

What problem are you trying to solve?

I would like to override the environment variables passed to a service.

What solution would you like?

It would be nice if there was an easy way to override the configuration locally, without modifying the base configuration file directly. For example, docker-compose allows overriding values in docker-compose.yml by creating an override file docker-compose.override.yml

Alternatives you've considered

I have tried passing --env-file .env.devbox to devbox generate direnv and it looks like the environment variables defined in direnv shell are not used by process-compose.

### Tasks
weilbith commented 1 week ago

I'm in search for a feature like that. I like to convince more projects and repositories to use a strong and shared toolchain specification. Devbox is great for that. But additionally I like to use Devbox for my local development environment setup for these projects. Like adding a language server for example or have a hook that sets-up shell completion for my very own shell. These are things I don't wanna or simply can't put into the shared Devbox configuration. Especially when you also use Devbox for your pipeline too.