From 153ce3f23c45c401d97edacaf25da2dfe2e42677 Mon Sep 17 00:00:00 2001 From: Patrice Date: Thu, 15 Sep 2022 11:42:08 -0400 Subject: [PATCH] add requirements.txt and add mysqlclient package Signed-off-by: 11425176+ptran32@users.noreply.github.com <11425176+ptran32@users.noreply.github.com> Author: 11425176+ptran32@users.noreply.github.com <11425176+ptran32@users.noreply.github.com> --- sdk/python/feast/infra/feature_servers/multicloud/Dockerfile | 4 +++- .../feast/infra/feature_servers/multicloud/Dockerfile.dev | 2 +- .../feast/infra/feature_servers/multicloud/requirements.txt | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 sdk/python/feast/infra/feature_servers/multicloud/requirements.txt diff --git a/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile b/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile index b853411e27..ac5792b010 100644 --- a/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile +++ b/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile @@ -3,7 +3,9 @@ FROM python:3.8 RUN apt update && \ apt install -y jq RUN pip install pip --upgrade -RUN pip install "feast[aws,gcp,snowflake,redis,go]" +COPY . . + +RUN pip install -r requirements.txt RUN apt update RUN apt install -y -V ca-certificates lsb-release wget RUN wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb diff --git a/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile.dev b/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile.dev index f1dd7cc390..ac5792b010 100644 --- a/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile.dev +++ b/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile.dev @@ -5,7 +5,7 @@ RUN apt update && \ RUN pip install pip --upgrade COPY . . -RUN pip install ".[aws,gcp,snowflake,redis,go]" +RUN pip install -r requirements.txt RUN apt update RUN apt install -y -V ca-certificates lsb-release wget RUN wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb diff --git a/sdk/python/feast/infra/feature_servers/multicloud/requirements.txt b/sdk/python/feast/infra/feature_servers/multicloud/requirements.txt new file mode 100644 index 0000000000..1a970bb17d --- /dev/null +++ b/sdk/python/feast/infra/feature_servers/multicloud/requirements.txt @@ -0,0 +1,2 @@ +mysqlclient +feast[aws,gcp,snowflake,redis,go]