Skip to content

[ML] Update Linux builder Docker container for 9.0 #2773

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

Merged
merged 42 commits into from
Nov 11, 2024

Conversation

valeriy42
Copy link
Contributor

@valeriy42 valeriy42 commented Oct 28, 2024

This PR updates all Linux-related Dockerfiles and tutorials with the latest dependencies, libraries, and C++ compiler versions.

Changes

  • Dockerfile Updates:

    • The base image is changed from centos:7 to rockylinux:8 to maintain compatibility with RHEL in the future.
    • Updated all GCC versions to use GCC 13.3 and binutils 2.41 for enhanced C++17 support and security hardening.
    • Other updated libraries:
      • binutils 2.37 -> 2.41
      • libxml2 2.9.14 -> 2.10.4.
      • patchelf 0.13 -> 0.18.0
      • python 3.10.0 -> 3.12.7
      • cmake 3.19.2 -> 3.30.5
  • Tutorial Updates:

    • Revised instructions for setting up the Linux build environment to match new dependencies and configurations.
    • Provided updated example commands for package installation compatible with Rocky Linux 8 and similar distributions.
  • Buildkite:

    • Updated the CI scripts to use the newest version of the Docker containers.

@valeriy42 valeriy42 closed this Oct 29, 2024
@valeriy42 valeriy42 reopened this Oct 30, 2024
@valeriy42 valeriy42 self-assigned this Oct 30, 2024
@valeriy42 valeriy42 requested a review from edsavage October 30, 2024 08:39
@valeriy42 valeriy42 marked this pull request as ready for review October 30, 2024 09:05
Copy link
Contributor

@edsavage edsavage left a comment

Choose a reason for hiding this comment

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

LGTM

I've just left a few comments here and there.

Copy link

@valeriy42 valeriy42 merged commit b9a79b2 into elastic:main Nov 11, 2024
16 checks passed
jan-elastic added a commit that referenced this pull request Nov 12, 2024
valeriy42 added a commit that referenced this pull request Dec 3, 2024
This is a rework of #2773 . Additionally, I removed the dependency on liblzma when building the boost library since some of the production docker containers don't have liblzma installed.

I added arguments like --without-lzma, but for Boost, it didn't lead to the desired effect. Hence, I had to resolve to temporarily rename the system libraries:

RUN \
  for i in $(ls /lib64/libzstd.*); do mv $i "$i.bak" ; done && \
  for i in $(ls /lib64/liblzma.*); do mv $i "$i.bak" ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants