Skip to content

feat(ci): [IN-951] add arm64 platform to docker image builds#124

Draft
M0Rf30 wants to merge 7 commits into
develfrom
IN-951
Draft

feat(ci): [IN-951] add arm64 platform to docker image builds#124
M0Rf30 wants to merge 7 commits into
develfrom
IN-951

Conversation

@M0Rf30
Copy link
Copy Markdown
Contributor

@M0Rf30 M0Rf30 commented Jun 1, 2026

Adds arm64 multi-arch support. Depends on jenkins-lib-common#108 (forwards per-image platforms through dt3_pipeline). RUN groupadd/useradd moved to $BUILDPLATFORM prep stage; RUN chmod => COPY --chmod. PKGBUILD arch includes aarch64. Arm64 native binary is produced via Mandrel cross-compile (--target=aarch64-linux-gnu) in the nativeBuild Maven stage — see the dt3 pipeline for cross-compile flags.

@sonarqube-zextras
Copy link
Copy Markdown

@M0Rf30 M0Rf30 marked this pull request as draft June 2, 2026 12:24
ZxBot and others added 4 commits June 2, 2026 19:26
Use a two-stage build: prep stage (BUILDPLATFORM) copies the
arch-correct runner from app/target/ (amd64) or app/target-arm64/ (arm64)
into a fixed /tmp/runner path, so the final stage has zero target-arch
RUN instructions (no QEMU exec-format errors).

Binary sources populated by dt3_pipeline:
  amd64 → app/target/*-runner
  arm64 → app/target-arm64/*-runner
… by CI

The nativeBuild stage places the runner binary in srcdir before yap runs.
build() previously used 'return 0' which is invalid when yap executes the
function body as a standalone script (not sourced). Replaced with a no-op.
Removed makedepends on maven/openjdk since the binary is pre-built.
@M0Rf30 M0Rf30 force-pushed the IN-951 branch 2 times, most recently from ac45eee to 0a8c7d1 Compare June 2, 2026 21:29
…l context

yap executes build() body as a standalone script; 'return' is invalid
outside a function. Restructured to if/else — when runner is absent
(manual local build), Maven runs as fallback. CI always passes -n to
yap so build() is skipped entirely when binary is pre-built.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants