-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: patch for visualization server #35
Open
i-chvets
wants to merge
5
commits into
main
Choose a base branch
from
kf-4328-fix-patch-visualisation-server
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
visualisation-server/backend/src/apiserver/visualization/requirements.in
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
bokeh | ||
gcsfs | ||
google-api-python-client | ||
itables | ||
ipykernel | ||
ipython | ||
jupyter_client | ||
nbconvert | ||
nbformat | ||
scikit_learn | ||
tornado | ||
mistune |
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,7 +1,7 @@ | ||
# Dockerfile: https://github.com/kubeflow/pipelines/blob/2.0.0-alpha.7/backend/Dockerfile.visualization | ||
# Dockerfile: https://github.com/kubeflow/pipelines/blob/2.0.0/backend/Dockerfile.visualization | ||
name: ml-pipeline-visualization-server | ||
base: ubuntu:20.04 | ||
version: '2.0.0-alpha.7_20.04_1' | ||
version: '2.0.0_20.04_1' | ||
summary: ml-pipeline/visualization-server | ||
description: | | ||
ml-pipeline/visualization-server | ||
|
@@ -13,7 +13,7 @@ run-user: _daemon_ | |
services: | ||
vis-server: | ||
override: replace | ||
command: python3.6 /server.py | ||
command: python3 /server.py | ||
startup: enabled | ||
|
||
package-repositories: | ||
|
@@ -22,20 +22,36 @@ package-repositories: | |
priority: always | ||
|
||
parts: | ||
patch: | ||
plugin: nil | ||
source: . | ||
override-build: | | ||
cp backend/src/apiserver/visualization/requirements.in ${CRAFT_PART_INSTALL}/ | ||
|
||
python: | ||
after: [patch] | ||
plugin: python | ||
source: https://github.com/kubeflow/pipelines.git | ||
source-subdir: backend/src/apiserver/visualization | ||
source-tag: 2.0.0-alpha.7 | ||
source-tag: 2.0.0 | ||
stage-packages: | ||
- python3.6-venv | ||
python-requirements: | ||
- requirements.txt | ||
- pip | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do you need pip at the end? |
||
- python3.8-venv | ||
override-build: | | ||
rm "${CRAFT_PART_INSTALL}"/usr/bin/python3.6m | ||
ln -s python3.6 "${CRAFT_PART_INSTALL}"/usr/bin/python3 | ||
craftctl default | ||
|
||
# install tensorflow* | ||
python3.8 -m pip install pip install tensorflow==2.11.1 tensorflow-metadata tensorflow-model-analysis tensorflow-data-validation tensorflow-serving-api | ||
|
||
# copy requirements.in from patch part | ||
cp /root/parts/patch/install/requirements.in backend/src/apiserver/visualization/requirements.in | ||
|
||
python3.8 -m pip install pip==22.0.4 setuptools --upgrade --quiet | ||
python3.8 -m pip install pip-tools==5.4.0 --quiet | ||
export PATH=$PATH:${CRAFT_PART_INSTALL}/usr/local/bin | ||
pip-compile --verbose backend/src/apiserver/visualization/requirements.in | ||
python3.8 -m pip install cython | ||
python3.8 -m pip install -r backend/src/apiserver/visualization/requirements.txt --no-cache-dir | ||
|
||
cp -r backend/src/apiserver/visualization/* ${CRAFT_PART_INSTALL} | ||
|
||
gcloud: | ||
plugin: nil | ||
stage-packages: | ||
|
@@ -50,10 +66,3 @@ parts: | |
tar -C "${CRAFT_PART_INSTALL}"/usr/local/gcloud -xf /tmp/google-cloud-sdk.tar.gz | ||
"${CRAFT_PART_INSTALL}"/usr/local/gcloud/google-cloud-sdk/install.sh | ||
cp backend/src/apiserver/visualization/server.py $CRAFT_PART_INSTALL | ||
|
||
files: | ||
plugin: nil | ||
source: https://github.com/kubeflow/pipelines.git | ||
source-tag: 2.0.0-alpha.7 | ||
override-build: | | ||
cp -r backend/src/apiserver/visualization/* $CRAFT_PART_INSTALL |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this, you can use the dump plugin: https://snapcraft.io/docs/dump-plugin