Skip to content
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

~/.rpmmacros and ~/rpmbuild files are owned by root user #1

Open
bschonec opened this issue Jun 7, 2022 · 3 comments
Open

~/.rpmmacros and ~/rpmbuild files are owned by root user #1

bschonec opened this issue Jun 7, 2022 · 3 comments

Comments

@bschonec
Copy link

bschonec commented Jun 7, 2022

I'm using your image to build RPM packages on Gitlab with CI/CD pipelines. I need to modify the /home/rpmbuilder/.rpmmacros file so that the Gitlab pipeline can find the resulting SRPM and RPM files but since the file/directory are owned by root, I have to "sudo echo My_Great_Macro 1 >> ~/.rpmmacros".

This is a bit jankey and I recommend ensuring the .rpmmacros and rpmbuild file/directory are owned by the rpmbuilder user.

@bschonec
Copy link
Author

bschonec commented Jun 7, 2022

Since Centos 8 is deprecated and the yum repos archived, I'm closing this issue.

@bschonec bschonec closed this as completed Jun 7, 2022
@ju5t
Copy link
Contributor

ju5t commented Jun 7, 2022

@bschonec it may be worthwhile to switch to Rocky or Alma. Also, if you could PR what you're after we could implement that. Although to be fair, this is not a package we use very often ourselves.

edit: both version are currently available on Docker Hub. We've dropped the old CentOS 8 version.

@ju5t ju5t reopened this Jun 7, 2022
@bschonec
Copy link
Author

bschonec commented Jun 7, 2022

Ironic that you state that you don't use this very often as it was the second hit from DuckDuckGo for "docker rpmbuid image". 😊

I'll put together a PR tomorrow.

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

No branches or pull requests

2 participants