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

Upgrade to Ubuntu 20.04 or newer base image #163

Closed
silverwind opened this issue Jul 13, 2022 · 10 comments · Fixed by #209
Closed

Upgrade to Ubuntu 20.04 or newer base image #163

silverwind opened this issue Jul 13, 2022 · 10 comments · Fixed by #209

Comments

@silverwind
Copy link

xgo uses Ubuntu 18.04 which is incompatible with things like Node.js 18, a upgrade to Ubuntu 20.04 or 22.04 would be appreciated.

@RuboGubo

This comment was marked as off-topic.

@zeripath
Copy link
Collaborator

zeripath commented Jan 17, 2023

IIRC The problem is ABI compatibility with different glibcs in particular Centos 7 / RHEL7

@silverwind
Copy link
Author

silverwind commented Jan 17, 2023

FWIW, Ubuntu 18.04 will reach EOL in April. After that, only the paid version will get security updates.

@techknowlogick
Copy link
Owner

IIRC The problem is ABI compatibility with different glibcs in particular Centos 7 / RHEL7

Yeah, that's exactly the case. Last OS bump (from 16 to 18) caused gitea (and other projects that use XGO too) to fail on supported versions of CentOS/RHEL, and now that there is Rocky & Alma too that need to be worried about.

I'm not sure the best way forward, I'd of course like to bump to at least ubuntu20.04, but am worried about RHEL derivative support, and I don't know that the paid support version of 18.04 license would allow me to distribute it in such a way that xgo is currently.

I suspect the most likely way forward is for me to build a local build with the bumped OS and then test on various OSes.

@zeripath
Copy link
Collaborator

I wonder if there is a way we could actually build against musl instead of glibc thus avoiding the ABI issue?

@silverwind
Copy link
Author

FWIW, Ubuntu 18.04 has now reached EOL.

@techknowlogick
Copy link
Owner

FWIW, Ubuntu 18.04 has now reached EOL.

@silverwind I think we can do the upgrade now. I suspect there has been some movement away from CentOS 7 due to the change to stream.

@silverwind
Copy link
Author

From what I know, most people have now migrated to Rocky or Alma. Officially CentOS 7 has still 1 year to go until EOL, but I don't see this so strict.

@techknowlogick
Copy link
Owner

Looking at https://en.wikipedia.org/wiki/Rocky_Linux and https://endoflife.date/rocky-linux Rocky 8 is supported until 2029 (at least for security support) and uses 4.x kernel. I'll need to do some testing to ensure that Gitea binaries still work on it before merging the change.

techknowlogick added a commit that referenced this issue Jun 29, 2023
@silverwind
Copy link
Author

They are all binary-compatible to RHEL8, so if it works on one, it will work on all.

techknowlogick added a commit that referenced this issue Aug 18, 2023
* Bump to Ubuntu 20.04

Fix #163
techknowlogick pushed a commit to go-gitea/gitea that referenced this issue Aug 18, 2023
Now that techknowlogick/xgo#163 is resolved,
we can bump these.

It seems there is no way to dry-run this, so we may only notice issues
next release, but I don't expect any.
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.

4 participants