Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom configuration options via env variables #142

Closed
lewisdiamond opened this issue Apr 4, 2018 · 4 comments
Closed

Allow custom configuration options via env variables #142

lewisdiamond opened this issue Apr 4, 2018 · 4 comments
Labels
Request Request for image modification or feature

Comments

@lewisdiamond
Copy link

This would make it easy to override any configuration.

For example:

CASSANDRA_CFG_auto_snapshot=false

The script that already seds the config could just check for a pattern in the environment variables and apply whatever config the user needs.

Makes it easy to work with Kubernetes, docker-compose, etc.

@wglambert wglambert added the Request Request for image modification or feature label Apr 25, 2018
@gzeskas
Copy link

gzeskas commented Aug 1, 2018

What is the status of this issue ?
It will allow for example override default Auth method, that now it's impossible to do.

@evanstucker-hates-2fa
Copy link

I need to be able to configure authentication. Can we place merge one of the various pull requests that fixes this?

@cchet
Copy link

cchet commented Sep 3, 2018

I agree, why not supporting all configuration parameters via env file, or at least a possibility to point to a custom configuration file location via env var ?

@tianon
Copy link
Member

tianon commented Oct 3, 2018

I'm sorry, but honestly if we're going to do anything more with environment variables it would likely be in the opposite direction (which we won't do due to the backwards compatibility implications) -- modifying a YAML file via shell script is very fragile, and setting complex configuration in this way is not great. For custom configuration, the only/best recommendation is to provide an appropriate cassandra.yaml file to your running instance (via a new image with FROM / COPY in a short Dockerfile, via Docker Configs, via bind mount, etc).

Closing in favor of #160 + docker-library/docs#1317.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request Request for image modification or feature
Projects
None yet
Development

No branches or pull requests

6 participants