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

THREESCALE-11575: Upgrade to CentOS stream9 #3866

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Conversation

mayorova
Copy link
Contributor

@mayorova mayorova commented Aug 14, 2024

The corresponding builder image is: 3scale/system-builder#42

@@ -109,7 +107,7 @@ ENV THINKING_SPHINX_ADDRESS=0.0.0.0 \
SECRET_KEY_BASE=dummy \
DATABASE_URL='mysql2://root:@localhost/porta'
USER 0
RUN dnf install -y mysql-server mysql-test \
RUN dnf install --enablerepo=crb -y mysql-server mysql-test \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this for?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mysql package is in this repo that is available but not enabled by default

@mayorova mayorova force-pushed the ruby-3.1 branch 4 times, most recently from 52431d5 to 1de699d Compare September 19, 2024 09:38
Base automatically changed from ruby-3.1 to master September 19, 2024 12:15
Copy link

This PR is stale because it has not received activity for more than 30 days. Remove stale label or comment or this will be closed in 15 days.

@github-actions github-actions bot added the Stale label Oct 20, 2024
@github-actions github-actions bot closed this Nov 5, 2024
@akostadinov akostadinov removed the Stale label Nov 5, 2024
@akostadinov akostadinov reopened this Nov 5, 2024
Copy link

github-actions bot commented Dec 6, 2024

This PR is stale because it has not received activity for more than 30 days. Remove stale label or comment or this will be closed in 15 days.

@github-actions github-actions bot added the Stale label Dec 6, 2024
@github-actions github-actions bot closed this Dec 22, 2024
@akostadinov akostadinov reopened this Dec 22, 2024
@github-actions github-actions bot removed the Stale label Dec 23, 2024
@mayorova mayorova force-pushed the ruby-3.1-stream9 branch 2 times, most recently from e3ae3f5 to 3f2dfb3 Compare January 8, 2025 15:40
@mayorova mayorova changed the title [WIP] Upgrade to CentOS stream9 Upgrade to CentOS stream9 Jan 8, 2025
@mayorova mayorova changed the title Upgrade to CentOS stream9 THREESCALE-11575: Upgrade to CentOS stream9 Jan 8, 2025
@mayorova mayorova marked this pull request as ready for review January 8, 2025 15:58
&& dnf -y --setopt=module_stream_switch=True module enable ruby:${RUBY_VERSION} nodejs:18 mysql:8.0 \
&& dnf install -y --setopt=skip_missing_names_on_install=False,tsflags=nodocs shared-mime-info make automake gcc gcc-c++ redhat-rpm-config postgresql rubygem-irb rubygem-rdoc ruby-devel nodejs libpq-devel mysql-devel gd-devel libxml2-devel libxslt-devel git 'dnf-command(download)' podman-catatonit \
RUN dnf -y --setopt=module_stream_switch=True module enable ruby:${RUBY_VERSION} nodejs:18 mysql:8.0 \
&& dnf install -y --setopt=skip_missing_names_on_install=False,tsflags=nodocs --enablerepo=crb shared-mime-info make automake gcc gcc-c++ postgresql rubygem-irb rubygem-rdoc ruby-devel nodejs libpq-devel mysql-devel gd-devel libxml2-devel libxslt-devel git 'dnf-command(download)' podman-catatonit \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a comment later in the file

RHEL 9 simply use package catatonit

So we don't need podman-catatonit here. Should be removed. And then in base layer add catatonit to the dnf installcommand. Also removeCOPY --from=builder /usr/libexec/catatonit/catatonit /usr/libexec/catatonit/catatonit`

Then maybe ENTRYPOINT will also need to be adjusted 👼

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all else looks great!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akostadinov the entrypoint remained the same, the package installs the catatonit executable to /usr/libexec/catatonit/catatonit

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope it didn't pull the whole podman group as well :)

Copy link
Contributor

@jlledom jlledom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks correct to me, but should the base image also be updated to centos stream 9?

@mayorova
Copy link
Contributor Author

mayorova commented Jan 9, 2025

It looks correct to me, but should the base image also be updated to centos stream 9?

Yes, of course it should 😉 Thanks!

&& sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* \
&& dnf -y --setopt=module_stream_switch=True module enable ruby:${RUBY_VERSION} nodejs:18 mysql:8.0 \
&& dnf install -y --setopt=skip_missing_names_on_install=False,tsflags=nodocs shared-mime-info make automake gcc gcc-c++ redhat-rpm-config postgresql rubygem-irb rubygem-rdoc ruby-devel nodejs libpq-devel mysql-devel gd-devel libxml2-devel libxslt-devel git 'dnf-command(download)' podman-catatonit \
RUN dnf -y --enablerepo=crb --setopt=module_stream_switch=True module enable ruby:${RUBY_VERSION} nodejs:18 \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added --enablerepo=crb and removed mysql:8.0 module

&& dnf -y --setopt=module_stream_switch=True module enable ruby:${RUBY_VERSION} nodejs:18 mysql:8.0 \
&& dnf install -y --setopt=skip_missing_names_on_install=False,tsflags=nodocs shared-mime-info make automake gcc gcc-c++ redhat-rpm-config postgresql rubygem-irb rubygem-rdoc ruby-devel nodejs libpq-devel mysql-devel gd-devel libxml2-devel libxslt-devel git 'dnf-command(download)' podman-catatonit \
RUN dnf -y --enablerepo=crb --setopt=module_stream_switch=True module enable ruby:${RUBY_VERSION} nodejs:18 \
&& dnf install -y --enablerepo=crb --setopt=skip_missing_names_on_install=False,tsflags=nodocs shared-mime-info make automake gcc gcc-c++ postgresql rubygem-irb rubygem-rdoc ruby-devel nodejs libpq-devel mysql-devel gd-devel libxml2-devel libxslt-devel git 'dnf-command(download)' cpio \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the dnf install command - added --enablerepo=crb and cpio package, removed podman-catatonit

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jusr curious why do we need cpio

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we use cpio to copy some memkind sources. I guess the executable was present in stream8 but got removed from stream9 🤷

&& dnf -y module enable ruby:${RUBY_VERSION} nodejs:18 mysql:8.0 \
&& dnf install -y --setopt=skip_missing_names_on_install=False,tsflags=nodocs shared-mime-info postgresql rubygem-irb rubygem-rdoc ruby libpq mysql mysql-libs gd git liberation-sans-fonts file libxml2 libxslt \
RUN dnf -y --enablerepo=crb module enable ruby:${RUBY_VERSION} nodejs:18 \
&& dnf install -y --enablerepo=crb --setopt=skip_missing_names_on_install=False,tsflags=nodocs shared-mime-info postgresql rubygem-irb rubygem-rdoc ruby libpq mysql mysql-libs gd git liberation-sans-fonts file libxml2 libxslt catatonit \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added --enablerepo=crb and catatonit package

Copy link
Contributor

@akostadinov akostadinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome!

Copy link
Contributor

@jlledom jlledom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks correct to me. I launched tests also for oracle and postgres, I think they are relevant for this PR.

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.78%. Comparing base (42acfd9) to head (70a5ec1).
Report is 11 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3866      +/-   ##
==========================================
- Coverage   93.78%   93.78%   -0.01%     
==========================================
  Files        2999     2999              
  Lines       96806    96651     -155     
  Branches      629      629              
==========================================
- Hits        90791    90644     -147     
+ Misses       5991     5983       -8     
  Partials       24       24              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mayorova mayorova merged commit 5562acb into master Jan 13, 2025
35 checks passed
@mayorova mayorova deleted the ruby-3.1-stream9 branch January 13, 2025 15:55
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 this pull request may close these issues.

3 participants