cli icon indicating copy to clipboard operation
cli copied to clipboard

[FEATURE] Allow baseConfigDir to be configurable

Open jgautsch opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe.

I'm trying to run doppler run in a docker container with USER nobody. However this fails with message Doppler Error: mkdir /nonexistent/.doppler: no such file or directory. This is due to baseConfigDir = utils.HomeDir() in config.go calling out to os.UserHomeDir() which for nobody is /nonexistent (which is not writable).

Describe the solution you'd like

A flag that lets me specify what baseConfigDir should be.

Describe alternatives you've considered

My options right now are to not use nobody, or to manually set $HOME so os.UserHomeDir() returns something I've prepared to be writable (this feels hacky).

Additional context

N/A

jgautsch avatar Aug 01 '22 04:08 jgautsch