From cdbf6a9b99f97ea7fefa5ae294f3020b651fa7b8 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Mon, 7 May 2018 22:19:39 +0800 Subject: [PATCH] =?UTF-8?q?[Add]=E6=96=B0=E5=A2=9E=E9=92=88=E5=AF=B9WebTra?= =?UTF-8?q?der=E7=9A=84Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/{ => vnc}/Dockerfile | 0 docker/{ => vnc}/README.md | 0 docker/{ => vnc}/build_image.sh | 0 docker/{ => vnc}/run_shell.sh | 0 docker/{ => vnc}/run_vnc.sh | 0 docker/{ => vnc}/server_vnpy.sh | 0 docker/web/Dockerfile | 29 +++++++++++++++++++++++++++++ 7 files changed, 29 insertions(+) rename docker/{ => vnc}/Dockerfile (100%) rename docker/{ => vnc}/README.md (100%) rename docker/{ => vnc}/build_image.sh (100%) mode change 100755 => 100644 rename docker/{ => vnc}/run_shell.sh (100%) mode change 100755 => 100644 rename docker/{ => vnc}/run_vnc.sh (100%) mode change 100755 => 100644 rename docker/{ => vnc}/server_vnpy.sh (100%) mode change 100755 => 100644 create mode 100644 docker/web/Dockerfile diff --git a/docker/Dockerfile b/docker/vnc/Dockerfile similarity index 100% rename from docker/Dockerfile rename to docker/vnc/Dockerfile diff --git a/docker/README.md b/docker/vnc/README.md similarity index 100% rename from docker/README.md rename to docker/vnc/README.md diff --git a/docker/build_image.sh b/docker/vnc/build_image.sh old mode 100755 new mode 100644 similarity index 100% rename from docker/build_image.sh rename to docker/vnc/build_image.sh diff --git a/docker/run_shell.sh b/docker/vnc/run_shell.sh old mode 100755 new mode 100644 similarity index 100% rename from docker/run_shell.sh rename to docker/vnc/run_shell.sh diff --git a/docker/run_vnc.sh b/docker/vnc/run_vnc.sh old mode 100755 new mode 100644 similarity index 100% rename from docker/run_vnc.sh rename to docker/vnc/run_vnc.sh diff --git a/docker/server_vnpy.sh b/docker/vnc/server_vnpy.sh old mode 100755 new mode 100644 similarity index 100% rename from docker/server_vnpy.sh rename to docker/vnc/server_vnpy.sh diff --git a/docker/web/Dockerfile b/docker/web/Dockerfile new file mode 100644 index 00000000..b87c0f37 --- /dev/null +++ b/docker/web/Dockerfile @@ -0,0 +1,29 @@ +# Ubuntu 16.04 for running vn.py WebTrader + +#FROM continuumio/anaconda +FROM ubuntu:16.04 + +MAINTAINER vn.py project + +# Use bash +RUN rm /bin/sh && ln -s /bin/bash /bin/sh + +# Install software +RUN apt-get update +RUN apt-get install gcc g++ cmake libboost-all-dev -y +RUN apt-get install git bzip2 -y +RUN apt-get install libgl1-mesa-glx libglib2.0 libsm6 libxrender1 -y + +# Install Anaconda +#RUN wget https://repo.continuum.io/archive/Anaconda2-4.0.0-Linux-x86_64.sh +ADD https://repo.continuum.io/archive/Anaconda2-4.0.0-Linux-x86_64.sh . +RUN bash Anaconda2-4.0.0-Linux-x86_64.sh -b -p /opt/conda/ + +ENV PATH /opt/conda/bin:$PATH + +# Install vn.py +RUN git clone https://github.com/vnpy/vnpy.git +WORKDIR vnpy +RUN bash install.sh + +