-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update paddleserver for version 0.14.1 (#116)
* feat: update pmmlserver for version 0.14.1 * Update rockcraft.yaml
- Loading branch information
Showing
4 changed files
with
22 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# Based on https://github.com/kserve/kserve/blob/v0.13.0/python/paddle.Dockerfile | ||
# Based on https://github.com/kserve/kserve/blob/v0.14.1/python/paddle.Dockerfile | ||
# | ||
# See ../CONTRIBUTING.md for more details about the patterns used in this rock. | ||
# This rock is implemented with some atypical patterns due to the native of the upstream | ||
# Dockerfile. | ||
name: paddleserver | ||
summary: Paddle server for Kserve deployments | ||
description: "Kserve Paddle server" | ||
version: "0.13.0" | ||
version: "0.14.1" | ||
license: Apache-2.0 | ||
base: [email protected] | ||
platforms: | ||
|
@@ -33,22 +33,19 @@ parts: | |
plugin: nil | ||
source: https://github.com/kserve/kserve.git | ||
source-subdir: python | ||
source-tag: v0.13.0 | ||
source-tag: v0.14.1 | ||
build-packages: | ||
- build-essential | ||
- libgomp1 | ||
stage-packages: | ||
- libgomp1 | ||
- python3.11 | ||
- python3.11-venv | ||
overlay-packages: | ||
- python3.10 | ||
# Including python3-pip here means pip also gets primed for the final rock | ||
- python3-pip | ||
- python3.11 | ||
override-build: | | ||
# Populate the build system's python environment with all packages needed for | ||
# the server in the final rock | ||
# 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 | ||
pip install poetry==1.7.1 | ||
python3 -m pip install --upgrade pip setuptools poetry==1.8.3 | ||
poetry config virtualenvs.create false | ||
# Install the kserve package, this specific server package, and their dependencies. | ||
|
@@ -57,21 +54,19 @@ parts: | |
(cd python_env_builddir && poetry install --no-interaction --no-root) | ||
# Promote the packages we've installed from the local env to the primed image | ||
mkdir -p $CRAFT_PART_INSTALL/usr/local/lib/python3.10/dist-packages | ||
cp -fr /usr/local/lib/python3.10/dist-packages/* $CRAFT_PART_INSTALL/usr/local/lib/python3.10/dist-packages/ | ||
mkdir -p $CRAFT_PART_INSTALL/usr/local/lib/python3.11/dist-packages | ||
cp -fr /usr/local/lib/python3.11/dist-packages/* $CRAFT_PART_INSTALL/usr/local/lib/python3.11/dist-packages/ | ||
# Ensure `python` is an executable command in our primed image by making | ||
# a symbolic link | ||
# Ensure `python` is an executable command in our primed image | ||
mkdir -p $CRAFT_PART_INSTALL/usr/bin/ | ||
ln -s /usr/bin/python3.10 $CRAFT_PART_INSTALL/usr/bin/python | ||
ln -s /usr/bin/python3.11 $CRAFT_PART_INSTALL/usr/bin/python | ||
# Copy licenses | ||
third-party: | ||
plugin: nil | ||
after: [python] | ||
source: https://github.com/kserve/kserve.git | ||
source-subdir: python | ||
source-tag: v0.13.0 | ||
source-tag: v0.14.1 | ||
override-build: | | ||
cp -fr third_party/* ${CRAFT_PART_INSTALL}/third_party | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters