From 7fb0f3f89f3c0e43876edbc9928f4dc768638b9e Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Mon, 22 Nov 2021 11:06:12 -0800 Subject: [PATCH] [redis-py]: Fix redis version during pip3 install (#9329) The recent release of redis 4.0.0 or newer (for python3) breaks sonic-config-engine unit test. Fix to last known good version. ref: https://pypi.org/project/redis/#history --- sonic-slave-buster/Dockerfile.j2 | 2 +- sonic-slave-stretch/Dockerfile.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic-slave-buster/Dockerfile.j2 b/sonic-slave-buster/Dockerfile.j2 index 5db98a58c8..3e8dad321c 100644 --- a/sonic-slave-buster/Dockerfile.j2 +++ b/sonic-slave-buster/Dockerfile.j2 @@ -426,7 +426,7 @@ RUN pip2 install "lxml==4.6.2" RUN pip3 install "lxml==4.6.2" # For sonic-platform-common testing -RUN pip3 install redis +RUN pip3 install redis==3.5.3 # For vs image build RUN pip2 install pexpect==4.6.0 diff --git a/sonic-slave-stretch/Dockerfile.j2 b/sonic-slave-stretch/Dockerfile.j2 index 5933bc4ea0..2acaaf6c9c 100644 --- a/sonic-slave-stretch/Dockerfile.j2 +++ b/sonic-slave-stretch/Dockerfile.j2 @@ -354,7 +354,7 @@ RUN pip3 install "lxml==4.6.2" # For sonic-platform-common testing -RUN pip3 install redis +RUN pip3 install redis==3.5.3 # For vs image build RUN pip2 install pexpect==4.6.0