feat(sdk): add Image.from_dockerfile() support#2
Open
Issac-Newton wants to merge 2 commits into
Open
Conversation
423985d to
8acab08
Compare
599c157 to
7a6ac2f
Compare
8acab08 to
dcc3f70
Compare
7a6ac2f to
92afac9
Compare
dcc3f70 to
3dbb73c
Compare
92afac9 to
343623a
Compare
b27e2ef to
e398eab
Compare
343623a to
a82bb59
Compare
Add AcrConfig (registry + builder_image) dataclasses, GET /acr_config API returning temporary ACR credentials via GetAuthorizationToken, and aliyun-python-sdk-cr as an explicit admin dependency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
e398eab to
edd681b
Compare
Add Image.from_dockerfile() API for building sandbox images from local Dockerfiles, with ImageBuilder, ImageRegistry, and BuilderConfig models. Includes user guide docs (en + zh-Hans) and SDK-side /acr_config integration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
a82bb59 to
ca74efd
Compare
edd681b to
e2b6cca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Image.from_dockerfile()SDK method to start sandboxes from a local Dockerfile, including content-hash-based tagging, build/push via a remote builder sandbox, and cache-hit detectionGET /client_configendpoint atSandbox.start()time — registry URL, namespace, temporary ACR credentials, and builder settingsImageRegistry/BuilderConfigvalues still override admin defaultsDepends on: alibaba#1101
refs alibaba#1101
Test plan
uv run pytest tests/unit/sdk/sandbox/test_image.py -v— 10 tests pass🤖 Generated with Claude Code