-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
51 lines (40 loc) · 1.19 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
FROM openjdk:8-alpine
RUN apk add python3
RUN apk add git
RUN apk add maven
RUN ["pip3", "install", "requests"]
#needed for psutil
RUN apk add musl-dev
RUN apk add linux-headers
RUN apk add gcc
RUN apk add python3-dev
RUN ["pip3", "-q", "install", "psutil"]
#Terrier assumes bash rather than sh
RUN apk add bash
#jtreceval needs gcompat libraries for treceval
RUN apk add gcompat
COPY init init
COPY index index
COPY search search
COPY train train
RUN ["chmod", "+x", "/index" , "/init", "/search", "/train"]
RUN apk add libzmq
RUN apk add g++
RUN apk add build-base
RUN wget -q http://www.mirrorservice.org/sites/ftp.apache.org/spark/spark-2.4.3/spark-2.4.3-bin-hadoop2.7.tgz
RUN tar -xf spark-2.4.3-bin-hadoop2.7.tgz
RUN rm spark-2.4.3-bin-hadoop2.7.tgz
RUN pip3 -q install --upgrade toree
RUN pip3 -q install notebook
RUN jupyter toree install --spark_home=/spark-2.4.3-bin-hadoop2.7/
RUN git clone https://github.com/terrier-org/terrier-spark.git
RUN cd terrier-spark && mvn -q -DskipTests install
RUN rm -rf /terrier-spark
RUN mkdir /notebooks
EXPOSE 1980/tcp
EXPOSE 1981/tcp
EXPOSE 1982/tcp
COPY simpleRun.ipynb /notebooks/simpleRun.ipynb
COPY interact interact
RUN chmod +x interact
WORKDIR /work