forked from feast-dev/feast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Change feature-server and operator base images to ubi9 (feast-…
…dev#4919) change feature-server and operator base images to ubi9 Signed-off-by: Tommy Hughes <tohughes@redhat.com>
- Loading branch information
1 parent
e01e510
commit 7fad7e3
Showing
4 changed files
with
17 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 4 additions & 15 deletions
19
sdk/python/feast/infra/feature_servers/multicloud/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,7 @@ | ||
FROM python:3.11-slim-bullseye | ||
FROM registry.access.redhat.com/ubi9/python-311:9.5 | ||
|
||
RUN pip install --no-cache-dir pip --upgrade | ||
RUN pip install --no-cache-dir "feast[aws,gcp,snowflake,redis,go,mysql,postgres,opentelemetry,grpcio,k8s,duckdb,milvus]" | ||
|
||
|
||
RUN apt update && apt install -y -V ca-certificates lsb-release wget && \ | ||
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 && \ | ||
apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && apt update && \ | ||
apt install -y \ | ||
jq \ | ||
libarrow-dev && \ | ||
apt remove -y lsb-release wget && \ | ||
apt-get clean && rm -rf /var/cache/apt/lists | ||
ARG VERSION | ||
RUN pip install "feast[aws,gcp,snowflake,redis,go,mysql,postgres,opentelemetry,grpcio,k8s,duckdb,milvus]"==${VERSION} | ||
|
||
# modify permissions to support running with a random uid | ||
RUN mkdir -m 775 /.cache | ||
RUN chmod g+w $(python3 -c "import feast.ui as _; print(_.__path__)" | tr -d "[']")/build/projects-list.json | ||
RUN chmod g+w $(python -c "import feast.ui as ui; print(ui.__path__)" | tr -d "[']")/build/projects-list.json |
33 changes: 9 additions & 24 deletions
33
sdk/python/feast/infra/feature_servers/multicloud/Dockerfile.dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,13 @@ | ||
FROM python:3.11-slim-bullseye | ||
FROM registry.access.redhat.com/ubi9/python-311:9.5 | ||
|
||
RUN pip install --no-cache-dir pip --upgrade | ||
RUN pip install --no-cache-dir pip-tools | ||
COPY --chown=default . ${APP_ROOT}/src | ||
RUN pip install --no-cache-dir pip-tools && \ | ||
make install-python-ci-dependencies && \ | ||
pip uninstall -y pip-tools | ||
|
||
RUN apt update && apt install -y -V ca-certificates lsb-release wget make git curl gcc && \ | ||
curl -sL https://deb.nodesource.com/setup_20.x | bash - && \ | ||
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 && \ | ||
apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && apt update && \ | ||
apt install -y \ | ||
jq \ | ||
nodejs \ | ||
libarrow-dev && \ | ||
npm install -g yarn && \ | ||
apt remove -y lsb-release wget && \ | ||
apt-get clean && rm -rf /var/cache/apt/lists | ||
|
||
COPY . /feast | ||
WORKDIR /feast | ||
RUN make install-python-ci-dependencies && pip cache purge | ||
ENV NPM_TOKEN '//registry.npmjs.org/:_authToken' | ||
RUN make build-ui && yarn cache clean | ||
|
||
WORKDIR / | ||
RUN npm install -S yarn | ||
ENV PATH ${PATH}:${APP_ROOT}/src/node_modules/yarn/bin | ||
RUN make build-ui && yarn cache clean --all | ||
|
||
# modify permissions to support running with a random uid | ||
RUN mkdir -m 775 /.cache | ||
RUN chmod g+w $(python3 -c "import feast.ui as _; print(_.__path__)" | tr -d "[']")/build/projects-list.json | ||
RUN chmod g+w $(python -c "import feast.ui as ui; print(ui.__path__)" | tr -d "[']")/build/projects-list.json |