Skip to content

[CICD] add RPM packaging support for RHEL/Rocky/OpenEuler#394

Open
shiptux wants to merge 5 commits into
flagos-ai:mainfrom
shiptux:pr/rpm-packaging
Open

[CICD] add RPM packaging support for RHEL/Rocky/OpenEuler#394
shiptux wants to merge 5 commits into
flagos-ai:mainfrom
shiptux:pr/rpm-packaging

Conversation

@shiptux
Copy link
Copy Markdown
Contributor

@shiptux shiptux commented Feb 26, 2026

PR Category

CICD

PR Types

Others

PR Description

Add complete RPM packaging infrastructure:

  • RPM spec file with conditional backend builds (nvidia, metax, ascend)
  • Dockerfiles for NVIDIA (Rocky Linux 8) and Ascend (OpenEuler 24.03)
  • Parameterized build script (build-flagcx-rpm.sh)
  • GitHub Actions workflow for automated RPM builds
  • Proper SONAME and RPATH handling via patchelf
  • ASL 2.0 license identifier for RPM compliance

Add complete RPM packaging infrastructure:
- RPM spec file with conditional backend builds (nvidia, metax, ascend)
- Dockerfiles for NVIDIA (Rocky Linux 8) and Ascend (OpenEuler 24.03)
- Parameterized build script (build-flagcx-rpm.sh)
- GitHub Actions workflow for automated RPM builds
- Proper SONAME and RPATH handling via patchelf
- ASL 2.0 license identifier for RPM compliance
… backend

- Rewrite flagcx.spec to use %{backend} dynamic package names,
  reducing 222 lines to ~90 lines and eliminating empty sub-packages
- Merge three per-backend Dockerfiles into unified Dockerfile.rpm
  with BASE_IMAGE and BACKEND build args
- Add MetaX RPM support via Rocky Linux 8 + MACA SDK yum repo
- Extract version from spec via grep instead of hardcoding in Dockerfiles
- Add --network=host to docker build for DNS reliability
- Add PR-REVIEW-ISSUES.md for tracking remaining items
shiptux added 2 commits March 22, 2026 21:29
The Docker Buildx setup step was removed from the GitHub Actions workflow for building RPM packages. This suggests that the RPM build process no longer requires Docker Buildx capabilities, potentially simplifying the build environment or moving to a different build approach.
@shiptux shiptux changed the title feat(packaging): add RPM packaging support for RHEL/Rocky/OpenEuler [CICD] add RPM packaging support for RHEL/Rocky/OpenEuler Mar 31, 2026
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.

1 participant