Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 1 addition & 77 deletions .github/workflows/docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,6 @@ env:
DOCKERHUB_REPO: apache/gluten

jobs:
build-vcpkg-centos-7:
if: ${{ startsWith(github.repository, 'apache/') }}
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v6

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd

- name: Login to Docker Hub
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf
with:
context: .
file: dev/docker/Dockerfile.centos7-static-build
push: true
tags: ${{ env.DOCKERHUB_REPO }}:vcpkg-centos-7

build-vcpkg-centos-7-gcc13:
if: ${{ startsWith(github.repository, 'apache/') }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -170,56 +145,6 @@ jobs:
push: true
tags: ${{ env.DOCKERHUB_REPO }}:centos-9-jdk17-cuda12.9-cudf

build-vcpkg-centos-8:
if: ${{ startsWith(github.repository, 'apache/') }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, ubuntu-24.04-arm ]

steps:
- name: Checkout repository
uses: actions/checkout@v6

- name: Docker meta
id: meta
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf
with:
images: ${{ env.DOCKERHUB_REPO }}
tags: vcpkg-centos-8

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd

- name: Login to Docker Hub
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push by digest
id: build
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf
with:
context: .
file: dev/docker/Dockerfile.centos8-static-build
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,"name=${{ env.DOCKERHUB_REPO }}",push-by-digest=true,push=true

- name: Export digest
run: |
mkdir -p ${{ runner.temp }}/digests
digest="${{ steps.build.outputs.digest }}"
touch "${{ runner.temp }}/digests/${digest#sha256:}"

- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-vcpkg-centos-8-${{ matrix.os }}
path: ${{ runner.temp }}/digests/*
if-no-files-found: error
retention-days: 1

build-vcpkg-centos-8-gcc13:
if: ${{ startsWith(github.repository, 'apache/') }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -451,9 +376,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
digests: [ vcpkg-centos-8, vcpkg-centos-9 ]
digests: [ vcpkg-centos-9 ]
needs:
- build-vcpkg-centos-8
- build-vcpkg-centos-9

steps:
Expand Down
6 changes: 4 additions & 2 deletions dev/docker/Dockerfile.centos8-gcc13-static-build
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ RUN set -ex; \
echo "check_certificate = off" >> ~/.wgetrc; \
yum install -y java-1.8.0-openjdk-devel patch git perl python3 automake libtool flex; \
dnf -y --enablerepo=powertools install autoconf-archive ninja-build; \
pip3 install --upgrade pip; \
pip3 install cmake==3.31.4; \
wget https://github.com/Kitware/CMake/releases/download/v3.31.12/cmake-3.31.12-linux-$(uname -m).sh; \
chmod +x cmake-3.31.12-linux-$(uname -m).sh; \
./cmake-3.31.12-linux-$(uname -m).sh --skip-license --prefix=/usr/local; \
rm -f cmake-3.31.12-linux-$(uname -m).sh; \
rpm -qa | grep tzdata; \
dnf clean all; \
git clone --depth=1 https://github.com/apache/gluten /opt/gluten; \
Expand Down
3 changes: 1 addition & 2 deletions dev/docker/Dockerfile.centos9-static-build
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ ENV VCPKG_BINARY_SOURCES=clear;files,${VCPKG_PATH},readwrite

RUN set -ex; \
yum update -y && yum install -y epel-release sudo dnf && yum install -y ccache; \
dnf install -y --setopt=install_weak_deps=False gcc-toolset-12 gcc-toolset-13 perl-FindBin; \
pip install cmake==3.31.4; \
dnf install -y --setopt=install_weak_deps=False gcc-toolset-12 gcc-toolset-13 perl-FindBin cmake; \
Comment thread
zhouyuan marked this conversation as resolved.
echo "check_certificate = off" >> ~/.wgetrc; \
yum install -y java-17-openjdk-devel patch git perl; \
dnf clean all; \
Expand Down
5 changes: 0 additions & 5 deletions dev/vcpkg/setup-build-depends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ install_centos_8() {

pip3 install --upgrade pip
Comment thread
zhouyuan marked this conversation as resolved.

# Requires cmake >= 3.28.3
pip3 install cmake==3.28.3

dnf -y --enablerepo=powertools install autoconf-archive ninja-build

install_maven_from_source
Expand All @@ -175,8 +172,6 @@ install_centos_9() {

pip3 install --upgrade pip

# Requires cmake >= 3.28.3
pip3 install cmake==3.28.3

dnf -y --enablerepo=crb install autoconf-archive ninja-build

Expand Down
Loading