Skip to content

Commit 3e37d2f

Browse files
committed
ORC-2121: Add ubi10 to docker tests and GitHub Actions job
### What changes were proposed in this pull request? This PR adds support for `ubi10` (Red Hat Universal Base Image 10) with `Java 25` to the ORC Docker test environment. Specifically, it includes the following changes: - Adds a new Dockerfile for `ubi10` based on `registry.access.redhat.com/ubi10/ubi`. - Updates `docker/os-list.txt` to include `ubi10`. - Extends the GitHub Actions `docker` job matrix in `.github/workflows/build_and_test.yml` to test `ubi10`. - Updates the documentation in `site/_docs/building.md` to list `UBI 10` as a supported OS. ### Why are the changes needed? To ensure Apache ORC can be successfully built and tested on the `ubi10` platform. This expands the CI test matrix and provides an official Docker environment for Red Hat Enterprise Linux 10-compatible systems. ### How was this patch tested? This patch is tested by the newly added GitHub Actions `docker` job matrix `ubi10`. The CI builds the `ubi10` Docker image and runs the standard ORC compile and test suites (Java and C++) inside the container. <img width="565" height="53" alt="Screenshot 2026-03-04 at 11 16 54" src="https://github.com/user-attachments/assets/5bddf1d5-9bc3-40f7-b4d6-e0e4da72eda0" /> ### Was this patch authored or co-authored using generative AI tooling? Generated-by: `Gemini 3.1 Pro (High)` on `Antigravity` Closes #2569 from dongjoon-hyun/ORC-2121. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 26b74e6) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent ff29fa3 commit 3e37d2f

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed

.github/workflows/build_and_test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
- oraclelinux9
5555
- oraclelinux10
5656
- amazonlinux23
57+
- ubi10
5758
steps:
5859
- name: Checkout
5960
uses: actions/checkout@v6

docker/os-list.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ ubuntu26
55
oraclelinux9
66
oraclelinux10
77
amazonlinux23
8+
ubi10

docker/ubi10/Dockerfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# ORC compile for UBI 10
18+
#
19+
20+
FROM registry.access.redhat.com/ubi10/ubi
21+
LABEL org.opencontainers.image.authors="Apache ORC project <dev@orc.apache.org>"
22+
LABEL org.opencontainers.image.licenses="Apache-2.0"
23+
24+
RUN dnf check-update || true
25+
RUN dnf install -y \
26+
git \
27+
cmake \
28+
gcc \
29+
gcc-c++ \
30+
java-25-openjdk-devel
31+
32+
WORKDIR /root
33+
VOLUME /root/.m2/repository
34+
35+
CMD ["/bin/bash", "-c", "if [ ! -d orc ]; then echo \"No volume provided, building from apache main.\"; echo \"Pass '-v`pwd`:/root/orc' to docker run to build local source.\"; git clone https://github.com/apache/orc.git -b main; fi && mkdir build && cd build && cmake ../orc && make package test-out"]

site/_docs/building.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The C++ library is supported on the following operating systems:
1414
* Ubuntu 24.04 to 26.04
1515
* Oracle Linux 9 to 10
1616
* Amazon Linux 2023
17+
* UBI 10
1718

1819
You'll want to install the usual set of developer tools, but at least:
1920

@@ -33,6 +34,7 @@ is in the docker subdirectory, for the list of packages required to build ORC:
3334
* [Oracle Linux 9]({{ page.dockerUrl }}/oraclelinux9/Dockerfile)
3435
* [Oracle Linux 10]({{ page.dockerUrl }}/oraclelinux10/Dockerfile)
3536
* [Amazon Linux 2023]({{ page.dockerUrl }}/amazonlinux23/Dockerfile)
37+
* [UBI 10]({{ page.dockerUrl }}/ubi10/Dockerfile)
3638

3739
To build a normal release:
3840

0 commit comments

Comments
 (0)