Add Docker-based macOS workflow and headless CLI#7
Open
aalksii wants to merge 2 commits intoDaekkyn:masterfrom
Open
Add Docker-based macOS workflow and headless CLI#7aalksii wants to merge 2 commits intoDaekkyn:masterfrom
aalksii wants to merge 2 commits intoDaekkyn:masterfrom
Conversation
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
This PR makes Brickr much easier to run on modern macOS systems, especially Apple Silicon, by adding a Docker-based workflow and a headless CLI path.
Changes included:
binvoxpath with a Python voxelizer flow that works reliably in the containerWhy
The original project is older and difficult to run on a modern macOS machine, particularly on Apple Silicon. The bundled Linux
binvoxbinary also fails in this environment, which blocks mesh import.This PR provides a practical path to keep the project usable today:
CLI Example
docker run --rm \ --platform=linux/amd64 \ --entrypoint /opt/brickr/brickr \ -e BINVOX_PATH=/opt/brickr/tools/obj_to_binvox.py \ -e QT_QPA_PLATFORM=offscreen \ -v "$PWD/output:/opt/brickr/output" \ brickr:local \ --cli \ --input /opt/brickr/models/toyplane.obj \ --resolution 30 \ --print-stats \ --export-obj /opt/brickr/output/toyplane.obj \ --save-instructions /opt/brickr/output/toyplane.svg