Skip to content

Commit

Permalink
[VL] Adding dev container
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
  • Loading branch information
zhouyuan committed Jan 26, 2025
1 parent 6500b9a commit 3d1b023
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "Gluten dev container",
"image": "apache/gluten:centos-8"
}
25 changes: 25 additions & 0 deletions .github/workflows/docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ on:
- '.github/workflows/docker_image.yml'
- 'dev/docker/Dockerfile.centos7-static-build'
- 'dev/docker/Dockerfile.centos8-dynamic-build'
- 'dev/docker/Dockerfile.centos8-dynamic-build-dev'
- 'dev/docker/Dockerfile.centos8-dynamic-build-jdk11'
- 'dev/docker/Dockerfile.centos8-dynamic-build-jdk17'
schedule:
Expand Down Expand Up @@ -95,3 +96,27 @@ jobs:
push: true
tags: apache/gluten:centos-8-jdk17

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

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

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

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

- name: Build and push Docker image Centos8
uses: docker/build-push-action@v2
with:
context: .
file: dev/docker/Dockerfile.centos8-dynamic-build-dev
push: true
tags: apache/gluten:centos-8-dev # JDK8 based
5 changes: 5 additions & 0 deletions dev/docker/Dockerfile.centos8-dynamic-build-dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM apache/gluten:centos-8

RUN git clone --depth=1 https://github.com/apache/incubator-gluten /opt/gluten

RUN cd /opt/gluten && source /opt/rh/gcc-toolset-11/enable && ./dev/ci-velox-buildshared-centos-8.sh && rm -rf /opt/gluten

0 comments on commit 3d1b023

Please sign in to comment.