GH-50358: [Release] Fix permission issues on Dockerfile on new binary signing image#50359
Open
raulcd wants to merge 1 commit into
Open
GH-50358: [Release] Fix permission issues on Dockerfile on new binary signing image#50359raulcd wants to merge 1 commit into
raulcd wants to merge 1 commit into
Conversation
…binary signing image
|
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses a release-blocking failure in the Debian trixie-based binary signing image where rpm --import cannot write to the RPM database under /var/lib/rpm, preventing RPM artifact signing/upload during release automation.
Changes:
- Adjusts filesystem permissions in the signing Docker image to allow RPM DB writes during signing.
|
|
||
| RUN gem install apt-dists-merge -v ">= 1.0.2" | ||
|
|
||
| RUN chmod 1777 /var/lib/rpm |
Member
|
Thanks! But I want to try the following: diff --git a/dev/release/binary-task.rb b/dev/release/binary-task.rb
index 254ca547fa..ce2bb3f15b 100644
--- a/dev/release/binary-task.rb
+++ b/dev/release/binary-task.rb
@@ -1930,7 +1930,8 @@ APT::FTPArchive::Release::Description "#{apt_repository_description}";
"--export", gpg_key_id,
out: gpg_key.path,
verbose: verbose?)
- sh("rpm",
+ sh("sudo",
+ "rpm",
"--import", gpg_key.path,
out: default_output,
verbose: verbose?)Can we try the |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Rationale for this change
We updated from bookworm to trixie our binary signing image. When trying to sign the packages it failed with the following error:
What changes are included in this PR?
Change permissions for
/var/lib/rpminside container.Are these changes tested?
Yes, I've used that to upload and sign binaries.
Are there any user-facing changes?
No