Custom images
If you need functionality that is different than what's provided by SageMaker distribution, you can bring your own image with your custom extensions and packages. You can also use it to personalize the Code Editor UI for your own branding or compliance needs.
The following page will provide Code Editor-specific information and templates to create your own custom SageMaker AI images. This is meant to supplement the Amazon SageMaker Studio information and instructions on creating your own SageMaker AI image and bringing your own image to Studio. To learn about custom Amazon SageMaker AI images and how to bring your own image to Studio, see Bring your own image (BYOI).
Health check and URL for applications
-
Base URL
– The base URL for the BYOI application must beCodeEditor/default
. You can only have one application and it must always be nameddefault
. -
Health check endpoint – You must host your Code Editor server at 0.0.0.0 port 8888 for SageMaker AI to detect it.
-
Authentication – You must pass
--without-connection-token
when openingsagemaker-code-editor
to allow SageMaker AI to authenticate your users.
Note
If you are using Amazon SageMaker Distribution as the base image, these requirements are
already taken care of as part of the included entrypoint-code-editor
script.
Dockerfile examples
The following examples are Dockerfile
s that meets the above
information and Custom image specifications.
Note
If you are bringing your own image to SageMaker Unified Studio, you will need to follow the Dockerfile specifications in the Amazon SageMaker Unified Studio User Guide.
Dockerfile
examples for SageMaker Unified Studio can be found in Dockerfile example in the Amazon SageMaker Unified Studio User
Guide.