Copilot commented on code in PR #12690: URL: https://github.com/apache/gluten/pull/12690#discussion_r3750467305
########## dev/docker/cudf/Dockerfile.centos-9-jdk17-cuda13.1-cudf: ########## @@ -0,0 +1,42 @@ +# +# 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. +# + +FROM quay.io/centos/centos:stream9 + +ARG JAVA_VERSION=17 + +ENV JAVA_HOME=/usr/lib/jvm/java-${JAVA_VERSION}-openjdk +ENV PATH=$JAVA_HOME/bin:$PATH +ENV CUDA_ARCHITECTURES=75 +ENV LD_LIBRARY_PATH=/opt/gluten/ep/build-velox/build/velox_ep/_build/release/_deps/curl-build/lib:$LD_LIBRARY_PATH +ENV CURL_ROOT=/opt/gluten/ep/build-velox/build/velox_ep/_build/release/_deps/curl-build +ENV CC=/opt/rh/gcc-toolset-14/root/bin/gcc \ + CXX=/opt/rh/gcc-toolset-14/root/bin/g++ + +RUN dnf config-manager --add-repo "https://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repo" && \ + dnf update -y && \ + dnf install -y sudo patch java-${JAVA_VERSION}-openjdk-devel maven perl git gcc-toolset-14 cuda-toolkit-13-1 && \ + dnf autoremove -y && dnf clean all + +RUN git clone --depth=1 https://github.com/apache/gluten /opt/gluten + +WORKDIR /opt/gluten + +RUN source /opt/rh/gcc-toolset-14/enable && \ + bash ./dev/buildbundle-veloxbe.sh --run_setup_script=ON --build_arrow=ON --spark_version=3.5 --build_tests=ON --build_benchmarks=ON --enable_s3=ON --enable_gcs=ON --enable_hdfs=ON --enable_abfs=ON --enable_gpu=ON build_arrow && \ + rm -rf /opt/gluten /root/.cache/ccache Review Comment: The trailing `build_arrow` argument changes `buildbundle-veloxbe.sh` into “run specific command(s)” mode, which skips `get_velox` and `setup_dependencies` entirely (see `dev/builddeps-veloxbe.sh`: it only does full setup when no extra commands are passed). This is likely to either fail or silently skip the adapter dependency installation this image is meant to include. Drop the explicit `build_arrow` argument and rely on `--build_arrow=ON` (default flow) instead. ########## dev/build-helper-functions.sh: ########## @@ -234,6 +234,7 @@ function setup_linux { if [[ "$LINUX_DISTRIBUTION" == "ubuntu" || "$LINUX_DISTRIBUTION" == "debian" || "$LINUX_DISTRIBUTION" == "pop" ]]; then scripts/setup-ubuntu.sh elif [[ "$LINUX_DISTRIBUTION" == "centos" ]]; then + source scripts/setup-centos-adapters.sh Review Comment: `setup_linux` now sources `scripts/setup-centos-adapters.sh`, but this repo doesn’t provide that script (and `ep/build-velox/src/get-velox.sh` doesn’t patch Velox to add it). Unless the external Velox branch happens to contain it, CentOS builds will fail at `source` time with “No such file or directory”. Consider sourcing Gluten’s existing adapter setup script instead (it defines `install_adapters` via `ep/build-velox/src/setup-rhel.sh`). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
