Add an execution environment¶
To add an execution environment, you must upload a compressed folder in .tar
, .tar.gz
, or .zip
format. Be sure to review the guidelines for preparing an execution environment folder before proceeding. ドロップイン環境は、スコアリングコードとstart_server.sh
ファイルを環境フォルダーに追加することによって作成することもできます。
レジストリに移動し、環境タブを選択します。 + 環境を追加をクリックして環境の詳細を設定し、ワークショップに追加します。
In the Add environment panel, under Environment files, select one of the following options:
Image URI filtering
When adding an environment as an image URI, URI filtering allows only the URIs defined for your organization. If the URI you provide isn't allowed, a warning appears as helper text under the Image URI field. Hover over the helper text to view the URI filtering details. URI filtering is not enforced for API administrators.
オプション | 説明 |
---|---|
Build from source archive | Provide the archive containing a Dockerfile and any other files needed to build the environment image. |
Upload a prebuilt image | Provide a prebuilt environment image saved as a tarball using the Docker save command. Optionally, you can also click Include reference source archive to upload the source archive used to build the image for reference purposes. This source archive is not used to build the environment. |
Pull from image URI | Provide a Docker image URI for a prebuilt environment image saved as a tarball using the Docker save command. Optionally, you can also click Include reference source archive to upload the source archive used to build the image for reference purposes. This source archive is not used to build the environment. |
コンテキストファイルと環境イメージのアップロード
コンテキストとイメージファイルの両方をアップロードする場合、イメージファイルが優先されます。 イメージファイルをアップロードする際にコンテキストファイルは必須ではありませんが、コンテキストを必要とする機能がワークフローに含まれている場合があるため、コンテキストファイルをアップロードしてください。
After you provide the environment files, provide the following information under Configuration:
フィールド | 説明 |
---|---|
名前 | 環境の名前。 |
サポート | この環境でサポートされるDataRobotのアーティファクトタイプ:モデルとジョブ、アプリケーション、ノートブック。 |
プログラミング言語 | 環境が作られた言語。 |
説明 | (Optional) A description of the execution environment. |
バージョン説明 | (Optional) A description of the first execution environment version. |
すべてのフィールドに入力して環境を追加をクリックします。 The execution environment is ready for use. アップロードした環境は、他のユーザーと 共有しない限り、自分だけが使用できます。 既存の環境に変更を加えるには、新しい バージョンを作成します。
環境バージョンの追加¶
Troubleshoot or update an execution environment by adding a new version of it to the environment workshop. レジストリに移動し、環境タブを選択します。 Click an execution environment, then + Add version to configure the environment details and add it to the workshop.
In the Add environment version panel, select one of the following options:
Image URI filtering
When adding an environment as an image URI, URI filtering allows only the URIs defined for your organization. If the URI you provide isn't allowed, a warning appears as helper text under the Image URI field. Hover over the helper text to view the URI filtering details. URI filtering is not enforced for API administrators.
オプション | 説明 |
---|---|
環境ファイル | |
Build from source archive | Provide the archive containing a Dockerfile and any other files needed to build the environment image. |
Upload a prebuilt image | Provide a prebuilt environment image saved as a tarball using the Docker save command. Optionally, you can also click Include reference source archive to upload the source archive used to build the image for reference purposes. This source archive is not used to build the environment. |
Pull from image URI | Provide a Docker image URI for a prebuilt environment image saved as a tarball using the Docker save command. Optionally, you can also click Include reference source archive to upload the source archive used to build the image for reference purposes. This source archive is not used to build the environment. |
設定 | |
説明 | (Optional) A description of the execution environment version. |
コンテキストファイルと環境イメージのアップロード
コンテキストとイメージファイルの両方をアップロードする場合、イメージファイルが優先されます。 イメージファイルをアップロードする際にコンテキストファイルは必須ではありませんが、コンテキストを必要とする機能がワークフローに含まれている場合があるため、コンテキストファイルをアップロードしてください。
All past environment versions are saved, providing an accessible history of the execution environment. デフォルトでは、モデルのバージョンを作成するとき、選択された実行環境が変更されない場合、その実行環境のバージョンは、より新しい環境のバージョンが利用可能であっても、以前のカスタムモデルのバージョンから維持されます。 カスタムモデルのバージョンが最新バージョンの実行環境を使用するようにする方法の詳細については、 基本実行環境の更新をトリガーするを参照してください。
基本実行環境の更新をトリガーする
新しい環境バージョンが使用可能であっても、実行環境バージョンがカスタムモデルバージョン間で保持される、実行環境バージョン選択のデフォルトの動作をオーバーライドするには、基本環境の設定を一時的に変更する必要があります。 これを行うには、別の基本環境設定を使用して新しいカスタムモデルバージョンを作成してから、目的の基本環境に切り替えて、新しいカスタムモデルバージョンを作成します。 この変更後、カスタムモデルの最新バージョンでは、実行環境の最新バージョンが使用されます。
環境情報の表示¶
各カスタム環境およびビルトイン環境用のさまざな情報が用意されています。 レジストリに移動し、環境タブを選択します。 Click an execution environment, and access the following tabs:
Access the image URI
When you provide an image as an image URI, you can view the link to the source files under the Build status. In addition, if you need to download the built image, you can click Prepare image for download to build the image. Then, after the Preparing image step finishes, click Download built image. The Build ID appears after the image build finishes. You don't need to build the image if you don't intend to download it.
タブ | 説明 |
---|---|
概要 | View environment information including:
|
デプロイ | カスタムモデルとジョブをサポートしている環境では、関連付けられたデプロイを表示します。 |
Notebooks | ノートブックをサポートしている環境では、関連付けられたノートブックを表示します。 |
環境の管理¶
You can manage execution environments from the actions menu in the environment list or panel. From the actions menu, you can Share execution environments with anyone in your organization or Delete the execution environment:
暗黙の環境共有
環境は、明示的に共有されない限り、他のユーザーがレジストリで利用することはできません。 しかし、それは、ユーザーがそのタスクを含むブループリントを使用することを制限するものではありません。 詳細については暗黙の共有の説明を参照してください。