-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GLUTEN-7480][VL] Build centos-8 docker image for GHA workflow (#7481)
In current GHA workflow, we are using one centos-8 docker image coming from Velox community. That image is no longer updated since centos-8 support is deprecated by the community. The new docker image will be auto periodically updated with a few dependencies including arrow libs pre-installed. With this one used, the workflow will be accelerated (will create a separate pr to use it).
- Loading branch information
Showing
2 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM centos:8 | ||
|
||
RUN sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-* || true | ||
RUN sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-* || true | ||
|
||
RUN yum update -y && yum install -y epel-release sudo dnf | ||
|
||
RUN dnf install -y --setopt=install_weak_deps=False gcc-toolset-9 | ||
RUN source /opt/rh/gcc-toolset-9/enable || exit 1 | ||
|
||
RUN echo "check_certificate = off" >> ~/.wgetrc | ||
|
||
RUN yum install -y java-1.8.0-openjdk-devel patch wget git perl | ||
RUN export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk && export PATH=$JAVA_HOME/bin:$PATH | ||
RUN wget --no-check-certificate https://downloads.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz && \ | ||
tar -xvf apache-maven-3.8.8-bin.tar.gz && \ | ||
mv apache-maven-3.8.8 /usr/lib/maven && \ | ||
export MAVEN_HOME=/usr/lib/maven && \ | ||
export PATH=${PATH}:${MAVEN_HOME}/bin | ||
|
||
RUN git clone --depth=1 https://github.com/apache/incubator-gluten /opt/gluten | ||
|
||
RUN cd /opt/gluten && ./dev/builddeps-veloxbe.sh --run_setup_script=ON build_arrow && rm -rf /opt/gluten |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters