Configuring the environment for service custom deployment
-
Create a Docker image in the project and install necessary dependencies in the build script. Build the image.
-
Create a secret with a password for your container registry. If you use the Yandex Container Registry registry, authenticate using the authorized key for your service account that has the required roles and is specified in the project settings. To generate the authorized key, run the command in the CLI:
yc iam key create --service-account-id <service_account_ID> -o key.json
The contents of the
key.json
file will serve as the password for the service account<service_account_ID>
. -
Upload the Docker image to the container registry. To do this, run the cell with the code:
#!:docker-publish <image_name>:<image_tag> cr.yandex/<registry_path>:<tag>
<image_name>
: Image name in DataSphere.<image_tag>
: Image tag in DataSphere.<registry_path>
: Container Registry registry path.<tag>
: Image tag.
During the uploading, specify the username and choose a secret with a password. For authorization in Container Registry, provide the
json_key
token type as username and enter the secret as password. -
In the node creation form, specify the path to the image in
cr.yandex/<registry_path>:<tag>
format.