alnoda-workspaces/workspaces/redis-workspace/README.md
2022-01-11 16:16:16 +00:00

2.9 KiB

Redis workspace

Docker image with Redis, and many other tools that make development with Redis much more convenient.

Collage

docker run --name rwid-1 -d -p 8020-8035:8020-8035 alnoda/redis-workspace

open your browser on http://localhost:8020

Why

Substitute in your development docker-compose.yaml file standard redis image with this one, add port-mapping -p 8020-8035:8020-8035. Now in addition to Redis, you've got a whole set of tools with UIs, that allow you to explore you Redis database, get and set keys, import datasets, install Redis modules and more.

List of tools

in addition - the common workspace-in-docker toolset.

Get started

Open workspace UI http://localhost:800/ for quick access to all the tools

Redis WID

Use workspace terminal http://localhost:8026/ and load some Redis datasets

git clone https://github.com/redis-developer/redis-datasets.git /home/project/redis-datasets
cat /home/project/redis-datasets/movie-database/import_actors.redis | redis-cli 
cat /home/project/redis-datasets/movie-database/import_movies.redis | redis-cli 

Open Redis Commander UI on http://localhost:8029/ and explore Redis databeses

Redis commander

Alternatively use browser-based VS-code http://localhost:8025/ with Redis extension

Theia

In the Workspace terminal launch iredis CLI, get & set keys

iredis
iredis --newbie

Iredis

Create dump of the Redis database

redis-dump-go -h localhost > /home/redis-movie-dump.resp 

Use File Browser http://localhost:8021 to get the dump to your PC