fix(mendix-7,8): wire Mono for the Windows-only mxbuild toolchain - #10
Merged
Conversation
The MX7/MX8 CDN mxbuild tarball ships Windows .NET Framework .exe binaries (no native Linux modeler/mxbuild), so the MX9+-derived Dockerfiles died at the toolchain assert. Add mono-complete + an adaptive step: use modeler/mxbuild if native, else wrap modeler/mxbuild.exe (and mx.exe) via mono, else fail with an inventory. MX9/10/11 native path byte-for-byte unchanged. Verified: docker build :7 (7.23.8) + :8 (8.18.35) succeed; mxbuild --help loads under Mono; a real .mpr build (MoneyWorksPortal MX7/MX8) reaches consistency-check. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.
Problem
Building
ontologylabs/mendix-mxbuild:7and:8fails at the toolchain layer: the MX7/MX8 CDN tarballmxbuild-<version>.tar.gzships Windows.exebinaries (.NET Framework) — there is no native Linuxmodeler/mxbuild. Themendix-7/buildandmendix-8/buildDockerfiles were copied from the MX9+ template (native self-contained .NET Core binary): they install no Mono runtime and hard-asserttest -f modeler/mxbuild, so the build dies. MX9/10/11 are unaffected.Fix
In both
crates/mendix-{7,8}/build/Dockerfile:mono-completeto the apt layer;modeler/mxbuildif native; else ifmodeler/mxbuild.exeexists, write a wrapper#!/bin/sh; exec mono …mxbuild.exe "$@"(and the same formxwhenmx.exeis present — MX7 ships none); else fail with an inventory.The native path (MX9+) is byte-for-byte unchanged.
Verification (Ubuntu jammy, amd64)
docker buildsucceeds for:7(7.23.8.58888) and:8(8.18.35.97).docker run --entrypoint …/mxbuild <img> --helploads under Mono and prints the MxBuild banner..mprbuild (MoneyWorksPortal MX7/MX8) reaches the model consistency-check stage — mxbuild parses, synchronizes, and reports CE errors exactly like native mxbuild.🤖 Generated with Claude Code