Skip to content

Commit

Permalink
Upgrade redis and set specific version
Browse files Browse the repository at this point in the history
Different versions of the redis-py library support different versions of
redis. Use an explicit version in docker-compose.yml and update python
dependency to a version which supports it.
  • Loading branch information
alastair committed Jan 31, 2025
1 parent 3e6e242 commit 1ab05b3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ services:

# Redis (caches)
redis:
image: redis:alpine
image: redis:7.4.2
command: redis-server --port 6379

# Celery broker (queue manager)
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pysolr==3.10.0b1
python-louvain==0.16 # community detection in clustering
pytz==2023.3
PyYAML==6.0.1
redis==3.2.0
redis==5.2.1
scikit-learn==1.4.1.post1 # clustering
scipy==1.12.0 # clustering
sentry-sdk[django]~=1.31
Expand Down
8 changes: 6 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ asgiref==3.7.2
# via django
asttokens==2.4.1
# via stack-data
async-timeout==5.0.1
# via redis
autopep8==1.5.7
# via
# -r requirements.in
Expand Down Expand Up @@ -279,7 +281,7 @@ pyyaml==6.0.1
# via
# -r requirements.in
# djangorestframework-yaml
redis==3.2.0
redis==5.2.1
# via
# -r requirements.in
# django-redis
Expand All @@ -302,7 +304,9 @@ scipy==1.12.0
# -r requirements.in
# scikit-learn
sentry-sdk[django]==1.39.1
# via -r requirements.in
# via
# -r requirements.in
# sentry-sdk
sgmllib3k==1.0.0
# via feedparser
six==1.16.0
Expand Down

0 comments on commit 1ab05b3

Please sign in to comment.