Skip to content

Commit ae37b20

Browse files
authored
fix: Feature-server image is missing mysql dependency for mysql registry (#3223)
* add requirements.txt and add mysqlclient package Signed-off-by: [email protected] <[email protected]> Author: [email protected] <[email protected]> Signed-off-by: [email protected] <[email protected]> * use feast[mysql] in requirements.txt Signed-off-by: [email protected] <[email protected]> * add feast components Signed-off-by: [email protected] <[email protected]> * add native libraries needed by mysqlclient Signed-off-by: [email protected] <[email protected]> Signed-off-by: [email protected] <[email protected]>
1 parent 59b4853 commit ae37b20

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

sdk/python/feast/infra/feature_servers/multicloud/Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
FROM python:3.8
22

33
RUN apt update && \
4-
apt install -y jq
4+
apt install -y \
5+
jq \
6+
python3-dev \
7+
default-libmysqlclient-dev \
8+
build-essential
9+
510
RUN pip install pip --upgrade
6-
RUN pip install "feast[aws,gcp,snowflake,redis,go]"
11+
COPY . .
12+
13+
RUN pip install -r requirements.txt
714
RUN apt update
815
RUN apt install -y -V ca-certificates lsb-release wget
916
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

sdk/python/feast/infra/feature_servers/multicloud/Dockerfile.dev

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
FROM python:3.8
22

33
RUN apt update && \
4-
apt install -y jq
4+
apt install -y \
5+
jq \
6+
python3-dev \
7+
default-libmysqlclient-dev \
8+
build-essential
9+
510
RUN pip install pip --upgrade
611
COPY . .
712

8-
RUN pip install ".[aws,gcp,snowflake,redis,go]"
13+
RUN pip install -r requirements.txt
914
RUN apt update
1015
RUN apt install -y -V ca-certificates lsb-release wget
1116
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
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
feast[aws,gcp,snowflake,redis,go,mysql]

0 commit comments

Comments
 (0)