diff --git a/dev/vcpkg/Makefile b/dev/vcpkg/Makefile index 11cd02d8819b..874b0b579896 100644 --- a/dev/vcpkg/Makefile +++ b/dev/vcpkg/Makefile @@ -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 @@ -33,6 +33,8 @@ docker-image-gha: docker build \ --file docker/Dockerfile.gha \ --tag "$(DOCKER_IMAGE)" \ + --build-arg HTTPS_PROXY="" \ + --build-arg HTTP_PROXY="" \ . diff --git a/dev/vcpkg/docker/Dockerfile.gha b/dev/vcpkg/docker/Dockerfile.gha index 6a297c4431ce..c54725f043b8 100644 --- a/dev/vcpkg/docker/Dockerfile.gha +++ b/dev/vcpkg/docker/Dockerfile.gha @@ -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