Skip to content

Commit a3acfe0

Browse files
authored
Migrate opensource envs to chainguard (#1526)
1 parent 77a0f42 commit a3acfe0

File tree

25 files changed

+62
-60
lines changed

25 files changed

+62
-60
lines changed

.harness/test_functional_general.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pipeline:
2727
shell: Bash
2828
command: |-
2929
./harness_scripts/functional_general/mlops_reporting_entrypoint.sh \
30-
<+secrets.getValue("account.dockerhubdatarobotread2orgread1")>
30+
<+secrets.getValue("org.genai-systems-dockerhub-login")> <+secrets.getValue("org.genai-systems-dockerhub-token")>
3131
resources:
3232
limits:
3333
memory: 3G
@@ -92,7 +92,7 @@ pipeline:
9292
shell: Bash
9393
command: |
9494
./harness_scripts/functional_general/general_tests_entrypoint.sh \
95-
<+secrets.getValue("account.dockerhubdatarobotread2orgread1")>
95+
<+secrets.getValue("org.genai-systems-dockerhub-login")> <+secrets.getValue("org.genai-systems-dockerhub-token")>
9696
resources:
9797
limits:
9898
memory: 8G

harness_scripts/functional_general/general_tests_entrypoint.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
44
. ${script_dir}/../common/common.sh
55

6-
DOCKER_HUB_SECRET=$1
6+
DOCKER_HUB_USERNAME=$1
7+
DOCKER_HUB_SECRET=$2
78
if [ -n "$HARNESS_BUILD_ID" ]; then
89
title "Running within a Harness pipeline."
910
[ -z $DOCKER_HUB_SECRET ] && echo "Docker HUB secret is expected as an input argument" && exit 1
10-
docker login -u datarobotread2 -p $DOCKER_HUB_SECRET || { echo "Docker login failed"; exit 1; }
11+
docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_SECRET || { echo "Docker login failed"; exit 1; }
1112
fi
1213

1314
title "Build image for tests"

harness_scripts/functional_general/mlops_reporting_entrypoint.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
44
. ${script_dir}/../common/common.sh
55
. ${script_dir}/../../tools/create-and-source-venv.sh
66

7-
DOCKER_HUB_SECRET=$1
7+
DOCKER_HUB_USERNAME=$1
8+
DOCKER_HUB_SECRET=$2
89
if [ -n "$HARNESS_BUILD_ID" ]; then
910
title "Running within a Harness pipeline."
1011
[ -z $DOCKER_HUB_SECRET ] && echo "Docker HUB secret is expected as an input argument" && exit 1
11-
docker login -u datarobotread2 -p $DOCKER_HUB_SECRET || { echo "Docker login failed"; exit 1; }
12+
docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_SECRET || { echo "Docker login failed"; exit 1; }
1213
fi
1314

1415
title "Preparing to test"

public_dropin_environments/java_codegen/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a private chain-guard development image that is stored in DataRobot's private registry.
22
# Replace it with your own development chain-gaurd image if you build your own.
3-
ARG BASE_ROOT_IMAGE=datarobotdev/mirror_chainguard_datarobot.com_python-fips:3.11-dev
3+
ARG BASE_ROOT_IMAGE=datarobot/mirror_chainguard_datarobot.com_python-fips:3.11-dev
44
FROM ${BASE_ROOT_IMAGE} AS build
55

66
USER root
@@ -10,7 +10,7 @@ RUN apk add --no-cache openjdk-11
1010

1111
# This is a private production chain-guard image that is stored in DataRobot's private registry.
1212
# Replace it with your own production chain-gaurd image if you build your own.
13-
FROM datarobotdev/mirror_chainguard_datarobot.com_python-fips:3.11
13+
FROM datarobot/mirror_chainguard_datarobot.com_python-fips:3.11
1414

1515
USER root
1616

public_dropin_environments/java_codegen/env_info.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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",
66
"label": "",
7-
"environmentVersionId": "6848b5262081a81707b57882",
7+
"environmentVersionId": "68596920b14b9d0fa2407067",
88
"environmentVersionDescription": "",
99
"isPublic": true,
1010
"useCases": [
@@ -13,8 +13,8 @@
1313
"contextUrl": "https://github.com/datarobot/datarobot-user-models/tree/master/public_dropin_environments/java_codegen",
1414
"imageRepository": "env-java-codegen",
1515
"tags": [
16-
"v11.1.0-6848b5262081a81707b57882",
17-
"6848b5262081a81707b57882",
16+
"v11.1.0-68596920b14b9d0fa2407067",
17+
"68596920b14b9d0fa2407067",
1818
"v11.1.0-latest"
1919
]
2020
}

public_dropin_environments/python311/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# This is a private chain-guard development image that is stored in DataRobot's private registry.
22
# Replace it with your own development chain-gaurd image if you build your own.
3-
ARG BASE_ROOT_IMAGE=datarobotdev/mirror_chainguard_datarobot.com_python-fips:3.11-dev
3+
ARG BASE_ROOT_IMAGE=datarobot/mirror_chainguard_datarobot.com_python-fips:3.11-dev
44
FROM ${BASE_ROOT_IMAGE} AS build
55

66
# This is a private production chain-guard image that is stored in DataRobot's private registry.
77
# Replace it with your own production chain-gaurd image if you build your own.
8-
FROM datarobotdev/mirror_chainguard_datarobot.com_python-fips:3.11
8+
FROM datarobot/mirror_chainguard_datarobot.com_python-fips:3.11
99

1010
USER root
1111

public_dropin_environments/python311/env_info.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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",
66
"label": "",
7-
"environmentVersionId": "6848b5342081a8172fb52002",
7+
"environmentVersionId": "6859692ab14b9d0fca587e34",
88
"environmentVersionDescription": "",
99
"isPublic": true,
1010
"useCases": [
@@ -13,8 +13,8 @@
1313
"contextUrl": "https://github.com/datarobot/datarobot-user-models/tree/master/public_dropin_environments/python311",
1414
"imageRepository": "env-python",
1515
"tags": [
16-
"v11.1.0-6848b5342081a8172fb52002",
17-
"6848b5342081a8172fb52002",
16+
"v11.1.0-6859692ab14b9d0fca587e34",
17+
"6859692ab14b9d0fca587e34",
1818
"v11.1.0-latest"
1919
]
2020
}

public_dropin_environments/python311_genai/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# This is a private chain-guard development image that is stored in DataRobot's private registry.
22
# Replace it with your own development chain-gaurd image if you build your own.
3-
ARG BASE_ROOT_IMAGE=datarobotdev/mirror_chainguard_datarobot.com_python-fips:3.11-dev
3+
ARG BASE_ROOT_IMAGE=datarobot/mirror_chainguard_datarobot.com_python-fips:3.11-dev
44
FROM ${BASE_ROOT_IMAGE} AS build
55

66
# This is a private production chain-guard image that is stored in DataRobot's private registry.
77
# Replace it with your own production chain-gaurd image if you build your own.
8-
FROM datarobotdev/mirror_chainguard_datarobot.com_python-fips:3.11
8+
FROM datarobot/mirror_chainguard_datarobot.com_python-fips:3.11
99

1010
USER root
1111

public_dropin_environments/python311_genai/env_info.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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",
66
"label": "",
7-
"environmentVersionId": "6852ca656041b19b9f55fce0",
7+
"environmentVersionId": "68596932b14b9d0fe66ff78d",
88
"environmentVersionDescription": "",
99
"isPublic": true,
1010
"useCases": [
@@ -13,8 +13,8 @@
1313
"contextUrl": "https://github.com/datarobot/datarobot-user-models/tree/master/public_dropin_environments/python311_genai",
1414
"imageRepository": "env-python-genai",
1515
"tags": [
16-
"v11.1.0-6852ca656041b19b9f55fce0",
17-
"6852ca656041b19b9f55fce0",
16+
"v11.1.0-68596932b14b9d0fe66ff78d",
17+
"68596932b14b9d0fe66ff78d",
1818
"v11.1.0-latest"
1919
]
2020
}

public_dropin_environments/python311_genai_agents/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ARG UNAME=notebooks
1414
ARG UID=10101
1515
ARG GID=10101
1616

17-
FROM datarobotdev/mirror_chainguard_datarobot.com_python-fips:3.11-dev AS base
17+
FROM datarobot/mirror_chainguard_datarobot.com_python-fips:3.11-dev AS base
1818

1919
ARG UNAME
2020
ARG UID

0 commit comments

Comments
 (0)