Update container configuration
You can bring custom Docker images into your machine learning workflows. A key aspect of
      customizing these images is configuring the container configurations, or ContainerConfig. The following page provides an example on how to
      configure your ContainerConfig. 
An entrypoint is the command or script that runs when the container starts. Custom entrypoints enable you to set up your environment, initialize services, or perform any necessary setup before your application launches.
This example provides instructions on how to configure a custom entrypoint, for your JupyterLab application, using the AWS CLI. This example assumes that you have already created a custom image and domain. For instructions, see Attach your custom image to your domain.
- 
        First set your variables for the AWS CLI commands that follow. APP_IMAGE_CONFIG_NAME=app-image-config-nameENTRYPOINT_FILE=entrypoint-file-nameENV_KEY=environment-keyENV_VALUE=environment-valueREGION=aws-regionDOMAIN_ID=domain-idIMAGE_NAME=custom-image-nameIMAGE_VERSION=custom-image-version- 
            app-image-config-name
- 
            entrypoint-file-nameentrypoint.sh.
- 
            environment-key
- 
            environment-value
- 
            aws-region
- 
            domain-id
- 
            custom-image-nameIf you followed the instructions in Attach your custom image to your domain, you may want to use the same image name you used in that process. 
- 
            custom-image-version
 
- 
            
- 
        Use the CreateAppImageConfigAPI to create an image configuration.aws sagemaker create-app-image-config \ --region ${REGION} \ --app-image-config-name "${APP_IMAGE_CONFIG_NAME}" \ --jupyter-lab-app-image-config "ContainerConfig = { ContainerEntrypoint = "${ENTRYPOINT_FILE}", ContainerEnvironmentVariables = { "${ENV_KEY}"="${ENV_VALUE}" } }"
- 
        Use the UpdateDomainAPI to update the default settings for your domain. This will attach the custom image as well as the application image configuration.aws sagemaker update-domain \ --region ${REGION} \ --domain-id "${DOMAIN_ID}" \ --default-user-settings "{ \"JupyterLabAppSettings\": { \"CustomImages\": [ { \"ImageName\": \"${IMAGE_NAME}\", \"ImageVersionNumber\": ${IMAGE_VERSION}, \"AppImageConfigName\": \"${APP_IMAGE_CONFIG_NAME}\" } ] } }"