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

We need a proper way of handling custom repo files #97

Closed
tunix opened this issue Jun 2, 2023 · 4 comments · Fixed by #107
Closed

We need a proper way of handling custom repo files #97

tunix opened this issue Jun 2, 2023 · 4 comments · Fixed by #107

Comments

@tunix
Copy link

tunix commented Jun 2, 2023

Sometimes we may want to add hardcoded repo files instead of downloading them on the fly as we do for COPR repo's. 1Password is an example to this scenario.

Placing the repo file inside /usr directory is OK when one wants to install it after the initial setup process. But for installing it during initial setup, we have to copy the repo files to /etc.

It'd be nice if we have an official and nice way of including such files.

@z0rrn
Copy link

z0rrn commented Jun 3, 2023

I had the same problem because I want VSCode in my image.

I have created a new repository, then I have uploaded the .repo file and I've just used the raw url as .repo link. This works great!

@blue-build blue-build deleted a comment from z0rrn Jun 4, 2023
@xynydev
Copy link
Member

xynydev commented Jun 4, 2023

I have created a new repository, then I have uploaded the .repo file and I've just used the raw url as .repo link. This works great!

You can also upload the file in the same repo as the image.

RE:
image
You posted the same comment twice.

@xynydev
Copy link
Member

xynydev commented Jun 4, 2023

Some solutions I'm thinking of rn:

  • Document adding .repo files in the repo and then putting the link to the raw file in the recipe
  • Merge /usr/etc/yum.repos.d/ into /etc/yum.repos.d/ before installing RPMs in the image
  • Document adding a line in the Containerfile to copy the .repo files to /etc/yum.repos.d/ directly

@z0rrn
Copy link

z0rrn commented Jun 4, 2023

You posted the same comment twice.

That was not intended.

@xynydev xynydev linked a pull request Jun 30, 2023 that will close this issue
RoyalOughtness referenced this issue in secureblue/secureblue Nov 27, 2023
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 a pull request may close this issue.

3 participants