Skip to content

Commit

Permalink
Merge pull request #11274 from Dentrax/visualization-server-remastered
Browse files Browse the repository at this point in the history
Add visualization-server for kubeflow-pipeline
  • Loading branch information
imjasonh authored Jan 19, 2024
2 parents fc0cc43 + dc911d4 commit 63a6566
Show file tree
Hide file tree
Showing 2 changed files with 834 additions and 0 deletions.
62 changes: 62 additions & 0 deletions kubeflow-pipelines-visualization-server.yaml
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
Loading

0 comments on commit 63a6566

Please sign in to comment.