Skip to content

Commit 9dc4359

Browse files
authored
[RAPTOR-12536] add more required tools into envs (#1440)
1 parent 7f73fa9 commit 9dc4359

File tree

18 files changed

+45
-27
lines changed

18 files changed

+45
-27
lines changed

public_dropin_environments/java_codegen/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ COPY --from=build /bin/sh /bin/sh
2323
# Required to change the ownership of copied files into the managed-image
2424
COPY --from=build /bin/chown /bin/chown
2525

26+
# Required to change the ownership for Custom Models PPS
27+
COPY --from=build /bin/chgrp /bin/chgrp
28+
2629
# Required to change the permissions of the 'start_server.sh' that is copied into the managed-image
2730
COPY --from=build /bin/chmod /bin/chmod
2831

@@ -49,8 +52,7 @@ RUN sh -c "python -m venv ${VIRTUAL_ENV} && \
4952
python -m ensurepip --default-pip && \
5053
python -m pip install --upgrade pip && \
5154
python -m pip install --no-cache-dir -r requirements.txt && \
52-
find ${VIRTUAL_ENV} -type d -name '__pycache__' -exec rm -rf {} + && \
53-
rm -rf /usr/bin/rm /usr/bin/find"
55+
find ${VIRTUAL_ENV} -type d -name '__pycache__' -exec rm -rf {} +"
5456

5557
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk
5658
ENV PATH=${VIRTUAL_ENV}/bin:${JAVA_HOME}/bin:${PATH}

public_dropin_environments/java_codegen/env_info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "[DataRobot] Java Drop-In (DR Codegen, H2O)",
44
"description": "This template can be used as an environment for DataRobot generated scoring code or models that implement the either the IClassificationPredictor or IRegressionPredictor interface from the datarobot-prediction package and for H2O models exported as POJO or MOJO.",
55
"programmingLanguage": "java",
6-
"environmentVersionId": "68220405046afc414c6a9ff3",
6+
"environmentVersionId": "682630fcf6a76a0f81cc9ce7",
77
"isPublic": true,
88
"useCases": [
99
"customModel"

public_dropin_environments/python311/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ COPY --from=build /bin/sh /bin/sh
1515
# Required to change the ownership of copied files into the managed-image
1616
COPY --from=build /bin/chown /bin/chown
1717

18+
# Required to change the ownership for Custom Models PPS
19+
COPY --from=build /bin/chgrp /bin/chgrp
20+
1821
# Required to change the permissions of the 'start_server.sh' that is copied into the managed-image
1922
COPY --from=build /bin/chmod /bin/chmod
2023

@@ -40,8 +43,7 @@ RUN sh -c "python -m venv ${VIRTUAL_ENV} && \
4043
python -m ensurepip --default-pip && \
4144
python -m pip install --upgrade pip && \
4245
python -m pip install --no-cache-dir -r requirements.txt && \
43-
find ${VIRTUAL_ENV} -type d -name '__pycache__' -exec rm -rf {} + && \
44-
rm -rf /usr/bin/rm /usr/bin/find"
46+
find ${VIRTUAL_ENV} -type d -name '__pycache__' -exec rm -rf {} +"
4547

4648
ENV PATH=${VIRTUAL_ENV}/bin:${PATH}
4749
ENV HOME=/opt

public_dropin_environments/python311/env_info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "[DataRobot] Python 3.11 Drop-In",
44
"description": "This template environment can be used to create Python based custom models. User is responsible to provide requirements.txt with the model, to install all the required dependencies.",
55
"programmingLanguage": "python",
6-
"environmentVersionId": "68220405046afc414c6a9ff6",
6+
"environmentVersionId": "68263107f6a76a0f9b3404e1",
77
"isPublic": true,
88
"useCases": [
99
"customModel"

public_dropin_environments/python311_genai/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ COPY --from=build /bin/sh /bin/sh
1515
# Required to change the ownership of copied files into the managed-image
1616
COPY --from=build /bin/chown /bin/chown
1717

18+
# Required to change the ownership for Custom Models PPS
19+
COPY --from=build /bin/chgrp /bin/chgrp
20+
1821
# Required to change the permissions of the 'start_server.sh' that is copied into the managed-image
1922
COPY --from=build /bin/chmod /bin/chmod
2023

@@ -40,8 +43,7 @@ RUN sh -c "python -m venv ${VIRTUAL_ENV} && \
4043
python -m ensurepip --default-pip && \
4144
python -m pip install --upgrade pip && \
4245
python -m pip install --no-cache-dir -r requirements.txt && \
43-
find ${VIRTUAL_ENV} -type d -name '__pycache__' -exec rm -rf {} + && \
44-
rm -rf /usr/bin/rm /usr/bin/find"
46+
find ${VIRTUAL_ENV} -type d -name '__pycache__' -exec rm -rf {} +"
4547

4648
ENV PATH=${VIRTUAL_ENV}/bin:${PATH}
4749
ENV HOME=/opt

public_dropin_environments/python311_genai/env_info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "[DataRobot] Python 3.11 GenAI",
44
"description": "This template environment can be used to create GenAI-powered custom models and includes common dependencies for workflows using OpenAI, Langchain, vector DBs, or transformers in PyTorch. Similar to other drop-in environments, you can either include a .pth artifact or any other code needed to deserialize your model, and optionally a custom.py file.",
55
"programmingLanguage": "python",
6-
"environmentVersionId": "68220405046afc414c6a9ffb",
6+
"environmentVersionId": "68263157f6a76a10006998bb",
77
"isPublic": true,
88
"useCases": [
99
"customModel"

public_dropin_environments/python3_onnx/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ COPY --from=build /bin/chown /bin/chown
1818
# Required to change the permissions of the 'start_server.sh' that is copied into the managed-image
1919
COPY --from=build /bin/chmod /bin/chmod
2020

21+
# Required to change the ownership for Custom Models PPS
22+
COPY --from=build /bin/chgrp /bin/chgrp
23+
2124
# Required for DR backend to create /opt/code (Maybe required by applications other than custom-models)
2225
COPY --from=build /bin/mkdir /bin/mkdir
2326

@@ -40,8 +43,7 @@ RUN sh -c "python -m venv ${VIRTUAL_ENV} && \
4043
python -m ensurepip --default-pip && \
4144
python -m pip install --upgrade pip && \
4245
python -m pip install --no-cache-dir -r requirements.txt && \
43-
find ${VIRTUAL_ENV} -type d -name '__pycache__' -exec rm -rf {} + && \
44-
rm -rf /usr/bin/rm /usr/bin/find"
46+
find ${VIRTUAL_ENV} -type d -name '__pycache__' -exec rm -rf {} +"
4547

4648
ENV PATH=${VIRTUAL_ENV}/bin:${PATH}
4749
ENV HOME=/opt

public_dropin_environments/python3_onnx/env_info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "[DataRobot] Python 3.11 ONNX Drop-In",
44
"description": "This template environment can be used to create artifact-only ONNX custom models. This environment contains ONNX runtime and only requires your model artifact as an .onnx file and optionally a custom.py file.",
55
"programmingLanguage": "python",
6-
"environmentVersionId": "68220404046afc414c6a9ff1",
6+
"environmentVersionId": "68263163f6a76a1017c72527",
77
"isPublic": true,
88
"useCases": [
99
"customModel"

public_dropin_environments/python3_pmml/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ COPY --from=build /bin/sh /bin/sh
2222
# Required to change the ownership of copied files into the managed-image
2323
COPY --from=build /bin/chown /bin/chown
2424

25+
# Required to change the ownership for Custom Models PPS
26+
COPY --from=build /bin/chgrp /bin/chgrp
27+
2528
# Required to change the permissions of the 'start_server.sh' that is copied into the managed-image
2629
COPY --from=build /bin/chmod /bin/chmod
2730

@@ -47,8 +50,7 @@ RUN sh -c "python -m venv ${VIRTUAL_ENV} && \
4750
python -m ensurepip --default-pip && \
4851
python -m pip install --upgrade pip && \
4952
python -m pip install --no-cache-dir -r requirements.txt && \
50-
find ${VIRTUAL_ENV} -type d -name '__pycache__' -exec rm -rf {} + && \
51-
rm -rf /usr/bin/rm /usr/bin/find"
53+
find ${VIRTUAL_ENV} -type d -name '__pycache__' -exec rm -rf {} +"
5254

5355
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk
5456
ENV PATH=${VIRTUAL_ENV}/bin:${JAVA_HOME}/bin:${PATH}

public_dropin_environments/python3_pmml/env_info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "[DataRobot] Python 3.11 PMML Drop-In",
44
"description": "This template environment can be used to create artifact-only PMML custom models. This environment contains PyPMML and only requires your model artifact as a .pmml file and optionally a custom.py file.",
55
"programmingLanguage": "python",
6-
"environmentVersionId": "68220405046afc414c6a9ff8",
6+
"environmentVersionId": "6826316ff6a76a1033ea3208",
77
"isPublic": true,
88
"useCases": [
99
"customModel"

0 commit comments

Comments
 (0)