-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkserve-0.13.1-r2.yaml
66 lines (57 loc) · 2.38 KB
/
kserve-0.13.1-r2.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
63
64
65
66
package:
name: kserve-0.13.1-r2
version: 0.13.1
epoch: 100
description: Standardized Serverless ML Inference Platform on Kubernetes
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- go
- py3.11-pip
- python-3.11-dev
pipeline:
- uses: git-checkout
with:
repository: https://github.com/kserve/kserve
tag: v${{package.version}}
expected-commit: e7d9ac8c48900bfd6db4821305b762bc51d8a67b
data:
- name: go-components
items:
agent: .
router: .
manager: .
qpext: qpext
subpackages:
- range: go-components
name: kserve-${{range.key}}
pipeline:
- uses: go/build
working-directory: ${{range.value}}
with:
modroot: .
packages: ./cmd/${{range.key}}
output: ${{range.key}}
- range: go-components
name: kserve-${{range.key}}-compat
dependencies:
runtime:
- kserve-${{range.key}}
pipeline:
- runs: 'mkdir -p "${{targets.contextdir}}/ko-app"
ln -s ../usr/bin/${{range.key}} "${{targets.contextdir}}/ko-app/${{range.key}}"
'
- name: kserve-storage-controller-0.13.1-r2
options:
no-commands: true
pipeline:
- working-directory: ./python
runs: "python=$(which python3.11)\n\n(\n set -x\n cd kserve\n\n # get poetry - until poetry is multi-versioned, just install from pip\n workd=$(mktemp -d)\n $python -m venv \"$workd\"\n $workd/bin/pip install poetry\n\n $workd/bin/poetry build\n\n wheel=$(echo dist/*.whl)\n [ -f \"$wheel\" ] || { echo \"not exactly one wheel: $wheel\"; exit 1; }\n\n # just let pip handle deps for now.\n $python -m pip install --verbose --prefix=/usr \"--root=${{targets.contextdir}}\" \\\n \"$wheel[storage]\"\n\n rm -Rf \"$workd\"\n)\n\n(\n d=${{targets.contextdir}}/storage-initializer/scripts/\n mkdir -p \"$d\"\n cp storage-initializer/scripts/initializer-entrypoint \"$d\"\n cd \"$d\"\n chmod 755 initializer-entrypoint\n\n # update shbang to point to the python used rather than '/usr/bin/env python'\n sed -i.dist \"1s,#!/usr/bin/env python[^ ]*,#!$python,\" initializer-entrypoint\n # exit fail if it did not change anything\n diff -u initializer-entrypoint.dist initializer-entrypoint && exit 1\n rm initializer-entrypoint.dist\n)\n"
- uses: strip
update:
enabled: true
github:
identifier: kserve/kserve
strip-prefix: v