From 7de4f257cba5d48dc639374d695a2c0a998e4989 Mon Sep 17 00:00:00 2001 From: lamter Date: Thu, 27 Apr 2017 11:36:10 +0800 Subject: [PATCH] =?UTF-8?q?=20-=20change=20:=20=E6=9B=B4=E6=8D=A2=E6=9B=B4?= =?UTF-8?q?=E7=A8=B3=E5=AE=9A=E7=9A=84=20ta-lib=20=E5=86=85=E6=A0=B8?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vn.docker/Dockerfile | 12 ++++++------ vn.docker/server_vnpy.sh | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vn.docker/Dockerfile b/vn.docker/Dockerfile index 9f0194ec..fe67b135 100644 --- a/vn.docker/Dockerfile +++ b/vn.docker/Dockerfile @@ -37,7 +37,8 @@ RUN echo "开始配置系vnpy环境" \ && apt-get clean \ && echo "安装 ta-lib 内核" \ && cd /opt \ - && wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz \ +# && wget -t 0 http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz \ + && wget -t 0 http://kent.dl.sourceforge.net/project/ta-lib/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz \ && tar -zxvf ta-lib-0.4.0-src.tar.gz \ && rm ta-lib-0.4.0-src.tar.gz \ && cd ta-lib \ @@ -46,8 +47,8 @@ RUN echo "开始配置系vnpy环境" \ && echo "安装 miniconda" \ && mkdir /tmp/conda/ \ && cd /tmp/conda/ \ - && echo "下载 Miniconda by Python2" && wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda2-latest-Linux-x86_64.sh \ -# && echo "下载 Miniconda by Python3" && wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh \ + && echo "下载 Miniconda by Python2" && wget -t 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda2-latest-Linux-x86_64.sh \ +# && echo "下载 Miniconda by Python3" && wget -t 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh \ && bash Miniconda*.sh -b -p /opt/conda \ && rm Miniconda*.sh \ && echo "设置 conda 和 python 的环境路径" \ @@ -63,7 +64,6 @@ RUN echo "开始配置系vnpy环境" \ && conda clean -ay \ && echo "安装结束" +WORKDIR /srv/vnpy/vn.trader - - -WORKDIR /srv/vnpy/vn.trader \ No newline at end of file +ENTRYPOINT python /srv/vnpy/vn.trader/vtServer.py \ No newline at end of file diff --git a/vn.docker/server_vnpy.sh b/vn.docker/server_vnpy.sh index 4c5490bf..0938f63b 100755 --- a/vn.docker/server_vnpy.sh +++ b/vn.docker/server_vnpy.sh @@ -6,4 +6,4 @@ docker run --name vnpy --rm \ -v `pwd`/vn.trader/tmp/VT_setting.json:/etc/vnpy/VT_setting.json \ -p 2014:2014 -p 602:602 \ vnpy:latest \ - python /srv/vnpy/vn.trader/vtServer.py --VT_setting /etc/vnpy/VT_setting.json + --VT_setting /etc/vnpy/VT_setting.json