-
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.
(+semver: patch) Add kvetchctl to docker image (#9)
Also fix up the docs.
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
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
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 |
---|---|---|
|
@@ -7,19 +7,32 @@ Kvetch is a small gRPC wrapper around the [Badger](https://github.com/dgraph-io/ | |
Run the Kvetch container in Docker: | ||
|
||
```bash | ||
docker run --rm -v $PWD/data:/data -e DATASTORE=/data -p 7777:7777 syncromatics/kvetch:0.4.0 | ||
docker run --rm -v $PWD/data:/data -e DATASTORE=/data -p 7777:7777 syncromatics/kvetch:v0.5.1 | ||
``` | ||
|
||
Interact with Kvetch using `kvetchctl`: | ||
|
||
```bash | ||
GO111MODULE=on go get github.com/syncromatics/kvetch/cmd/[email protected] | ||
export KVETCHCTL_ENDPOINT=localhost:7777 # host:port of Kvetch instance | ||
kvetchctl set example/1 "first value" | ||
kvetchctl set example/2 "second value" | ||
kvetchctl set example/3 "third value" | ||
kvetchctl get --prefix example/ | ||
``` | ||
|
||
It is also possible to run both `kvetch` and `kvetchctl` in the same docker container: | ||
|
||
```bash | ||
docker run -it --rm syncromatics/kvetch:v0.5.1 bash | ||
DATASTORE=/data ./kvetch & | ||
export KVETCHCTL_ENDPOINT=localhost:7777 | ||
./kvetchctl set example/1 "first value" | ||
./kvetchctl set example/2 "second value" | ||
./kvetchctl set example/3 "third value" | ||
./kvetchctl get --prefix example/ | ||
``` | ||
|
||
More `kvetchctl` documentation is available in [docs/kvetchctl](docs/kvetchctl/kvetchctl.md) | ||
|
||
## Building | ||
|