Skip to content

Commit

Permalink
Added new docker stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Dec 3, 2016
1 parent c562475 commit a53120a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ RUN apt-get install -y golang git wget curl vim
RUN mkdir /usr/local/work
ENV GOPATH /usr/local/work

# Add Python stuff
RUN apt-get install -y python3 python3-dev python3-pip
RUN apt-get install -y python3-scipy python3-numpy
RUN python3 -m pip install scikit-learn

# Install SVM
WORKDIR "/tmp"
RUN wget http://www.csie.ntu.edu.tw/~cjlin/cgi-bin/libsvm.cgi?+http://www.csie.ntu.edu.tw/~cjlin/libsvm+tar.gz -O libsvm.tar.gz
Expand All @@ -28,6 +33,7 @@ WORKDIR "/root"
RUN go get github.com/schollz/find
RUN git clone https://github.com/schollz/find.git
WORKDIR "/root/find"
RUN git checkout rf
RUN mkdir mosquitto
RUN touch mosquitto/conf
RUN git pull
Expand All @@ -46,3 +52,4 @@ ENTRYPOINT ["/tini", "--"]

# Startup
CMD ["/usr/bin/supervisord"]

9 changes: 9 additions & 0 deletions supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ stdout_logfile=/root/find/log.out
stdout_logfile_maxbytes=0
stderr_logfile=/root/find/log.err
stderr_logfile_maxbytes=0

[program:rftcp]
directory=/root/find
command=/usr/bin/python3 rf.py
priority=2
stdout_logfile=/root/find/rf.out
stdout_logfile_maxbytes=0
stderr_logfile=/root/find/rf.err
stderr_logfile_maxbytes=0

0 comments on commit a53120a

Please sign in to comment.