DataRobot container images¶
The DataRobot platform uses Docker Hub as its primary container registry. While the DataRobot Helm chart is configured to use Docker Hub by default, it also supports using a dedicated private GAR container registry if required.
備考
For additional information about Docker Hub, see the Docker Hub documentation.
Using private Google Artifact Registry (GAR)¶
You can install the DataRobot platform by pulling application images from either Docker Hub or a private Google Artifact Registry (GAR). To use a private GAR Registry to store the DataRobot platform images, follow the steps listed below.
環境変数の設定¶
To store configuration values, set the following variables (ensure that the below commands include the necessary context):
export DOCKERHUB_USERNAME="DATAROBOT_CUSTOMER_USERNAME"
export DOCKERHUB_PASSWORD="DATAROBOT_CUSTOMER_PASSWORD"
export DATAROBOT_VERSION="X.X.X"
export PROJECT_NAME="GCP_PROJECT_NAME"
export REGION="GCP_REGION"
export REPO="GCP_REPO_NAME"
export BASE64_SERVICE_ACCOUNT_KEY="GCP_BASE64_SERVICE_ACCOUNT_KEY"
備考
- Replace
DATAROBOT_CUSTOMER_USERNAMEandDATAROBOT_CUSTOMER_PASSWORDwith your Docker Hub credentials. You can request these credentials through the DataRobot Support Portal or by emailing support@datarobot.com. - Replace
X.X.Xwith the latest release chart version. - Replace
GCP_PROJECT_NAMEwith your actual Google Cloud Project name. - Reaplce
GCP_REGIONwith your actual Google region used to deploy the resources. - Reaplce
GCP_REPO_NAMEwith your actual GAR repository name. - Reaplce
GCP_BASE64_SERVICE_ACCOUNT_KEYwith your actual Service Key encoded asbase64.
Initial setup¶
To authenticate your Docker Hub session, run the following command:
echo ${DOCKERHUB_PASSWORD} | docker login -u ${DOCKERHUB_USERNAME} --password-stdin
Download the main DataRobot chart from Docker Hub:
echo ${DOCKERHUB_PASSWORD} | helm registry login registry-1.docker.io -u ${DOCKERHUB_USERNAME} --password-stdin
helm pull oci://registry-1.docker.io/datarobot/datarobot-prime --version ${DATAROBOT_VERSION}
The process of loading images into your private registry is handled by a dedicated Helm plugin. To install the plugin, use the following command:
helm plugin install https://github.com/datarobot-oss/helm-datarobot-plugin.git
Load images into GAR¶
Load images into your private registry by pulling DataRobot images from Docker Hub:
export PREFIX="${PROJECT_NAME}/${REPO}"
helm datarobot sync datarobot-prime-${DATAROBOT_VERSION}.tgz -r "${REGION}-docker.pkg.dev" --prefix $PREFIX -u _json_key_base64 -p "${BASE64_SERVICE_ACCOUNT_KEY}"
If it is a restricted network, you can load images using the compressed tarball artifact:
export PREFIX="${PROJECT_NAME}/${REPO}"
helm datarobot load tarball-datarobot-${DATAROBOT_VERSION}.tar.zst -r "${REGION}-docker.pkg.dev" --prefix $PREFIX -u _json_key_base64 -p "${BASE64_SERVICE_ACCOUNT_KEY}"
Verify images are in GAR¶
To confirm that the repositories have been created and the images have loaded into Google Artifact Registry, the following command, replacing the example path with your own:
gcloud artifacts docker images list ${REGION}.pkg.dev/${PROJECT_NAME}/${REPO}/
The output will list the images in the specified repository.
Listing items under project example-google-project, location us-east1, repository example-datarobot-registry.
IMAGE DIGEST CREATE_TIME UPDATE_TIME
us-east1-docker.pkg.dev/example-google-project/example-datarobot-registry/datarobot-runtime sha256:482aabdceb859cc9ddc2e36867ac1ff6d3477bffcd05cac015bfc442c334aff4 2024-07-23T17:34:00 2024-07-23T17:34:00
...