Skip to content

Commit 8130a8a

Browse files
committed
added redis cache docker container for development
1 parent 6c5cb40 commit 8130a8a

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

cache/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM redis:latest
2+
ENTRYPOINT ["redis-server"]

cache/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Redis Cache
2+
3+
This is a dockerfile to setup Redish for caching for development purposes. You can opt out of using the Redis cache by changing `CACHE_USE_REDIS` flag on `server/environments/dev.env` file.
4+
5+
### Requirements
6+
1. docker
7+
8+
### Setup
9+
1. Build the docker image with `./build.sh`.
10+
2. Start the docker image with `./start.sh`.

cache/build.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
docker build . -t latest/vsp_cache

cache/start.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
docker run \
4+
--name vsp_cache \
5+
-p 6379:6379 \
6+
-d \
7+
latest/vsp_cache

0 commit comments

Comments
 (0)