feat(mobile): auto-install Docker for Android container backend - #511
Open
miaowmint wants to merge 5 commits into
Open
feat(mobile): auto-install Docker for Android container backend#511miaowmint wants to merge 5 commits into
miaowmint wants to merge 5 commits into
Conversation
- New docker_install.py: latency-race install sources (official download.docker.com + CN mirrors, no geo detection; official wins → no DOWNLOAD_URL override), run official get.docker.com script, probe Tencent Cloud registry mirror reachability and merge registry-mirrors into /etc/docker/daemon.json (backup kept) only after a fresh install. - install_mobile_stream: when Docker is missing on Linux with root/passwordless sudo, attempt the automatic install first and continue with the container install when the daemon is ready; otherwise fall back to the manual-install error. - i18n (backend en/zh + dashboard locales) and install-guide copy updated; CHANGELOG entry added. - Unit tests for source selection, daemon.json merge, probe, and the install stream branches (auto-install ok / fail / no-sudo).
os.geteuid() does not exist on Windows, breaking mypy in CI. Reuse the existing octop.infra.utils.posix_compat.geteuid() shim like the rest of the codebase.
- Vendor install-docker.sh (official get.docker.com script with TencentOS / OpenCloudOS releasever mapping and mirror-domain rewrites) into scripts/linux/v1.0/ so unsupported-by-online-script distros still install and we never pipe the network straight into sh; wheel ships it via the existing **/*.sh package rule. - auto_install_docker_stream runs the bundled script with the raced DOWNLOAD_URL env var instead of curl|sh (curl pipe used to swallow download failures). - Error compatibility: classify script output tail against known failure modes (unsupported distro, no root, network/curl, package manager lock, GPG key, disk full, existing docker) and append a localized fix hint; dedicated messages for spawn failure, stalled output (read watchdog), and missing bundled script; restart-failure message now tells how to start Docker manually. - Tests: error classification, bundled-script presence, missing-script stream, friendly-hint emission; full mobile suite green (57).
…pr-511 # Conflicts: # CHANGELOG.md
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
Target branch
develop(feature / fix — default)main(release/*orhotfix/*only)Type of change
Test plan
make allpasses locallyChecklist
CHANGELOG.md(if user-facing)