Skip to content

Commit

Permalink
Fix runtime dockerfile (TuGraph-family#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljcui authored Dec 1, 2024
1 parent ceb0ec2 commit 64ec55a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 10 deletions.
4 changes: 3 additions & 1 deletion ci/images/tugraph-mini-runtime-centos7-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 8 additions & 4 deletions ci/images/tugraph-mini-runtime-centos8-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion ci/images/tugraph-mini-runtime-ubuntu18.04-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions ci/images/tugraph-runtime-centos7-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 7 additions & 3 deletions ci/images/tugraph-runtime-centos8-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion ci/images/tugraph-runtime-ubuntu18.04-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64ec55a

Please sign in to comment.