Bake CloakBrowser instead of vanilla Chromium in the cloud slice pre-bake - #2520
Bake CloakBrowser instead of vanilla Chromium in the cloud slice pre-bake#2520minhtrinh-imbue wants to merge 4 commits into
Conversation
…bake Cloud slices are x86_64, so this mirrors default-workspace-template's own deferred_install.sh swap: apt-only playwright install-deps for shared libs, then a pinned, SHA256-verified CloakBrowser release unpacked to /opt/cloakbrowser. Two done-markers now (playwright_deps, cloakbrowser) so a loaded slice's deferred-install still no-ops correctly. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
For the CloakBrowser constants here (`_CLOAKBROWSER_VERSION`, `_CLOAKBROWSER_SHA256_X64`, `_CLOAKBROWSER_INSTALL_DIR`, `_CLOAKBROWSER_RELEASE_URL`) -- full context on where CloakBrowser came from, why it replaced Fortress/vanilla Chromium, the exact variable-by-variable breakdown (including the Playwright-vs-browser-use
These constants are a manually-kept-in-sync mirror of the ones in that repo's `scripts/deferred_install.sh` (row 7 in the doc's table) -- if you bump the version here, bump it there too, and vice versa. 🤖 Generated with Claude Code |
…tants Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ake swap Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Superseded — same reason as imbue-ai/default-workspace-template#290: switching to Fortress now that a native arm64 build exists (tiliondev/fortress#28). Cloud pre-bake changes will follow in a separate PR once the desktop-side deferred_install.sh swap lands. |
Summary
SliceVpsDockerProvider._build_cloakbrowser_derived_image, née_build_playwright_derived_image) now bakes CloakBrowser instead of vanilla Playwright-managed Chromium, matching the engine swap landing in default-workspace-template (see companion PR there).playwright install-deps chromiumfor the apt shared-libs only (no browser download), then curl+SHA256-verifies+unpacks a pinned CloakBrowser release (chromium-v146.0.7680.177.4, x64 -- cloud slices are x86_64 bare metal only) to/opt/cloakbrowser/.done.playwrightmarker intodone.playwright_deps+done.cloakbrowser, matching default-workspace-template'sdeferred_install.shsplit, so a loaded slice'sdeferred-installservice still no-ops on both steps.pool_bake.py'swait_for_deferred_installnow waits on the finaldone.cloakbrowsermarker.Test plan
slice_provider_test.py::test_build_cloakbrowser_derived_image_renders_marker_and_build_command-- passes, includes abash -nsyntax check on the generated Dockerfile RUN linepool_bake_test.py::test_wait_for_deferred_install_polls_for_marker_or_finished_process-- passesmain(not just the dev branch these edits were drafted against)🤖 Generated with Claude Code