Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CFX-590] [CFX-539] Make Notebook custom environments to be compatible with custom models #1196

Merged
merged 4 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,7 @@ RUN rm -rf /lib/python3.9/site-packages/pip-20.2.4.dist-info && \
RUN chown -R $UNAME:$UNAME ${WORKDIR} /home/notebooks

COPY --from=builder --chown=$UNAME $WORKDIR $WORKDIR

COPY ./start_server_drum.sh /opt/code/start_server.sh

ENV HOME=/opt CODE_DIR=/opt/code ADDRESS=0.0.0.0:8080
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
altair==4.2.0
boto3==1.34.90
cloudpickle==2.2.1
dask==2022.9.2
datarobot-bp-workshop==0.2.6
Expand All @@ -23,6 +24,7 @@ openpyxl==3.0.10
pandas==1.5.1
plotly==5.18.0
pydantic==2.5.2
sagemaker==2.216.1
scikit-learn==1.3.2
scipy==1.10.1
seaborn==0.12.0
Expand All @@ -33,8 +35,7 @@ spacy==3.7.2
statsmodels==0.14.1
tqdm==4.64.1
umap-learn==0.5.3
uwsgi
c-h-russell-walker marked this conversation as resolved.
Show resolved Hide resolved
wordcloud==1.9.3
xgboost==1.6.2
yellowbrick==1.5
boto3==1.34.90
sagemaker==2.216.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
# Copyright 2021 DataRobot, Inc. and its affiliates.
#
# All rights reserved.
# This is proprietary source code of DataRobot, Inc. and its affiliates.
#
# Released under the terms of DataRobot Tool and Utility Agreement.
echo "Starting Custom Model environment with DRUM prediction server"

if [ "${ENABLE_CUSTOM_MODEL_RUNTIME_ENV_DUMP}" = 1 ]; then
echo "Environment variables:"
env
fi

echo
echo "Executing command: drum server $*"
echo
exec drum server "$@"
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,7 @@ LABEL com.datarobot.repo-sha=$GIT_COMMIT
RUN chown -R $UNAME:$UNAME ${WORKDIR} /home/notebooks

COPY --from=builder --chown=$UNAME $WORKDIR $WORKDIR

COPY ./start_server_drum.sh /opt/code/start_server.sh

ENV HOME=/opt CODE_DIR=/opt/code ADDRESS=0.0.0.0:8080
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
numpy==1.26.2
datarobot-drum
numpy==1.26.2
uwsgi
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
# Copyright 2021 DataRobot, Inc. and its affiliates.
#
# All rights reserved.
# This is proprietary source code of DataRobot, Inc. and its affiliates.
#
# Released under the terms of DataRobot Tool and Utility Agreement.
echo "Starting Custom Model environment with DRUM prediction server"

if [ "${ENABLE_CUSTOM_MODEL_RUNTIME_ENV_DUMP}" = 1 ]; then
echo "Environment variables:"
env
fi

echo
echo "Executing command: drum server $*"
echo
exec drum server "$@"
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,7 @@ COPY --from=pulumi_builder --chown=$UNAME /pulumi/bin /usr/bin/
# Removing pip leftovers to not have trivy complain
RUN find "${VENV_PATH}"/lib/python3.*/site-packages -name "pip-*.dist-info" -type d -exec rm -rf {} + \
&& find "${VENV_PATH}"/lib/python3.*/site-packages -name "setuptools-*.dist-info" -type d -exec rm -rf {} +

COPY ./start_server_drum.sh /opt/code/start_server.sh

ENV HOME=/opt CODE_DIR=/opt/code ADDRESS=0.0.0.0:8080
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ starlette==0.41.0
statsmodels==0.14.1
tqdm==4.66.4
umap-learn==0.5.3
uwsgi
wordcloud==1.9.3
xgboost==1.6.2
yellowbrick==1.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
# Copyright 2021 DataRobot, Inc. and its affiliates.
#
# All rights reserved.
# This is proprietary source code of DataRobot, Inc. and its affiliates.
#
# Released under the terms of DataRobot Tool and Utility Agreement.
echo "Starting Custom Model environment with DRUM prediction server"

if [ "${ENABLE_CUSTOM_MODEL_RUNTIME_ENV_DUMP}" = 1 ]; then
echo "Environment variables:"
env
fi

echo
echo "Executing command: drum server $*"
echo
exec drum server "$@"
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,7 @@ COPY --from=pulumi_builder --chown=$UNAME /pulumi/bin /usr/bin/
# Removing pip leftovers to not have trivy complain
RUN find "${VENV_PATH}"/lib/python3.*/site-packages -name "pip-*.dist-info" -type d -exec rm -rf {} + \
&& find "${VENV_PATH}"/lib/python3.*/site-packages -name "setuptools-*.dist-info" -type d -exec rm -rf {} +

COPY ./start_server_drum.sh /opt/code/start_server.sh

ENV HOME=/opt CODE_DIR=/opt/code ADDRESS=0.0.0.0:8080
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ starlette==0.41.0
statsmodels==0.14.1
tqdm==4.66.4
umap-learn==0.5.3
uwsgi
wordcloud==1.9.3
xgboost==1.6.2
yellowbrick==1.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
# Copyright 2021 DataRobot, Inc. and its affiliates.
#
# All rights reserved.
# This is proprietary source code of DataRobot, Inc. and its affiliates.
#
# Released under the terms of DataRobot Tool and Utility Agreement.
echo "Starting Custom Model environment with DRUM prediction server"

if [ "${ENABLE_CUSTOM_MODEL_RUNTIME_ENV_DUMP}" = 1 ]; then
echo "Environment variables:"
env
fi

echo
echo "Executing command: drum server $*"
echo
exec drum server "$@"
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,7 @@ COPY --from=pulumi_builder --chown=$UNAME /pulumi/bin /usr/bin/
# Removing pip leftovers to not have trivy complain
RUN find "${VENV_PATH}"/lib/python3.*/site-packages -name "pip-*.dist-info" -type d -exec rm -rf {} + \
&& find "${VENV_PATH}"/lib/python3.*/site-packages -name "setuptools-*.dist-info" -type d -exec rm -rf {} +

COPY ./start_server_drum.sh /opt/code/start_server.sh

ENV HOME=/opt CODE_DIR=/opt/code ADDRESS=0.0.0.0:8080
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ starlette==0.41.0
statsmodels==0.14.1
tqdm==4.66.4
umap-learn==0.5.3
uwsgi
wordcloud==1.9.3
xgboost==1.6.2
yellowbrick==1.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
# Copyright 2021 DataRobot, Inc. and its affiliates.
#
# All rights reserved.
# This is proprietary source code of DataRobot, Inc. and its affiliates.
#
# Released under the terms of DataRobot Tool and Utility Agreement.
echo "Starting Custom Model environment with DRUM prediction server"

if [ "${ENABLE_CUSTOM_MODEL_RUNTIME_ENV_DUMP}" = 1 ]; then
echo "Environment variables:"
env
fi

echo
echo "Executing command: drum server $*"
echo
exec drum server "$@"