-
Notifications
You must be signed in to change notification settings - Fork 16
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
Accept start arguments through ENV variable #18
Comments
Any update on this ? |
@roshkhatri Any thoughts on this one? |
Yes, this seems to be a great idea to enable passing flags to Sorry I could not get to this earlier. @aliismayilov, you are more than welcome to submit a PR. |
In case you'd like to configure the start arguments of `valkey-server` with environment variable, you can pass them with `VALKEY_EXTRA_FLAGS` without having to overwrite the CMD: ```console $ docker run --env VALKEY_EXTRA_FLAGS='--save 60 1 --loglevel warning' valkey/valkey ``` resolves valkey-io#18
In case you'd like to configure the start arguments of `valkey-server` with environment variable, you can pass them with `VALKEY_EXTRA_FLAGS` without having to overwrite the CMD: ```console $ docker run --env VALKEY_EXTRA_FLAGS='--save 60 1 --loglevel warning' valkey/valkey ``` resolves valkey-io#18 Signed-off-by: Ali Ismayilov <[email protected]>
Thanks for looking into it! You can check the PR when you have time 🙏 #41 |
Thank you so much! |
It seams that on windows CMD the ' needs to be " for the arguments: |
In an environment like Github Actions it is not possible to modify the start command of services. So, the only way to run valkey with different server configuration would be to maintain a derived docker image where the default CMD is overwritten or custom
valkey.conf
is packaged.It would be great to be able to pass start arguments to
valkey-server
through an environment variable and keep using the official image.For reference, I like how ubuntu/redis image has it through
REDIS_EXTRA_FLAGS
env variable. I'd be happy to submit a pull request if maintainers agree to the suggestion.The text was updated successfully, but these errors were encountered: