This repository has been archived by the owner on Aug 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
82 lines (52 loc) · 1.88 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
FROM debian:8.10
MAINTAINER Jonathan Gordon <jgordon@isi.edu>
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
# Install basic system dependencies.
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -q -y --fix-missing && \
apt-get install -q -y --fix-missing --no-install-recommends \
bzip2 ca-certificates g++ git-core graphviz libsqlite3-dev make \
openjdk-7-jre python-dev python-lxml python-nltk swi-prolog wget
RUN apt-get clean -q
# Install Gurobi.
ENV GUROBI_INSTALL /adp/external-tools/gurobi
ENV GUROBI_HOME $GUROBI_INSTALL/linux64
RUN mkdir -p $GUROBI_INSTALL && \
wget http://packages.gurobi.com/5.6/gurobi5.6.3_linux64.tar.gz && \
tar xvzf gurobi5.6.3_linux64.tar.gz && \
mv gurobi563/linux64 $GUROBI_INSTALL && \
mkdir $GUROBI_HOME/scripts && \
rm -rf $GUROBI_HOME/docs && \
rm -rf $GUROBI_HOME/examples && \
rm -rf $GUROBI_HOME/src && \
rm -rf gurobi563 && \
rm -f gurobi5.6.3_linux64.tar.gz
ENV PATH $PATH:$GUROBI_HOME/bin
ENV CPLUS_INCLUDE_PATH $GUROBI_HOME/include:$CPLUS_INCLUDE_PATH
ENV LD_LIBRARY_PATH $GUROBI_HOME/lib:$LD_LIBRARY_PATH
ENV LIBRARY_PATH $GUROBI_HOME/lib:$LIBRARY_PATH
ENV GRB_LICENSE_FILE $GUROBI_INSTALL/license/gurobi.lic
# Install Henry.
WORKDIR /adp/external-tools
RUN git clone /~https://github.com/isi-metaphor/henry-n700.git henry
WORKDIR /adp/external-tools/henry
RUN make -B
## Install Boxer.
WORKDIR /adp/external-tools
RUN git clone /~https://github.com/jgordon/boxer
RUN cd boxer && \
make && \
make bin/boxer && \
make bin/tokkie
RUN cd boxer && \
tar xvjf models-1.02.tar.bz2 && \
rm models-1.02.tar.bz2
# Add the application code to the Docker image.
COPY KBs /adp/KBs
COPY external-tools /adp/external-tools
COPY installation /adp/installation
COPY pipelines /adp/pipelines
COPY testing /adp/testing
RUN yes yes | /adp/installation/scripts-linux/setenv-linux64.py /adp
# Done
WORKDIR /adp