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

Support CentOS #275

Open
mvala opened this issue Sep 26, 2019 · 43 comments
Open

Support CentOS #275

mvala opened this issue Sep 26, 2019 · 43 comments
Labels
2. Images Images for creating toolbox containers

Comments

@mvala
Copy link

mvala commented Sep 26, 2019

Is there a way to run centos 7 image via toolbox?

@thmo
Copy link

thmo commented Oct 4, 2019

Same question for CentOS8, now that it is available.

@debarshiray
Copy link
Member

There are no pre-canned Toolbox images for CentOS like we have for Fedora. That said, you can always create your own using a Dockerfile and use the --image flag to point to it.

Take a look at the Fedora Dockerfiles in the image sub-directory and the contents of the toolbox-experience and toolbox-support RPM packages. You just need to ensure that the image has some baseline command line utilities.

@erazemk
Copy link
Contributor

erazemk commented Oct 4, 2019

@debarshiray How would I do this for the Arch base image from dockerhub? I don't know what url to add after --image.

@mvala
Copy link
Author

mvala commented Oct 7, 2019

So can i make pull request for centos image? To the same directory as you have for fedora?

@kronenpj
Copy link

@mvala Take a look at PR #286, see if that does what you need it to.

@mvala
Copy link
Author

mvala commented Oct 14, 2019

Yes, this is it

@HarryMichal HarryMichal added the 2. Images Images for creating toolbox containers label Oct 15, 2019
@mvala
Copy link
Author

mvala commented Jan 29, 2020

Any news on this issue?

@HarryMichal
Copy link
Member

From our side no news. We're currently focused on rewriting toolbox.

@mvala
Copy link
Author

mvala commented Jan 29, 2020

Ah, i see. Will it support centos X images?

@HarryMichal
Copy link
Member

Currently the goal is to get the original functionality and then we want to add new functionality.

@mvala
Copy link
Author

mvala commented Jan 30, 2020

Ok. I see. Will it be version 0.1.XX?

@HarryMichal
Copy link
Member

Probably yes.

@mvalahtv
Copy link

Any updates?

@HarryMichal
Copy link
Member

@mvalahtv, we're still putting v0.1.0 together. Feel free to check out #286 and try it locally on your machine.

@mvalahtv
Copy link

I've just tested it and it looks fine to me.

@HarryMichal HarryMichal added this to Needs triage in Priority Board Jul 28, 2020
@juhp
Copy link
Contributor

juhp commented Oct 7, 2020

https://github.com/kronenpj/toolbox/tree/master/images/centos/7

@mvala
Copy link
Author

mvala commented Nov 2, 2021

I am producing base c7 here : registry.gitlab.com/ndmspc/user/c7:toolbox

@debarshiray debarshiray changed the title toolbox and centos 7 image Support CentOS Dec 3, 2021
@debarshiray
Copy link
Member

debarshiray commented Dec 3, 2021

Due to the change in focus of the CentOS Project, it doesn't make sense to push forward with CentOS support. Specifically RHEL 7 or CentOS 7 is too old by this point to consider supporting it out-of-the-box, because it will inevitably need fixes to the OS, which are very unlikely to be accepted at this point.

Instead, we are going to do this via Red Hat's Universal Base Image.

We already have a UBI-based toolbox image for RHEL >= 8.5:
https://catalog.redhat.com/software/containers/ubi8/toolbox/611bd665bd674341b5c5ed46?container-tabs=dockerfile

@debarshiray
Copy link
Member

See #791

@mcatanzaro
Copy link

Instead, we are going to do this via Red Hat's Universal Base Image.

This is a shame, because CentOS has everything needed to build for RHEL, but RHEL itself does not. And UBI is a small subset of RHEL, though in my case that doesn't even matter. My goal today was "build WebKitGTK," but it's just not possible to do with RHEL because required -devel packages are buildroot only. In contrast, CentOS has a more normal distro setup without the self-sabotage. I think Toolbx images for c8s or c9s would be very useful, whereas UBI is just not enough to do what I want.

@debarshiray
Copy link
Member

Instead, we are going to do this via Red Hat's Universal Base Image.

This is a shame, because CentOS has everything needed to build for RHEL,
but RHEL itself does not. And UBI is a small subset of RHEL,

[...]

I think Toolbx images for c8s or c9s would be very useful, whereas UBI is just
not enough to do what I want.

People can still use their own custom CentOS images. There's nothing stopping that.

As far as out-of-the-box support is concerned, we already have UBI images for Toolbox (for various RHEL and RHCOS use-cases that we can't get into here), and we spent a very considerable amount of energy getting those done. So it doesn't make sense to add another flavour of RHEL before wrapping up the UBI work.

Also, the whole CentOS Stream and UBI space is fresh and constantly evolving. So, I think it's wise to wait for things to settle down.

@Conan-Kudo
Copy link

As far as out-of-the-box support is concerned, we already have UBI images for Toolbox (for various RHEL and RHCOS use-cases that we can't get into here), and we spent a very considerable amount of energy getting those done. So it doesn't make sense to add another flavour of RHEL before wrapping up the UBI work.

Well, the main problem with UBI is the massively incomplete userspace. If RHEL UBI had the complete RHEL userspace, then sure, there's no real reason to use CentOS here. (cc: @fatherlinux).

@fatherlinux
Copy link

The questions are, in my mind are:

  1. Is the market aware of the free RHEL Developer subscription permitting use of up to 16 nodes?
  2. Is the market aware of how much easier subscription management has gotten with RHEL?
  3. Given Add SSH_AUTH_SOCK #1 and Unable to start container #2, is it still too difficult to use subscriptions with UBI + RHEL content.

Personally I think the minor speed bump to use the RHEL content is worth the value.

Best Regards
Scott M

@Conan-Kudo
Copy link

Getting subscription-manager to work properly on Fedora Linux is a pain (it doesn't work right now on my Fedora Linux 35 system). It is also pretty much not available in any other distribution, so that nullifies 1 and 2.

@mcatanzaro
Copy link

mcatanzaro commented Dec 10, 2021 via email

@tpopela
Copy link
Collaborator

tpopela commented Dec 13, 2021

@mcatanzaro ask the maintainers to ship the required -devel packages in AppStream or CRB?

@mcatanzaro
Copy link

ask the maintainers to ship the required -devel packages in AppStream or CRB?

Why should I have to do that? What a waste of everybody's time! I would rather just use CentOS.

@tpopela
Copy link
Collaborator

tpopela commented Dec 13, 2021

It's not relevant who will do it. Your reply sounded like there's no way to go and I just wanted to be explicit about a way that exists.

@fatherlinux
Copy link

To be clear -devel packages are a RHEL issue, not a UBI issue, but I get it. I spoke with Josh Boyer about this problem the other day, and it's my understanding that each SST is left to make it's own decisions about whether to ship the -devel packages. It's mostly a resource problem. Each team has unlimited wants being asked of them, but they have limited resources to accomplish those asks.

@mcatanzaro
Copy link

To be clear -devel packages are a RHEL issue, not a UBI issue

In fact, that's my point. Even if UBI provided everything that RHEL does, it still wouldn't be a suitable replacement for CentOS. Having an official CentOS Stream toolbox image would still be very useful. (Ditto for Alma and Rocky.)

@fatherlinux
Copy link

Wouldn't Alma and Rocky have the exact same problems as RHEL?

@mcatanzaro
Copy link

Wouldn't Alma and Rocky have the exact same problems as RHEL?

No, I just tested Rocky and it has all -devel packages available in PowerTools. Pretty sure CentOS is the same.

@fatherlinux
Copy link

fatherlinux commented Dec 13, 2021 via email

@mcatanzaro
Copy link

No way? Maybe you misread something?

No, I just tested Rocky and it has all -devel packages available in PowerTools. Pretty sure CentOS is the same.

Ah, that said, my test was totally wrong. I was comparing RHEL without CRB to CentOS with PowerTools enabled. Oops. RHEL actually does have the -devel packages required to build what I need to build. So I'm not sure about this anymore.

The point about UBI stands though....

@Conan-Kudo
Copy link

For what it's worth, PowerTools content in CentOS should be identical to CRB content in RHEL. For EL9, CRB is CRB for both CentOS and RHEL. If you can do it with CRB on RHEL, then RHEL UBI with all the userspace would satisfy this need.

@fatherlinux
Copy link

fatherlinux commented Dec 13, 2021 via email

@Conan-Kudo
Copy link

CRB is absolutely enabled by default on RHEL UBI.

ngompa@localhost ~> podman run --rm -it ubi8
[root@d716688806a2 /]# dnf repolist
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

repo id                 repo name
ubi-8-appstream         Red Hat Universal Base Image 8 (RPMs) - AppStream
ubi-8-baseos            Red Hat Universal Base Image 8 (RPMs) - BaseOS
ubi-8-codeready-builder Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder

If it wasn't, it'd be much more painful to use.

@fatherlinux
Copy link

fatherlinux commented Dec 14, 2021 via email

@gotmax23
Copy link

A CentOS Stream 8/9 toolbox image would be great. Is there any progress here? I wanted to create one myself based on the existing UBI version1, but I ran into a roadblock due to the incomplete publicly available source code. The Containerfile seems to be a copy of the Fedora one but with different missing-docs and extra-packages files. Unfortunately, those two files are not publicly available. I would appreciate any advice you can give.

@ericcurtin
Copy link

Same question as @gotmax23

sudo toolbox enter -d centos -r stream9
Error: invalid argument for '--distro'
Distribution centos is unsupported.
Run 'toolbox --help' for usage.

says CentOS is still not supported. Am curious because most of this conversation happened before CentOS Stream 9 even existed. What is missing for CentOS Stream 9 support? Or is it something as simple as adding CentOS Stream 9 to the supported list?

@Minkiu
Copy link

Minkiu commented Apr 26, 2023

Hey there, to anyone that stumbles on this issue, I believe most of the conversation moved to this one: #1019 so this one could probably be closed.

The conversation boils down to community images for toolbox are managed separately in the following repository: https://github.com/toolbx-images/images

Which are hosted on Quay:
https://quay.io/organization/toolbx-images

So if you want a CentOS image toolbox you can get it with:
toolbox create --image quay.io/toolbx-images/centos-toolbox centos-stream-9

Cheers!

@Conan-Kudo
Copy link

I expect that toolbox should DTRT out of the box on CentOS Stream and use CentOS Stream containers. I don't want UBI toolboxes on a CentOS system.

@ericcurtin
Copy link

Yeah we should probably close this.

I thought we still didn't have CentOS Stream toolboxes based on this issue still being open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. Images Images for creating toolbox containers
Projects
No open projects
Priority Board
  
Needs triage
Development

No branches or pull requests