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

feat: set 7 and latest as 7.2 aliases #16

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions dockerhub-description.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
# Supported tags and respective `Dockerfile` links
- [`unstable`, `unstable-bookworm`](https://github.com/valkey-io/valkey-container/blob/master/unstable/debian/Dockerfile)
- [`unstable-alpine`, `unstable-alpine3.19`](https://github.com/valkey-io/valkey-container/blob/master/unstable/alpine/Dockerfile)
- [`7.2`, `7.2-bookworm`, `7.2.5`, `7.2.5-bookworm`](https://github.com/valkey-io/valkey-container/blob/master/7.2/debian/Dockerfile)
- [`7.2-alpine`, `7.2-alpine3.19`, `7.2.5-alpine`, `7.2.5-alpine3.19`](https://github.com/valkey-io/valkey-container/blob/master/7.2/alpine/Dockerfile)
- [`7`, `7-bookworm`, `7.2`, `7.2-bookworm`, `7.2.5`, `7.2.5-bookworm`, `bookworm`, `latest`](https://github.com/valkey-io/valkey-container/blob/master/7.2/debian/Dockerfile)
- [`7-alpine`, `7-alpine3.19`, `7.2-alpine`, `7.2-alpine3.19`, `7.2.5-alpine`, `7.2.5-alpine3.19`, `alpine`, `alpine3.19`](https://github.com/valkey-io/valkey-container/blob/master/7.2/alpine/Dockerfile)

What is [Valkey](https://github.com/valkey-io/valkey)?
--------------
Expand All @@ -26,21 +26,21 @@ For the ease of accessing Valkey from other containers via Docker networking, th
## start a valkey instance

```console
$ docker run --name some-valkey -d valkey/valkey:unstable
$ docker run --name some-valkey -d valkey/valkey
```

## start with persistent storage

```console
$ docker run --name some-valkey -d valkey/valkey:unstable valkey-server --save 60 1 --loglevel warning
$ docker run --name some-valkey -d valkey/valkey valkey-server --save 60 1 --loglevel warning
```

There are several different persistence strategies to choose from. This one will save a snapshot of the DB every 60 seconds if at least 1 write operation was performed (it will also lead to more logs, so the `loglevel` option may be desirable). If persistence is enabled, data is stored in the `VOLUME /data`, which can be used with `--volumes-from some-volume-container` or `-v /docker/host/dir:/data` (see [docs.docker volumes](https://docs.docker.com/engine/tutorials/dockervolumes/)).

## connecting via `valkey-cli`

```console
$ docker run -it --network some-network --rm valkey/valkey:unstable valkey-cli -h some-valkey
$ docker run -it --network some-network --rm valkey/valkey valkey-cli -h some-valkey
```

## Additionally, If you want to use your own valkey.conf ...
Expand All @@ -56,7 +56,7 @@ CMD [ "valkey-server", "/usr/local/etc/valkey/valkey.conf" ]
Alternatively, you can specify something along the same lines with `docker run` options.

```console
$ docker run -v /myvalkey/conf:/usr/local/etc/valkey --name myvalkey valkey/valkey:unstable valkey-server /usr/local/etc/valkey/valkey.conf
$ docker run -v /myvalkey/conf:/usr/local/etc/valkey --name myvalkey valkey/valkey valkey-server /usr/local/etc/valkey/valkey.conf
```

Where `/myvalkey/conf/` is a local directory containing your `valkey.conf` file. Using this method means that there is no need for you to have a Dockerfile for your valkey container.
Expand Down
2 changes: 1 addition & 1 deletion generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -Eeuo pipefail

declare -A aliases=(
[0.9]='0 latest'
[7.2]='7 latest'
)

self="$(basename "$BASH_SOURCE")"
Expand Down
Loading