From b4ceb2dd9a52b3be5f1c44eb8b2615424831e87e Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Wed, 8 Oct 2025 00:04:25 -0700 Subject: [PATCH] ORC-2016: Upgrade `CMake` to 3.26.0 in `amazonlinux:2023` --- docker/amazonlinux23/Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docker/amazonlinux23/Dockerfile b/docker/amazonlinux23/Dockerfile index 806a58f898..a1e82a81c2 100644 --- a/docker/amazonlinux23/Dockerfile +++ b/docker/amazonlinux23/Dockerfile @@ -17,7 +17,7 @@ # ORC compile for Amazon Linux 2023 # -FROM amazonlinux:2023 +FROM amazonlinux:2023.9.20250929.0 LABEL org.opencontainers.image.authors="Apache ORC project " LABEL org.opencontainers.image.licenses="Apache-2.0" LABEL org.opencontainers.image.ref.name="Apache ORC on Amazon Linux 2023" @@ -25,7 +25,6 @@ LABEL org.opencontainers.image.version="" RUN yum check-update || true RUN yum install -y \ - cmake3 \ curl-devel \ cyrus-sasl-devel \ expat-devel \ @@ -42,6 +41,12 @@ RUN yum install -y \ zlib-devel \ java-17-amazon-corretto-devel +ARG cmake=3.26.0 +RUN curl -L \ + "https://github.com/Kitware/CMake/releases/download/v${cmake}/cmake-${cmake}-linux-$(uname -m).tar.gz" | \ + tar -xzf - --directory /usr/local --strip-components=1 && \ + ln -fs /usr/local/bin/cmake /usr/bin/cmake + ENV TZ=America/Los_Angeles WORKDIR /root VOLUME /root/.m2/repository