Skip to content

Commit

Permalink
feat: update pmmlserver for version 0.14.1
Browse files Browse the repository at this point in the history
  • Loading branch information
misohu committed Feb 11, 2025
1 parent 804cd6f commit 9a65636
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions pmmlserver/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,6 @@ parts:
dpkg-query --root=${CRAFT_PROJECT_DIR}/../bundles/ubuntu-22.04/rootfs/ -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) \
> ${CRAFT_PART_INSTALL}/usr/share/rocks/dpkg.query
java:
plugin: nil
build-packages:
- default-jdk
stage-packages:
- default-jdk
# Also stage the links for java executable
override-build:
ln -s /usr/lib/jvm/java-21-openjdk-amd64/bin/java $CRAFT_PART_INSTALL/usr/bin/java

python:
plugin: nil
source: https://github.com/kserve/kserve.git
Expand All @@ -47,18 +37,18 @@ parts:
build-packages:
- python3.11
- python3.11-venv
- openjdk-21-jdk
overlay-packages:
- python3.11
- gcc
- build-essential
- openjdk-21-jdk
override-build: |
# Ensure Python 3.11 is the default version
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
update-alternatives --set python3 /usr/bin/python3.11
# Setup poetry
python3 -m pip install --upgrade pip setuptools poetry==1.8.3
poetry config virtualenvs.create false
poetry config virtualenvs.create false
# Install the kserve package, this specific server package, and their dependencies.
mkdir -p ./python_env_builddir
Expand All @@ -73,6 +63,10 @@ parts:
mkdir -p $CRAFT_PART_INSTALL/usr/bin/
ln -s /usr/bin/python3.11 $CRAFT_PART_INSTALL/usr/bin/python
# Move Py4J jar file to $CRAFT_PART_INSTALL
mkdir -p $CRAFT_PART_INSTALL/usr/local/share
cp -fr /usr/local/share/* $CRAFT_PART_INSTALL/usr/local/share/
# Copy licenses
third-party:
plugin: nil
Expand Down

0 comments on commit 9a65636

Please sign in to comment.