-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use locally built feast-ui package in dev feature-server image (#…
…4998) force feast-ui to be built locally Signed-off-by: Tommy Hughes <[email protected]>
- Loading branch information
1 parent
5ef3738
commit 0145e55
Showing
1 changed file
with
21 additions
and
4 deletions.
There are no files selected for viewing
25 changes: 21 additions & 4 deletions
25
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,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 |