Skip to content

Commit

Permalink
[VL] Update a dockerfile used for CI vcpkg build (#6781)
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE authored Aug 12, 2024
1 parent 352b91e commit 2e797f3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/vcpkg/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DOCKER_IMAGE=apache/gluten:gluten-vcpkg-builder_2024_05_22
DOCKER_IMAGE=apache/gluten:gluten-vcpkg-builder
GLUTEN_REPO=$(shell realpath -L ../..)

CCACHE_DIR=$(HOME)/.ccache
Expand Down Expand Up @@ -33,6 +33,8 @@ docker-image-gha:
docker build \
--file docker/Dockerfile.gha \
--tag "$(DOCKER_IMAGE)" \
--build-arg HTTPS_PROXY="" \
--build-arg HTTP_PROXY="" \
.


Expand Down
11 changes: 11 additions & 0 deletions dev/vcpkg/docker/Dockerfile.gha
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
FROM centos:7

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 install -y centos-release-scl
RUN rm /etc/yum.repos.d/CentOS-SCLo-scl.repo -f
RUN sed -i \
-e 's/^mirrorlist/#mirrorlist/' \
-e 's/^#baseurl/baseurl/' \
-e 's/mirror\.centos\.org/vault.centos.org/' \
/etc/yum.repos.d/CentOS-SCLo-scl-rh.repo

RUN yum install -y git patch wget sudo

# build
Expand Down

0 comments on commit 2e797f3

Please sign in to comment.