From 64ec55ac0b9f276e6e318b6affc8d8e841a0e9c5 Mon Sep 17 00:00:00 2001 From: Wang Zhiyong Date: Sun, 1 Dec 2024 11:28:28 +0800 Subject: [PATCH] Fix runtime dockerfile (#796) --- ci/images/tugraph-mini-runtime-centos7-Dockerfile | 4 +++- ci/images/tugraph-mini-runtime-centos8-Dockerfile | 12 ++++++++---- .../tugraph-mini-runtime-ubuntu18.04-Dockerfile | 3 ++- ci/images/tugraph-runtime-centos7-Dockerfile | 2 ++ ci/images/tugraph-runtime-centos8-Dockerfile | 10 +++++++--- ci/images/tugraph-runtime-ubuntu18.04-Dockerfile | 3 ++- 6 files changed, 24 insertions(+), 10 deletions(-) diff --git a/ci/images/tugraph-mini-runtime-centos7-Dockerfile b/ci/images/tugraph-mini-runtime-centos7-Dockerfile index 56ddb44ab7..caffe94b78 100644 --- a/ci/images/tugraph-mini-runtime-centos7-Dockerfile +++ b/ci/images/tugraph-mini-runtime-centos7-Dockerfile @@ -12,7 +12,9 @@ RUN sed -e "s|^mirrorlist=|#mirrorlist=|g" \ RUN yum -x filesystem update -y && yum install -y \ gcc \ openssl-static \ - wget + wget \ + libgfortran5.x86_64 \ + libgomp # install tugraph # specifies the path of the object storage where the installation package resides diff --git a/ci/images/tugraph-mini-runtime-centos8-Dockerfile b/ci/images/tugraph-mini-runtime-centos8-Dockerfile index f86ae59dbf..f2d773a3a4 100644 --- a/ci/images/tugraph-mini-runtime-centos8-Dockerfile +++ b/ci/images/tugraph-mini-runtime-centos8-Dockerfile @@ -3,14 +3,18 @@ # Alibaba Image FROM reg.docker.alibaba-inc.com/fma/centos:8.4.2105 -RUN rm -rf /etc/yum.repos.d \ - && curl -O https://tugraph-web.oss-cn-beijing.aliyuncs.com/tugraph/deps/yum.repos.d.tar.gz \ - && tar -xf yum.repos.d.tar.gz && mv yum.repos.d /etc/yum.repos.d && rm yum.repos.d.tar.gz +RUN sed -e "s|^mirrorlist=|#mirrorlist=|g" \ + -e "s|^#baseurl=http://mirror.centos.org/centos/\$releasever|baseurl=http://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.4.2105|g" \ + -e "s|^#baseurl=http://mirror.centos.org/\$contentdir/\$releasever|baseurl=http://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.4.2105|g" \ + -i.bak \ + /etc/yum.repos.d/CentOS-*.repo && yum clean all && yum makecache RUN yum update -y && yum install -y \ gcc \ openssl-devel.x86_64 \ - wget + wget \ + libgfortran.x86_64 \ + libgomp # install tugraph # specifies the path of the object storage where the installation package resides diff --git a/ci/images/tugraph-mini-runtime-ubuntu18.04-Dockerfile b/ci/images/tugraph-mini-runtime-ubuntu18.04-Dockerfile index b849417b48..c4f374806d 100644 --- a/ci/images/tugraph-mini-runtime-ubuntu18.04-Dockerfile +++ b/ci/images/tugraph-mini-runtime-ubuntu18.04-Dockerfile @@ -12,7 +12,8 @@ RUN rm -rf /et/apt/sources.list \ RUN apt-get update && apt-get install -y \ gcc \ libssl-dev \ - wget + wget \ + gfortran # install tugraph # specifies the path of the object storage where the installation package resides diff --git a/ci/images/tugraph-runtime-centos7-Dockerfile b/ci/images/tugraph-runtime-centos7-Dockerfile index 588e261c2d..8aba18872f 100644 --- a/ci/images/tugraph-runtime-centos7-Dockerfile +++ b/ci/images/tugraph-runtime-centos7-Dockerfile @@ -18,6 +18,8 @@ RUN yum -x filesystem update -y && yum install -y \ bzip2 \ unzip \ openssl-static \ + libgfortran5.x86_64 \ + libgomp \ libcurl-devel.x86_64 && yum clean all # install g++ 8.4.0 diff --git a/ci/images/tugraph-runtime-centos8-Dockerfile b/ci/images/tugraph-runtime-centos8-Dockerfile index 57c637506c..f66448d3cd 100644 --- a/ci/images/tugraph-runtime-centos8-Dockerfile +++ b/ci/images/tugraph-runtime-centos8-Dockerfile @@ -3,9 +3,11 @@ # Alibaba Image FROM reg.docker.alibaba-inc.com/fma/centos:8.4.2105 -RUN rm -rf /etc/yum.repos.d \ - && curl -O https://tugraph-web.oss-cn-beijing.aliyuncs.com/tugraph/deps/yum.repos.d.tar.gz \ - && tar -xf yum.repos.d.tar.gz && mv yum.repos.d /etc/yum.repos.d && rm yum.repos.d.tar.gz +RUN sed -e "s|^mirrorlist=|#mirrorlist=|g" \ + -e "s|^#baseurl=http://mirror.centos.org/centos/\$releasever|baseurl=http://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.4.2105|g" \ + -e "s|^#baseurl=http://mirror.centos.org/\$contentdir/\$releasever|baseurl=http://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.4.2105|g" \ + -i.bak \ + /etc/yum.repos.d/CentOS-*.repo && yum clean all && yum makecache RUN yum update -y && yum install -y \ git \ @@ -16,6 +18,8 @@ RUN yum update -y && yum install -y \ bzip2 \ unzip \ openssl-devel.x86_64 \ + libgfortran.x86_64 \ + libgomp \ libcurl-devel.x86_64 && yum clean all # install g++ 8.4.0 diff --git a/ci/images/tugraph-runtime-ubuntu18.04-Dockerfile b/ci/images/tugraph-runtime-ubuntu18.04-Dockerfile index 0f8d42226f..814a2bfc2e 100644 --- a/ci/images/tugraph-runtime-ubuntu18.04-Dockerfile +++ b/ci/images/tugraph-runtime-ubuntu18.04-Dockerfile @@ -21,7 +21,8 @@ RUN apt-get update && apt-get install -y \ zlib1g-dev \ libssl-dev \ openjdk-8-jdk \ - unzip + unzip \ + gfortran # install g++ 8.4.0 # if it is not accessible, replace it with the link below