-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RAPTOR-11834] DR base python image is derived from an official Pytho…
…n image (#1229) * [RAPTOR-11834] DR base python image is derived from an official Python image + harness cleanups * Update docker/dropin_env_base/build_image.sh Co-authored-by: Alex Shoop <alexander.shoop@datarobot.com> * Small fix to README --------- Co-authored-by: Alex Shoop <alexander.shoop@datarobot.com>
- Loading branch information
1 parent
5cbf3b8
commit 136c2aa
Showing
13 changed files
with
73 additions
and
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,10 @@ | ||
# This is the default base image for use with user models and workflows. | ||
FROM openjdk:11.0.16-jre-slim-bullseye | ||
ARG BASE_ROOT_IMAGE=python:3.11.11-slim-bookworm | ||
|
||
ARG DATAROBOT_MLOPS_VERSION | ||
FROM ${BASE_ROOT_IMAGE} | ||
|
||
RUN apt-get update && apt-get upgrade -y && apt-get install -y python3 python3-pip python3-dev python3-distutils fontconfig && \ | ||
pip3 install --upgrade pip && \ | ||
pip3 install --no-cache-dir wheel setuptools && \ | ||
apt-get install -y python3-setuptools | ||
|
||
COPY requirements.txt requirements.txt | ||
COPY datarobot-mlops-*.jar /opt/jars/ | ||
COPY mlops-agent-*.jar /opt/jars/ | ||
|
||
ENV DRUM_JAVA_SHARED_JARS=/opt/jars/* | ||
ENV MLOPS_MONITORING_AGENT_JAR_PATH=/opt/jars/mlops-agent-${DATAROBOT_MLOPS_VERSION}.jar | ||
# Upgrade setuptools to a secure version (CVE-2024-6345) | ||
RUN pip install --no-cache-dir --upgrade pip setuptools>=70.0.0 | ||
|
||
# This makes print statements show up in the logs API | ||
ENV PYTHONUNBUFFERED=1 | ||
|
||
RUN pip3 install -U pip && pip3 install -r requirements.txt |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
function title { | ||
echo -e "\n== $1 ==" | ||
} |
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
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
9 changes: 5 additions & 4 deletions
9
harness_scripts/functional_general/mlops_reporting_entrypoint.sh
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,17 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
. ${script_dir}/../common/common.sh | ||
. ${script_dir}/../../tools/create-and-source-venv.sh | ||
|
||
echo "== Preparing to test ==" | ||
title "Preparing to test" | ||
apt-get update && apt-get install -y curl | ||
|
||
echo "Installing requirements for all the tests: requirements_test.txt" | ||
title "Installing requirements for all the tests: requirements_test.txt" | ||
pip install -r requirements_test.txt | ||
|
||
pushd custom_model_runner | ||
echo "== Install drum from source ==" | ||
title "Install drum from source" | ||
pip install . | ||
popd | ||
|
||
pytest tests/functional/test_mlops_monitoring.py | ||
pytest tests/functional/test_mlops_monitoring.py |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
function title { | ||
echo -e "\n\n== $1 ==" | ||
} |