-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11274 from Dentrax/visualization-server-remastered
Add visualization-server for kubeflow-pipeline
- Loading branch information
Showing
2 changed files
with
834 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package: | ||
name: kubeflow-pipelines-visualization-server | ||
version: 2.0.5 | ||
epoch: 0 | ||
description: Machine Learning Pipelines for Kubeflow | ||
copyright: | ||
- license: Apache-2.0 | ||
target-architecture: | ||
- x86_64 # Since tensorflow-data-validation is not available for aaarch64 yet | ||
dependencies: | ||
runtime: | ||
- py3.10-google-cloud-sdk | ||
- python-3.10 | ||
|
||
environment: | ||
contents: | ||
packages: | ||
- build-base | ||
- busybox | ||
- ca-certificates-bundle | ||
- py3.10-crcmod | ||
- py3.10-pip | ||
- python-3.10 | ||
- python-3.10-dev | ||
|
||
pipeline: | ||
- uses: git-checkout | ||
with: | ||
repository: https://github.com/kubeflow/pipelines | ||
tag: ${{package.version}} | ||
expected-commit: c5658f09ec38e82730a8eca0a1aabf0876087eec | ||
|
||
- uses: patch | ||
with: | ||
patches: bump.patch | ||
|
||
- runs: | | ||
ln -sf /usr/bin/python3.10 /usr/bin/python3 | ||
mkdir -p ${{targets.destdir}}/usr/share/app | ||
cp -r backend/src/apiserver/visualization/* ${{targets.destdir}}/usr/share/app/ | ||
cd ${{targets.destdir}}/usr/share/app/ | ||
sed -i 's/tensorflow==/#tensorflow==/g' requirements.txt | ||
pip install --root=${{targets.destdir}} --prefix=/usr -r requirements.txt | ||
find ${{targets.destdir}} -name "*.pyc" -exec rm -rf '{}' + | ||
# "collections" is deprecated in Python 3.10, use "collections.abc" instead | ||
sed -i 's/collections/collections.abc/g' ${{targets.destdir}}/usr/lib/python3.10/site-packages/gcsfs/mapping.py | ||
# CVE-2023-47248, GHSA-5wvp-7f3h-6wmm | ||
pip install pyarrow-hotfix | ||
sed -i '1 i\import pyarrow_hotfix' server.py | ||
- uses: strip | ||
|
||
update: | ||
enabled: true | ||
ignore-regex-patterns: | ||
- 'sdk-' | ||
github: | ||
identifier: kubeflow/pipelines |
Oops, something went wrong.