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

Pass additional start arguments with environment variable #41

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

aliismayilov
Copy link
Contributor

This PR allows configuration of the start arguments of valkey-server without having to overwrite the CMD. An example of passing arguments via VALKEY_EXTRA_FLAGS would look like this:

$ docker run --env VALKEY_EXTRA_FLAGS='--save 60 1 --loglevel warning' valkey/valkey

resolves #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]>
Copy link
Member

@roshkhatri roshkhatri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you so much for doing this.

@roshkhatri roshkhatri merged commit e1789aa into valkey-io:mainline Oct 2, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accept start arguments through ENV variable
2 participants