forked from songzhen-neu/ADGNN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·45 lines (36 loc) · 1.99 KB
/
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
FROM python:3.6
ADD . /code
RUN python3 -m pip install --upgrade pip
# RUN pip3 install -r /code/python/requirements.txt -i https://pypi.doubanio.com/simple/ --trusted-host=pypi.doubanio.com/simple
RUN pip3 install -r /code/python/requirements.txt
# RUN pip3 install -r /code/python/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host=https://pypi.tuna.tsinghua.edu.cn/simple
ENV role_id="", worker_server_num="", ifctx="", data_path="", hidden="", vtx_edge_feat_class_train_val_test=""
ENV iter_lr_pttMethod_printInterval="", sampleInfo="", adConfig="", servers="", workers=""
ENV code_path="", nfs_path=""
RUN apt update && apt install -y wget vim git libz-dev net-tools inetutils-ping lsof
# RUN apt-get -y install gawk && apt-get -y install bison
# RUN apt install -y libstdc++6
# RUN ln -sf /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6
RUN apt update && apt install -y wget vim git libz-dev net-tools inetutils-ping lsof cmake
RUN cd /code/third_party/c-ares \
&& mkdir build && cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
&& make install
# RUN wget https://mirror.tuna.tsinghua.edu.cn/gnu/glibc/glibc-2.29.tar.gz \
# && tar -zxvf glibc-2.29.tar.gz \
# && cd /glibc-2.29 \
# && mkdir build && cd build \
# && ../configure --prefix=/opt/glibc-2.29 \
# && make -j4 \
# && make install
RUN apt install -y nfs-kernel-server
RUN apt install -y nfs-common
# root in docker, don't need chmod
RUN mkdir -p /mnt/data
# RUN mkdir -p /mnt/data/nfs/graph-learn/distributed/
# CMD mount -o nolock -t nfs 219.216.64.103:/var/data /mnt/data && python3 $code_path $role_id $worker_server_num $ifctx \
# $data_path $hidden $vtx_edge_feat_class_train_val_test $iter_lr_pttMethod_printInterval $sampleInfo $adConfig $servers \
# $workers
CMD mount -o nolock -t nfs $nfs_path /mnt/data && python3 $code_path $role_id $worker_server_num $ifctx \
$data_path $hidden $vtx_edge_feat_class_train_val_test $iter_lr_pttMethod_printInterval $sampleInfo $adConfig $servers \
$workers