-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
66 lines (53 loc) · 2.24 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FROM phusion/baseimage:0.9.19
MAINTAINER Emaad Ahmed Manzoor <[email protected]>
# Set correct environment variables.
ENV HOME /root
# Use baseimage-docker's init process.
CMD ["/sbin/my_init"]
# Packages
RUN apt-get update && apt-get install -y python python2.7 python-pip python-dev \
build-essential gcc git
RUN pip install --upgrade pip
RUN pip install numpy scipy scikit-learn
# ta3 Python bindings
ARG BBN_USER
ARG BBN_PASS
RUN git clone https://$BBN_USER:[email protected]/bbn/ta3-api-bindings-python.git
RUN cd ta3-api-bindings-python; python setup.py install
# Build StreamSpot Core
RUN git clone https://github.com/sbustreamspot/sbustreamspot-core.git -b 2016.07-engagement-uuid
RUN pip install -r sbustreamspot-core/requirements.txt
RUN cd sbustreamspot-core; make optimized
## Test StreamSpot Core
#ADD test-streamspot-core.sh test-streamspot-core.sh
#RUN chmod +x test-streamspot-core.sh
#RUN ./test-streamspot-core.sh
# Build StreamSpot CDM
RUN git clone https://github.com/sbustreamspot/sbustreamspot-cdm.git -b propagate-uuid
RUN pip install -r sbustreamspot-cdm/requirements.txt
## Test StreamSpot CDM
#ADD test-streamspot-cdm.sh test-streamspot-cdm.sh
#RUN chmod +x test-streamspot-cdm.sh
#RUN ./test-streamspot-cdm.sh
# Build StreamSpot Train
RUN git clone https://github.com/sbustreamspot/sbustreamspot-train.git -b propagate-uuid
RUN cd sbustreamspot-train/graphs-to-shingle-vectors; make optimized
## Test StreamSpot Train
#ADD test-streamspot-train.sh test-streamspot-train.sh
#RUN chmod +x test-streamspot-train.sh
#RUN ./test-streamspot-train.sh
#ADD test-streamspot-shingles.sh test-streamspot-shingles.sh
#RUN chmod +x test-streamspot-shingles.sh
#RUN ./test-streamspot-shingles.sh
#ADD test-streamspot-clustering.sh test-streamspot-clustering.sh
#RUN chmod +x test-streamspot-clustering.sh
#RUN ./test-streamspot-clustering.sh
# Add StreamSpot driver
ADD streamspot streamspot
RUN chmod +x streamspot
# Add StreamSpot training data fetcher
ADD fetch_training_data.py fetch_training_data.py
ADD streamspot-fetch-training-data streamspot-fetch-training-data
RUN chmod +x streamspot-fetch-training-data
# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*