-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkubeflow-pipelines-visualization-server.yaml
62 lines (52 loc) · 1.69 KB
/
kubeflow-pipelines-visualization-server.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package:
name: kubeflow-pipelines-visualization-server
version: 2.3.0
epoch: 100
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: 4467df5f9c8242d389f20214f75fecfc4119e8cd
- uses: patch
with:
patches: 0001-Bump-dependencies.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