stack/docker/local-emulator
BilalG1 5399142db9
local emulator build improvements (#1330)
… V8 --jitless

2.6 GB to 1.3 GB final image

Flip arm64 matrix back to ubicloud-standard-8 so both arches share one
runner fleet. Cross-arch TCG on an amd64 host previously SIGTRAP'd in
migrations because V8's JIT emitted arm64 instructions that QEMU's
cross-arch translator mis-handled; pair the existing -cpu cortex-a72
fallback with NODE_OPTIONS=--jitless on the migration docker exec to
force V8 to stay on the interpreter. Does not affect amd64 migrations
(KVM, no TCG).

<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Chores**
* Optimized emulator images with binary stripping, compression, and
preservation of standalone runtime dependencies.
* Improved multi-architecture build matrix, added optional KVM
detection/fallback, and gated certain emulator runtime steps for arm64.
* Enhanced build scripts to generate and include env files and persist
richer logs and artifacts.

* **New Features**
* Centralized provision entrypoint to streamline install → migrations →
slimming sequence.

* **Tests**
  * Added a fast QEMU serial boot test for architecture validation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-13 19:21:02 -07:00
..
qemu local emulator build improvements (#1330) 2026-04-13 19:21:02 -07:00
clickhouse-config.xml emu with a q stuff (#1266) 2026-04-04 00:33:52 +00:00
clickhouse-users.xml emu with a q stuff (#1266) 2026-04-04 00:33:52 +00:00
Dockerfile local emulator build improvements (#1330) 2026-04-13 19:21:02 -07:00
entrypoint.sh emu with a q stuff (#1266) 2026-04-04 00:33:52 +00:00
generate-env-development.mjs emu with a q stuff (#1266) 2026-04-04 00:33:52 +00:00
init-services.sh emu with a q stuff (#1266) 2026-04-04 00:33:52 +00:00
start-app.sh emu with a q stuff (#1266) 2026-04-04 00:33:52 +00:00
supervisord.conf emu with a q stuff (#1266) 2026-04-04 00:33:52 +00:00