Skip to content

Commit

Permalink
Simplify demo setup
Browse files Browse the repository at this point in the history
  • Loading branch information
banker committed Jun 6, 2023
1 parent 7f7ba52 commit 316f75a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions demo-cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

docker exec -e "TERM=xterm-256color" -it 65c /usr/local/bin/smart-cache-cli
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ services:
- 3000:3000

redis:
image: redis/redis-stack-server
image: redis-server-with-cache-cli
build:
context: ./docker/redis
dockerfile: ./Dockerfile
hostname: redis
container_name: redis
container_name: redis-server-with-cache-cli
ports:
- 6379:6379

Expand Down
Binary file modified docker/grafana/grafana.db
Binary file not shown.
8 changes: 8 additions & 0 deletions docker/redis/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM redis/redis-stack-server

RUN apt update
RUN apt-get -y install wget
RUN wget https://github.com/redis-field-engineering/redis-smart-cache-cli/releases/download/v0.0.10/redis-smart-cache-cli_Linux_x86_64.tar.gz
RUN tar -xzvf redis-smart-cache-cli_Linux_x86_64.tar.gz
RUN cp smart-cache-cli /usr/local/bin
RUN rm redis-smart-cache-cli_Linux_x86_64.tar.gz

0 comments on commit 316f75a

Please sign in to comment.