forked from jetify-com/devbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary Added a plugin for Valkey, including environment variables, default conf file, and a service Added Docs And Example Files Addresses jetify-com#2153 ## How was it tested? - compile - `valkey-server $VALKEY_CONF --port $VALKEY_PORT` --------- Co-authored-by: John Lago <750845+Lagoja@users.noreply.github.com>
- Loading branch information
1 parent
31361ee
commit fd82154
Showing
11 changed files
with
2,797 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
title: Valkey | ||
--- | ||
|
||
Valkey can be configured automatically using Devbox's built in Valkey plugin. This plugin will activate automatically when you install Valkey using `devbox add valkey` | ||
|
||
[**Example Repo**](https://github.com/jetify-com/devbox/tree/main/examples/databases/valkey) | ||
|
||
[![Open In Devbox.sh](https://www.jetify.com/img/devbox/open-in-devbox.svg)](https://devbox.sh/open/templates/valkey) | ||
|
||
## Adding Valkey to your shell | ||
|
||
`devbox add valkey`, or in your Devbox.json | ||
|
||
```json | ||
"packages": [ | ||
"valkey@latest " | ||
], | ||
``` | ||
|
||
This will install the latest version of Valkey. You can find other installable versions of Valkey by running `devbox search valkey`. You can also view the available versions on [Nixhub](https://www.nixhub.io/packages/valkey) | ||
|
||
## Valkey Plugin Details | ||
|
||
The Valkey plugin will automatically create the following configuration when you install Valkey with `devbox add` | ||
|
||
### Services | ||
|
||
* valkey | ||
|
||
Use `devbox services start|stop [service]` to interact with services | ||
|
||
### Helper Files | ||
|
||
The following helper files will be created in your project directory: | ||
|
||
* \{PROJECT_DIR\}/devbox.d/valkey/valkey.conf | ||
|
||
|
||
### Environment Variables | ||
|
||
```bash | ||
VALKEY_PORT=6379 | ||
VALKEY_CONF=./devbox.d/valkey/valkey.conf | ||
``` | ||
|
||
### Notes | ||
|
||
Running `devbox services start valkey` will start valkey as a daemon in the background. | ||
|
||
You can manually start Valkey in the foreground by running `valkey-server $VALKEY_CONF --port $VALKEY_PORT`. | ||
|
||
Logs, pidfile, and data dumps are stored in `.devbox/virtenv/valkey`. You can change this by modifying the `dir` directive in `devbox.d/valkey/valkey.conf` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# valkey-7.2.5 | ||
|
||
## valkey Notes | ||
|
||
Running `devbox services start valkey` will start valkey as a daemon in the background. | ||
|
||
You can manually start Valkey in the foreground by running `valkey-server $VALKEY_CONF --port $VALKEY_PORT`. | ||
|
||
Logs, pidfile, and data dumps are stored in `.devbox/virtenv/valkey`. You can change this by modifying the `dir` directive in `devbox.d/valkey/valkey.conf` | ||
|
||
## Services | ||
|
||
* valkey | ||
|
||
Use `devbox services start|stop [service]` to interact with services | ||
|
||
## This plugin creates the following helper files | ||
|
||
* ./devbox.d/valkey/valkey.conf | ||
|
||
## This plugin sets the following environment variables | ||
|
||
* VALKEY_PORT=6379 | ||
* VALKEY_CONF=./devbox.d/valkey/valkey.conf | ||
|
||
To show this information, run `devbox info valkey` |
Oops, something went wrong.