-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add scie-based single binary distributions #1680
Merged
Merged
Conversation
This file contains 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
- TODO: backend.ai-cli does not recognize the entrypoint of Client SDK.
- We have to support air-gapped/offline setups
Run `pants --tag='-wheel' package ::`
achimnol
added a commit
that referenced
this pull request
Nov 2, 2023
Backported-from: main Backported-to: 23.09
This was referenced Nov 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
comp:client
Related to Client component
comp:installer
Related to Installer
comp:manager
Related to Manager component
comp:storage-proxy
Related to Storage proxy component
comp:webserver
Related to Web Server component
size:XL
500~ LoC
type:feature
Add new features
urgency:4
As soon as feasible, implementation is essential.
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.
The following command will build single-binary self-contained self-bootstrapping executables under
dist/
for the current platform.pants --tag='-wheel' package ::
You could execute each service like:
./backendai-manager-{platform} mgr start-server ./backendai-agent-{platform} ag start-server ./backendai-storage-proxy-{platform} storage start-server ./backendai-webserver-{platform} web start-server ./backendai-agent-watcher-{platform} # this is a direct wrapper of watcher.py
You could execute the client SDK's CLI commands like:
Hacking around the scie distributions
You could directly run the unzipped standalone Python build and the pex distribution after the first run like:
$ .cache/nce/3e26a672df17708c4dc928475a5974c3fb3a34a9b45c65fb4bd1e50504cc84ec/cpython-3.11.6+20231002-aarch64-unknown-linux-gnu-install_only.tar.gz/python/bin/python3 .cache/nce/a179cb83d7f37fb3ac1e1998712a8585937c7f73bce851ad555e2d69e0f966f5/src.ai.backend.install/pex.pex
To check out the hash digest values, you could run:
Checklist: (if applicable)