incubator-devlake icon indicating copy to clipboard operation
incubator-devlake copied to clipboard

build: add CONTAINER_CMD/PLATFORM vars for cross-arch builds

Open base698 opened this issue 5 months ago • 0 comments

⚠️ Pre Checklist

Please complete ALL items in this checklist, and remove before submitting

  • [X] I have read through the Contributing Documentation.
  • [ ] I have added relevant tests.
  • [X] I have added relevant documentation.
  • [X] I will add labels to the PR, such as pr-type/bug-fix, pr-type/feature-development, etc.

Summary

This PR improves container build flexibility and unifies the JIRA epic collector to use the v3 /search/jql endpoint exclusively.

Key changes:

  • Makefiles
    • Introduces CONTAINER_CMD (defaults to docker) and PLATFORM (defaults to linux/amd64) for flexible builds across environments.
    • Updates all docker build commands to respect $(CONTAINER_CMD) and --platform=$(PLATFORM).
  • Backend Dockerfile
    • Adds -Wno-incompatible-pointer-types and USE_BUNDLED_ZLIB=ON to CMake flags for stable cross-compile of libgit2.

Does this close any open issues?

  • No

Screenshots

N/A


Other Information

Usage

  • make build-server-image CONTAINER_CMD=podman PLATFORM=linux/arm64

Motivation

  • Allow building on a MacBook Pro

base698 avatar Oct 14 '25 14:10 base698