From 9d8f1a861e77c23a01b0d4d7b0d75303fd82ea55 Mon Sep 17 00:00:00 2001 From: Tsotne Tabidze Date: Wed, 17 Nov 2021 15:22:01 -0800 Subject: [PATCH] Install redis extra in AWS Lambda feature server & add hiredis dependency Signed-off-by: Tsotne Tabidze --- sdk/python/feast/infra/feature_servers/aws_lambda/Dockerfile | 2 +- sdk/python/setup.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/python/feast/infra/feature_servers/aws_lambda/Dockerfile b/sdk/python/feast/infra/feature_servers/aws_lambda/Dockerfile index 3384bca293..4d46abd3db 100644 --- a/sdk/python/feast/infra/feature_servers/aws_lambda/Dockerfile +++ b/sdk/python/feast/infra/feature_servers/aws_lambda/Dockerfile @@ -9,7 +9,7 @@ COPY protos protos COPY README.md README.md # Install Feast for AWS with Lambda dependencies -RUN pip3 install -e 'sdk/python[aws]' +RUN pip3 install -e 'sdk/python[aws,redis]' RUN pip3 install -r sdk/python/feast/infra/feature_servers/aws_lambda/requirements.txt --target "${LAMBDA_TASK_ROOT}" # Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile) diff --git a/sdk/python/setup.py b/sdk/python/setup.py index 2705d66d03..29a018ca51 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -78,6 +78,7 @@ REDIS_REQUIRED = [ "redis-py-cluster==2.1.2", + "hiredis>=2.0.0", ] AWS_REQUIRED = [