-
Notifications
You must be signed in to change notification settings - Fork 198
/
Copy pathtugraph-runtime-arm64v8-centos7-Dockerfile
52 lines (45 loc) · 3.13 KB
/
tugraph-runtime-arm64v8-centos7-Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Docker hub image
FROM arm64v8/centos:7
RUN echo $' \n\
[base] \n\
name=CentOS-$releasever - Base \n\
baseurl=http://mirrors.aliyun.com/centos-altarch/$releasever/os/$basearch/ \n\
gpgcheck=0 \n\
gpgkey=http://mirrors.aliyun.com/centos-altarch/7/os/$basearch/RPM-GPG-KEY-CentOS-7 \n\
\n\
#released updates \n\
[updates] \n\
name=CentOS-$releasever - Updates \n\
baseurl=http://mirrors.aliyun.com/centos-altarch/$releasever/updates/$basearch/ \n\
gpgcheck=0 \n\
gpgkey=http://mirrors.aliyun.com/centos-altarch/7/os/$basearch/RPM-GPG-KEY-CentOS-7 \n\
\n\
#additional packages that may be useful \n\
[extras] \n\
name=CentOS-$releasever - Extras \n\
baseurl=http://mirrors.aliyun.com/centos-altarch/$releasever/extras/$basearch/ \n\
gpgcheck=0 \n\
gpgkey=http://mirrors.aliyun.com/centos-altarch/7/os/$basearch/RPM-GPG-KEY-CentOS-7 \n\
enabled=1 \n\
\n\
#additional packages that extend functionality of existing packages \n\
[centosplus] \n\
name=CentOS-$releasever - Plus \n\
baseurl=http://mirrors.aliyun.com/centos-altarch/$releasever/centosplus/$basearch/ \n\
gpgcheck=0 \n\
enabled=0 \n\
gpgkey=http://mirrors.aliyun.com/centos-altarch/7/os/$basearch/RPM-GPG-KEY-CentOS-7 \n\
' > /etc/yum.repos.d/CentOS-Base.repo && yum clean all && yum makecache
RUN yum install -y \
wget \
libgfortran5.aarch64 \
libgomp && yum clean all
# specifies the path of the object storage where the installation package resides
ARG FILEPATH
# specifies installation package name for tugraph
ARG FILENAME
# install tugraph
RUN wget ${FILEPATH}/${FILENAME} \
&& rpm -ivh --nodeps ${FILENAME} && rm /${FILENAME}
ENV LD_LIBRARY_PATH=/usr/local/lib64/lgraph:/usr/local/lib64:/usr/local/lib:$LD_LIBRARY_PATH
CMD lgraph_server -d run