Skip to content

Commit

Permalink
fix: Use locally built feast-ui package in dev feature-server image (#…
Browse files Browse the repository at this point in the history
…4998)

force feast-ui to be built locally

Signed-off-by: Tommy Hughes <[email protected]>
  • Loading branch information
tchughesiv authored Jan 31, 2025
1 parent 5ef3738 commit 0145e55
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions sdk/python/feast/infra/feature_servers/multicloud/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
FROM registry.access.redhat.com/ubi8/python-311:1

USER 0
RUN npm install -g yarn yalc && rm -rf .npm
USER default

COPY --chown=default . ${APP_ROOT}/src

WORKDIR ${APP_ROOT}/src/ui
RUN npm install && \
npm run build:lib-dev && \
rm -rf node_modules && \
npm cache clean --force

WORKDIR ${APP_ROOT}/src/sdk/python/feast/ui
RUN yalc add @feast-dev/feast-ui && \
git diff package.json && \
yarn install && \
npm run build --omit=dev && \
rm -rf node_modules && \
npm cache clean --force && \
yarn cache clean --all

WORKDIR ${APP_ROOT}/src
RUN pip install --no-cache-dir pip-tools && \
make install-python-ci-dependencies && \
pip uninstall -y pip-tools

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 chmod g+w $(python -c "import feast.ui as ui; print(ui.__path__)" | tr -d "[']")/build/projects-list.json

0 comments on commit 0145e55

Please sign in to comment.