Debian Codegraph @

docker/docker-server/Dockerfile

raw
1 #
2 # Dockerfile for the link-grammar parse server.
3 #
4 # The parse server is currently written so that it requires the Java
5 # bindings to run. So this has to pull down the whole fatso JDK.
6 #
7 # XXX TODO -- actually start and run the parse server ...
8 # ... and make sure it works.
9 #
10 FROM linkgrammar/lgbase:latest
11 MAINTAINER Linas Vepstas [email protected]
12
13 # The parse server needs jni.h -- this is furnished by jdk
14 # which in turn has a HUGE dependency list :-(
15 # This is the reason we are doing multiple docker files, and not one.
16 RUN apt-get install -y openjdk-7-jdk
17 RUN apt-get install -y ant
18
19 # Perform the standard build.
20 ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64
21 RUN (cd link-grammar-5*; mkdir build; cd build; ../configure; make -j12; make install; ldconfig)
22
23 # The link-parser server runs on port 9000 by default
24 EXPOSE 9000
25
26 RUN adduser --disabled-password --gecos "Link Parser User" link-parser
27
28 USER link-parser
29 WORKDIR /home/link-parser
30 RUN echo "export LANG=en_US.UTF-8" >> .bash_aliases
31 CMD bash
32
33 # The English-language server, for now ...
34 RUN export LANG=en_US.UTF-8
35
36 RUN echo "this is a test" | link-parser
37 #
38 RUN cp /link-grammar-5*/bindings/java/link-grammar-server.sh .
39
40 # ./link-grammar-server.sh
41