forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kserve-modelmesh.yaml
62 lines (54 loc) · 1.86 KB
/
kserve-modelmesh.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: kserve-modelmesh
version: 0.12.0
epoch: 5
description: The ModelMesh framework is a mature, general-purpose model serving management/routing layer designed for high-scale, high-density and frequently-changing model use cases.
dependencies:
runtime:
- bash # entrypoint script uses bash
- openjdk-17-default-jvm
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- build-base
- busybox
- maven-3.9
- openjdk-17
pipeline:
- uses: git-checkout
with:
repository: https://github.com/kserve/modelmesh.git
tag: v${{package.version}}
expected-commit: f8212c75fffba9af22c3f3831ea0a8caade518d2
- uses: maven/pombump
- name: Compile
runs: |
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
mvn -B package -Dfile.encoding=UTF8 -DskipTests=true --file pom.xml
mkdir -p ${{targets.destdir}}/opt/kserve/mmesh
mv /home/build/target/dockerhome/* ${{targets.destdir}}/opt/kserve/mmesh/
echo "$(date +%Y%m%d)-$(git rev-parse --short HEAD)" > ${{targets.destdir}}/opt/kserve/mmesh/build-version
mkdir -p ${{targets.destdir}}/etc
mkdir -p ${{targets.destdir}}/opt/kserve/mmesh/log
chmod -R 775 ${{targets.destdir}}/opt/kserve/mmesh/
touch ${{targets.destdir}}/etc/environment
subpackages:
- name: kserve-modelmesh-compat
description: "compat package with kserve/modelmesh image"
pipeline:
- runs: |
mkdir -p "${{targets.contextdir}}/opt/kserve"
ln -sf /opt/kserve/mmesh "${{targets.contextdir}}/opt/kserve/tas"
test:
pipeline:
- name: Verify compat packages exist at the right directories
runs: |
ls /opt/kserve/mmesh/lib/ | grep -q 'model-.*\.jar'
ls /opt/kserve/mmesh/ | grep -q 'start.sh'
update:
enabled: true
github:
identifier: kserve/modelmesh
strip-prefix: v