-
Notifications
You must be signed in to change notification settings - Fork 6
Add fedora/rpm package build support #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
bwarden
merged 16 commits into
qualcomm-linux:main
from
bwarden:feat/add-fedora-support
Apr 14, 2026
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
da54846
Clarify --rebuild argument for docker_deb_build
bwarden 686bde9
Initial attempt to support RPM package builds
bwarden cb60e50
Strip comments from extra packages files
bwarden 856a504
Fix image->image_name in error message
bwarden 6454c09
Make docker_deb_build only build debian/ubuntu images
bwarden 9df4758
Properly build suite_name including family for RPM distros
bwarden 6b4a30c
Fix DNF commands
bwarden d0c5bd0
Enable building RPM docker images in workflow
bwarden 92f2c6e
Add packages necessary for kernel builds
bwarden cd13c61
Separate debian and RPM docker image build workflow jobs
bwarden 51e1d23
Replace unnecessary unicode characters with ASCII equivalents
bwarden 079d94b
Implement upload actions, with intrinsic login method
bwarden e77cc43
docker_rpm_build: Remove build_arch and unify with docker_deb_build.p…
bwarden 4a63039
Condense workflows back into qcom-container-build-and-upload
bwarden 547196d
Fix missing ) in shell script for uploading images
bwarden 40bdc76
When no distro specified with --rebuild, build *all* RPM distros
bwarden File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # Fedora 44 base image for ARM64 | ||
| FROM fedora:44 | ||
|
|
||
| # Avoid interactive prompts during dnf operations | ||
| ENV DNF_YES=1 | ||
|
|
||
| # Install essential build tools and RPM utilities | ||
| COPY base-packages.fedora.txt /tmp/base-packages.txt | ||
| RUN sed -i 's/#.*$//' /tmp/base-packages.txt | ||
| RUN if [[ -n $(</tmp/base-packages.txt) ]]; then dnf install -y $(</tmp/base-packages.txt) && \ | ||
| dnf clean all && \ | ||
| rm -rf /var/cache/dnf; \ | ||
| else true; fi | ||
|
|
||
| # Install any extra packages required for the build environment | ||
| COPY extra-packages.fedora.txt /tmp/extra-packages.txt | ||
| RUN sed -i 's/#.*$//' /tmp/extra-packages.txt | ||
| RUN if [[ -n $(</tmp/extra-packages.txt) ]]; then dnf install -y $(</tmp/extra-packages.txt) && \ | ||
| dnf clean all && \ | ||
| rm -rf /var/cache/dnf; \ | ||
| else true; fi | ||
|
|
||
| # Workspace for mounting sources/outputs (your script already bind-mounts /workspace) | ||
| WORKDIR /workspace | ||
|
|
||
| # Default shell | ||
| CMD ["bash"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # Fedora Rawhide (unstable) base image for ARM64 | ||
| FROM fedora:rawhide | ||
|
|
||
| # Avoid interactive prompts during dnf operations | ||
| ENV DNF_YES=1 | ||
|
|
||
| # Install essential build tools and RPM utilities | ||
| COPY base-packages.fedora.txt /tmp/base-packages.txt | ||
| RUN sed -i 's/#.*$//' /tmp/base-packages.txt | ||
| RUN if [[ -n $(</tmp/base-packages.txt) ]]; then dnf install -y $(</tmp/base-packages.txt) && \ | ||
| dnf clean all && \ | ||
| rm -rf /var/cache/dnf; \ | ||
| else true; fi | ||
|
|
||
| # Install any extra packages required for the build environment | ||
| COPY extra-packages.fedora.txt /tmp/extra-packages.txt | ||
| RUN sed -i 's/#.*$//' /tmp/extra-packages.txt | ||
| RUN if [[ -n $(</tmp/extra-packages.txt) ]]; then dnf install -y $(</tmp/extra-packages.txt) && \ | ||
| dnf clean all && \ | ||
| rm -rf /var/cache/dnf; \ | ||
| else true; fi | ||
|
|
||
| # Workspace for mounting sources/outputs (your script already bind-mounts /workspace) | ||
| WORKDIR /workspace | ||
|
|
||
| # Default shell | ||
| CMD ["bash"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Core packages required for building RPMs on Fedora Rawhide | ||
| bison | ||
| ca-certificates | ||
| ccache | ||
| curl | ||
| dnf | ||
| elfutils-libelf-devel | ||
| flex | ||
| gcc | ||
| git | ||
| libdwarf-devel | ||
| make | ||
| ncurses-devel | ||
| openssl-devel | ||
| python3 | ||
| python3-pip | ||
| qt-devel | ||
| rpm-build |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Additional optional packages for RPM build environment | ||
| # (can be left empty if not needed) |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| [extra-repo] | ||
| name=Extra Packages for Rawhide | ||
| baseurl=https://qartifactory-edge.qualcomm.com/artifactory/qsc-rpm-releases/$basearch/ | ||
| enabled=1 | ||
| gpgcheck=0 |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.