- change : 更换更稳定的 ta-lib 内核下载源
This commit is contained in:
parent
d1f211a45f
commit
7de4f257cb
@ -37,7 +37,8 @@ RUN echo "开始配置系vnpy环境" \
|
|||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& echo "安装 ta-lib 内核" \
|
&& echo "安装 ta-lib 内核" \
|
||||||
&& cd /opt \
|
&& 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 \
|
&& tar -zxvf ta-lib-0.4.0-src.tar.gz \
|
||||||
&& rm ta-lib-0.4.0-src.tar.gz \
|
&& rm ta-lib-0.4.0-src.tar.gz \
|
||||||
&& cd ta-lib \
|
&& cd ta-lib \
|
||||||
@ -46,8 +47,8 @@ RUN echo "开始配置系vnpy环境" \
|
|||||||
&& echo "安装 miniconda" \
|
&& echo "安装 miniconda" \
|
||||||
&& mkdir /tmp/conda/ \
|
&& mkdir /tmp/conda/ \
|
||||||
&& cd /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 Python2" && wget -t 0 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 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 \
|
&& bash Miniconda*.sh -b -p /opt/conda \
|
||||||
&& rm Miniconda*.sh \
|
&& rm Miniconda*.sh \
|
||||||
&& echo "设置 conda 和 python 的环境路径" \
|
&& echo "设置 conda 和 python 的环境路径" \
|
||||||
@ -63,7 +64,6 @@ RUN echo "开始配置系vnpy环境" \
|
|||||||
&& conda clean -ay \
|
&& conda clean -ay \
|
||||||
&& echo "安装结束"
|
&& echo "安装结束"
|
||||||
|
|
||||||
|
WORKDIR /srv/vnpy/vn.trader
|
||||||
|
|
||||||
|
ENTRYPOINT python /srv/vnpy/vn.trader/vtServer.py
|
||||||
|
|
||||||
WORKDIR /srv/vnpy/vn.trader
|
|
@ -6,4 +6,4 @@ docker run --name vnpy --rm \
|
|||||||
-v `pwd`/vn.trader/tmp/VT_setting.json:/etc/vnpy/VT_setting.json \
|
-v `pwd`/vn.trader/tmp/VT_setting.json:/etc/vnpy/VT_setting.json \
|
||||||
-p 2014:2014 -p 602:602 \
|
-p 2014:2014 -p 602:602 \
|
||||||
vnpy:latest \
|
vnpy:latest \
|
||||||
python /srv/vnpy/vn.trader/vtServer.py --VT_setting /etc/vnpy/VT_setting.json
|
--VT_setting /etc/vnpy/VT_setting.json
|
||||||
|
Loading…
Reference in New Issue
Block a user