mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-29 18:51:43 +02:00
* Add override file for ARM64 setups. This commit adds an override file which explicitly specifies the container platform to be linux/amd64. It forces docker to pull/build/run the amd64 image (even on arm64 hosts). Assuming binfmt support is set up, this will run the amd64 applications via emulation. * Add arm64 override file information to README. Adds a section covering the experimental setup for arm64 hosts to the README. * Make the ARM64 override survive the next compose command (#1900) The override only applies while both -f flags are on the command line, and every other instruction in this README is written bare. An ARM64 user who followed the update steps would drop the platform pin without noticing: a manifest error today, and a silent switch off emulation once native ARM64 images ship. The quick start now writes COMPOSE_FILE into .env, so the rest of the file works unchanged on ARM64 -- verified both ways, with and without that line. Two things the setup needs stated where it is read rather than one hop away in the wiki: binfmt has to be registered on the host or the container dies with "exec format error", and emulation costs roughly 3-6x native slice time. Both now lead the section, and the separate-x86_64-box route stays the recommendation it was -- emulation is the fallback for people who have no second machine, not a replacement. The compose file's own header said ARM64 was a dead end. It now points at the override, for anyone who reads the stack instead of the README. --------- Co-authored-by: MartinNYHC <martin@bambuddy.cool> Co-authored-by: maziggy <mz@v8w.de>
28 lines
1.2 KiB
YAML
28 lines
1.2 KiB
YAML
# Override file for the slicer-api sidecar stack on ARM64 (experimental).
|
|
#
|
|
# Pins both sidecars to the linux/amd64 images so they run under QEMU
|
|
# emulation on an ARM64 host. The host must have QEMU binfmt registered
|
|
# first (qemu-user-static + binfmt-support on Debian/Ubuntu) or the
|
|
# containers fail with "exec format error". Expect roughly 3-6x slower
|
|
# slicing than native — a stopgap until native ARM64 images ship.
|
|
#
|
|
# This file is not meant to be used on its own. It is intended to be used in
|
|
# combination with the default docker-compose file, for example:
|
|
# docker compose -f docker-compose.yml -f docker-compose.arm64.yml up -d
|
|
#
|
|
# Both -f flags are needed on EVERY compose command, not just the first, so
|
|
# put this line in .env instead and the plain commands in the README work
|
|
# unchanged:
|
|
# COMPOSE_FILE=docker-compose.yml:docker-compose.arm64.yml
|
|
#
|
|
# For any setup questions, see the 'Server-Side Slicing (Slicer API)' page in
|
|
# the Bambuddy wiki. Also check the README and default compose file in this
|
|
# directory for usage instructions and other details.
|
|
|
|
services:
|
|
orca-slicer-api:
|
|
platform: linux/amd64
|
|
|
|
bambu-studio-api:
|
|
platform: linux/amd64
|