You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by do...@apache.org on 2023/12/24 22:20:04 UTC
(orc) branch branch-1.7 updated: ORC-1556: Add `Rocky Linux 9` Docker Test
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-1.7
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/branch-1.7 by this push:
new 5a2be93a2 ORC-1556: Add `Rocky Linux 9` Docker Test
5a2be93a2 is described below
commit 5a2be93a28e32d071bf5c22dd60d626c117e19e4
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Sun Dec 24 14:19:52 2023 -0800
ORC-1556: Add `Rocky Linux 9` Docker Test
### What changes were proposed in this pull request?
This PR aims to add `Rocky Linux 9` Dockerfile.
### Why are the changes needed?
To provide a test coverage for `Oracle 9`-compatible OS environment.
- https://docs.rockylinux.org/release_notes/9_3/
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.3_release_notes/index
### How was this patch tested?
Pass the CIs and check the logs.
- https://github.com/apache/orc/actions/runs/7314447285/job/19927098261?pr=1706
```
...
Status: Downloaded newer image for apache/orc-dev:rocky9
-- The C compiler identification is GNU 11.4.1
-- The CXX compiler identification is GNU 11.4.1
...
Java version: 17.0.9, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-17-openjdk-17.0.9.0.9-2.el9.x86_64
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "6.2.0-1018-azure", arch: "amd64", family: "unix"
```
Closes #1706 from dongjoon-hyun/ORC-1556-1.7.
Authored-by: Dongjoon Hyun <do...@apache.org>
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
.github/workflows/build_and_test.yml | 1 +
docker/README.md | 1 +
docker/os-list.txt | 1 +
docker/rocky9/Dockerfile | 54 ++++++++++++++++++++++++++++++++++++
4 files changed, 57 insertions(+)
diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml
index 394c036e4..d78340783 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -20,6 +20,7 @@ jobs:
- debian10
- debian11
- ubuntu18
+ - rocky9
steps:
- name: Checkout
uses: actions/checkout@v2
diff --git a/docker/README.md b/docker/README.md
index 80ff906bf..f92d0da09 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -3,6 +3,7 @@
* CentOS 7
* Debian 10 and 11
* Ubuntu 18, 20 and 22
+* Rocky 9
## Pre-built Images
diff --git a/docker/os-list.txt b/docker/os-list.txt
index ea1c2e201..ab5146c5c 100644
--- a/docker/os-list.txt
+++ b/docker/os-list.txt
@@ -4,3 +4,4 @@ debian11
ubuntu18
ubuntu20
ubuntu22
+rocky9
diff --git a/docker/rocky9/Dockerfile b/docker/rocky9/Dockerfile
new file mode 100644
index 000000000..fe4c19723
--- /dev/null
+++ b/docker/rocky9/Dockerfile
@@ -0,0 +1,54 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# ORC compile for Rocky Linux 9
+#
+
+FROM rockylinux:9
+LABEL maintainer="Apache ORC project <de...@orc.apache.org>"
+
+RUN yum check-update || true
+RUN yum install -y \
+ cmake3 \
+ curl-devel \
+ cyrus-sasl-devel \
+ expat-devel \
+ gcc \
+ gcc-c++ \
+ gettext-devel \
+ git \
+ libtool \
+ make \
+ openssl-devel \
+ tar \
+ wget \
+ which \
+ zlib-devel \
+ java-17-openjdk-devel
+
+ENV TZ=America/Los_Angeles
+WORKDIR /root
+VOLUME /root/.m2/repository
+
+CMD 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