| # 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. | |
| # Runtime image for the CentOS Stream 9 TPC job on arm64, which checks that the static | |
| # native library runs on a plain CentOS 9. It adds only JDKs and CI tools to the OS image, no | |
| # native libraries. All JDKs are installed side by side under /usr/lib/jvm/java-<version>-openjdk; | |
| # jobs select one through JAVA_HOME instead of installing it at runtime. | |
| # Produces the apache/gluten:centos-9-runtime image. | |
| FROM quay.io/centos/centos:stream9 | |
| ENV LANG=C.UTF-8 | |
| ENV LC_ALL=C.UTF-8 | |
| RUN --mount=type=bind,source=dev/docker/install-ci-tools.sh,target=/tmp/install-ci-tools.sh \ | |
| set -ex; \ | |
| dnf update -y; \ | |
| dnf install -y java-1.8.0-openjdk-devel java-11-openjdk-devel java-17-openjdk-devel \ | |
| java-21-openjdk-devel wget tar gzip git procps-ng which findutils tzdata python3; \ | |
| bash /tmp/install-ci-tools.sh; \ | |
| dnf clean all; \ | |
| rm -rf /var/cache/dnf |