From 3c0e4653c4d2f393ec85db39cdd5a202a21a946f Mon Sep 17 00:00:00 2001 From: Cem Gokmen Date: Mon, 27 Mar 2017 19:39:57 -0700 Subject: [PATCH] Corrected Dockerfile --- Dockerfile | 17 +++++++++++------ install_git.sh | 2 +- install_rtimulib.sh | 4 ++-- 3 files changed, 14 insertions(+), 9 deletions(-) mode change 100644 => 100755 install_git.sh mode change 100644 => 100755 install_rtimulib.sh diff --git a/Dockerfile b/Dockerfile index c14e273..7c2947b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,19 @@ FROM python:2.7 MAINTAINER Cem Gokmen -COPY app /app -WORKDIR /app +COPY . /verne +WORKDIR /verne + +RUN chmod +x install_git.sh +RUN ./install_git.sh + +RUN chmod +x install_rtimulib.sh +RUN ./install_rtimulib.sh -RUN install_git.sh -RUN install_rtimulib.sh RUN pip install -r requirements.txt +VOLUME /dev/geigerCounter +VOLUME /dev/i2c-1 VOLUME /data -EXPOSE 9000 -CMD twistd -n -l - -y nobelgt.tac \ No newline at end of file +CMD python main.py diff --git a/install_git.sh b/install_git.sh old mode 100644 new mode 100755 index ec25416..b8053db --- a/install_git.sh +++ b/install_git.sh @@ -2,4 +2,4 @@ set -ex #Fail if any line fails, print everything apt-get update -apt-get install git \ No newline at end of file +apt-get install git -y diff --git a/install_rtimulib.sh b/install_rtimulib.sh old mode 100644 new mode 100755 index 5161f13..d247bae --- a/install_rtimulib.sh +++ b/install_rtimulib.sh @@ -2,11 +2,11 @@ set -ex #Fail if any line fails, print everything apt-get update -apt-get install python-dev +apt-get install python-dev -y cd /tmp git clone https://github.com/VIP-LES/RTIMULib2.git cd RTIMULib2/Linux/python python setup.py build -python setup.py install \ No newline at end of file +python setup.py install