From 1b8a96da396b30325e62c48cb00a270842319c29 Mon Sep 17 00:00:00 2001 From: Andrew Scribner Date: Fri, 16 Feb 2024 11:55:17 -0500 Subject: [PATCH] Fix comments, add commonality between rocks in this repo --- pmmlserver/dummy_pyproject.toml | 3 ++- pmmlserver/rockcraft.yaml | 3 ++- pmmlserver/tests/test_rock.py | 13 +++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/pmmlserver/dummy_pyproject.toml b/pmmlserver/dummy_pyproject.toml index 2b7f4b7..f3ab429 100644 --- a/pmmlserver/dummy_pyproject.toml +++ b/pmmlserver/dummy_pyproject.toml @@ -7,4 +7,5 @@ authors = ["none"] [tool.poetry.dependencies] python = ">=3.8,<3.12" kserve = { path = "../python/kserve", develop = false } -pmmlserver = { path = "../python/pmmlserver", develop = false } \ No newline at end of file +sklearnserver = { path = "../python/sklearnserver", develop = false } + diff --git a/pmmlserver/rockcraft.yaml b/pmmlserver/rockcraft.yaml index 746bcd3..e68905c 100644 --- a/pmmlserver/rockcraft.yaml +++ b/pmmlserver/rockcraft.yaml @@ -1,4 +1,4 @@ -# Based on https://github.com/kserve/kserve/blob/release-0.11/python/paddle.Dockerfile +# Based on https://github.com/kserve/kserve/blob/release-0.11/python/pmml.Dockerfile name: pmmlserver summary: Pmml server for Kserve deployments description: "Kserve Pmml server" @@ -80,3 +80,4 @@ parts: source-tag: v0.11.0 override-build: | cp -fr third_party/* ${CRAFT_PART_INSTALL}/third_party + diff --git a/pmmlserver/tests/test_rock.py b/pmmlserver/tests/test_rock.py index 9a11f59..9fa4686 100644 --- a/pmmlserver/tests/test_rock.py +++ b/pmmlserver/tests/test_rock.py @@ -63,3 +63,16 @@ def test_rock(rock_test_env): ], check=True, ) + subprocess.run( + [ + "docker", + "run", + "--entrypoint", + "/bin/bash", + LOCAL_ROCK_IMAGE, + "-c", + "ls -la /third_party", + ], + check=True, + ) +