incubator-devlake
incubator-devlake copied to clipboard
build: add CONTAINER_CMD/PLATFORM vars for cross-arch builds
⚠️ 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 todocker) andPLATFORM(defaults tolinux/amd64) for flexible builds across environments. - Updates all
docker buildcommands to respect$(CONTAINER_CMD)and--platform=$(PLATFORM).
- Introduces
-
Backend Dockerfile
- Adds
-Wno-incompatible-pointer-typesandUSE_BUNDLED_ZLIB=ONto CMake flags for stable cross-compile oflibgit2.
- Adds
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