You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by nk...@apache.org on 2024/02/26 19:28:52 UTC
(madlib) 04/05: PMML: Install pyyaml and java for jenkins
This is an automated email from the ASF dual-hosted git repository.
nkak pushed a commit to branch madlib2-master
in repository https://gitbox.apache.org/repos/asf/madlib.git
commit 5e5849e851be529ee471c4ea45b2269f54cf8640
Author: Nikhil Kak <nk...@vmware.com>
AuthorDate: Fri Feb 16 16:10:09 2024 -0800
PMML: Install pyyaml and java for jenkins
JIRA: MADLIB-1517
Previous few commits created dev-check tests that need the pypmml module to
test madlib's pmml function. We need to install this in our jenkins build so
that the PR pipeline can run the pmml tests. This commit installs the pypmml
module and also installs java which is needed by the pypmml module itself.
---
tool/jenkins/jenkins_build.sh | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/tool/jenkins/jenkins_build.sh b/tool/jenkins/jenkins_build.sh
index fb6df8f7..171ed0a9 100755
--- a/tool/jenkins/jenkins_build.sh
+++ b/tool/jenkins/jenkins_build.sh
@@ -73,9 +73,15 @@ docker exec madlib bash -c 'service postgresql start' | tee $workdir/logs/madlib
echo "---------- Install pip, and mock -----------"
# cmake, make, make install, and make package
cat <<EOF
-docker exec madlib bash -c 'apt-get update; apt-get install -y python3-pip; pip install mock pandas numpy xgboost scikit-learn pyyaml pyxb-x' | tee $workdir/logs/madlib_compile.log
+docker exec madlib bash -c 'apt-get update; apt-get install -y python3-pip; pip install mock pandas numpy xgboost scikit-learn pyyaml pyxb-x pypmml' | tee $workdir/logs/madlib_compile.log
EOF
-docker exec madlib bash -c 'apt-get update; apt-get install -y python3-pip; pip install mock pandas numpy xgboost scikit-learn pyyaml pyxb-x' | tee $workdir/logs/madlib_compile.log
+docker exec madlib bash -c 'apt-get update; apt-get install -y python3-pip; pip install mock pandas numpy xgboost scikit-learn pyyaml pyxb-x pypmml' | tee $workdir/logs/madlib_compile.log
+
+echo "------ debug: install java for pypmml which needs Java >= 8 and < 16 ------------"
+cat <<EOF
+docker exec madlib bash -c 'apt-get install -y openjdk-11-jre-headless' | tee $workdir/logs/madlib_compile.log
+EOF
+docker exec madlib bash -c 'apt-get install -y openjdk-11-jre-headless' | tee $workdir/logs/madlib_compile.log
echo "---------- Building package -----------"
# cmake, make, make install, and make package