Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use locally built feast-ui package in dev feature-server image #4998

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading