devbox icon indicating copy to clipboard operation
devbox copied to clipboard

Override configuration

Open JoyceBabu opened this issue 1 year ago • 1 comments

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

JoyceBabu avatar Apr 27 '24 08:04 JoyceBabu

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.

weilbith avatar Jun 26 '24 09:06 weilbith