Skip to content

Commit

Permalink
Docker build works
Browse files Browse the repository at this point in the history
  • Loading branch information
ablx committed Oct 8, 2017
1 parent 5feef7b commit ea2cbcf
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 18 deletions.
42 changes: 32 additions & 10 deletions complete/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,38 +60,60 @@ EXPOSE 9000

RUN echo "....."
#ML
RUN git clone https://github.com/tudarmstadt-lt/GermaNER.git

RUN git clone --progress --verbose http://github.com/tudarmstadt-lt/GermaNER.git
RUN ls -lh
RUN cd GermaNER/germaner && mvn clean install -q -Drat.skip=true

RUN git clone https://github.com/seyyaw/cleartk.git
RUN cd cleartk && mvn clean install -q -Drat.skip=true -Dcleartk.skipTests=svmlight -DskipTests
RUN git clone --progress --verbose https://github.com/seyyaw/cleartk.git
RUN cd cleartk && mvn clean install -Drat.skip=true -Dcleartk.skipTests=svmlight -DskipTests

USER linuxbrew
RUN brew tap homebrew/science
RUN brew install crfsuite
USER root

#RUN echo "..........."
RUN echo "..............."
RUN git clone https://${user}@github.com/anon-ml/anonml-recognition-ml.git



RUN cd anonml-recognition-ml/service/src/main/resources/GermaNER && wget https://github.com/tudarmstadt-lt/GermaNER/releases/download/germaNER0.9.1/data.zip

RUN touch anonml-recognition-ml/service/src/main/resources/GermaNER/temp-file-to-annotate.txt
RUN cd anonml-recognition-ml && git checkout ${branch} && mvn clean install -q -DskipTests


RUN echo "Admin"
# ADMIN
RUN git clone https://${user}@github.com/anon-ml/anonml-admin.git
RUN cd anonml-admin && git checkout ${branch} && mvn clean install -q -DskipTests
EXPOSE 7000

USER linuxbrew
RUN brew tap homebrew/science
RUN brew install crfsuite

USER root
RUN echo "copy12"
RUN mkdir model
#RUN ls -lh anonml-recognition-ml/service/src/main/resources/GermaNER/model
RUN mv anonml-recognition-ml/service/src/main/resources/GermaNER/model/model.jar model/model.jar
RUN mv anonml-recognition-ml/service/src/main/resources/GermaNER/model/feature.xml model/feature.xml
#RUN mv anonml-recognition-ml/service/src/main/resources/GermaNER/model/MANIFEST.MF model/MANIFEST.MF


USER root
EXPOSE 9003

RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

EXPOSE 9900
EXPOSE 9901
EXPOSE 9902
EXPOSE 9903
RUN echo "......"
COPY start.sh /
ENTRYPOINT /start.sh
EXPOSE 9333
EXPOSE 8000
RUN echo ".."
COPY start2.sh /
ENTRYPOINT /start2.sh
14 changes: 6 additions & 8 deletions complete/start.sh → complete/start2.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#!/usr/bin/env bash
mongod&
sleep 30
java -Xmx4096m -Djava.security.egd=file:/dev/./urandom -jar anonml-recognition-ml/service/target/recognition-machinelearning-service-0.0.1-SNAPSHOT.jar &
sleep 100
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9333 -Xmx4096m -Djava.security.egd=file:/dev/./urandom -jar anonml-recognition-ml/service/target/recognition-machinelearning-service-0.0.1-SNAPSHOT.jar &
#sleep 100
java -Djava.security.egd=file:/dev/./urandom -jar anonml-admin/target/admin-0.0.1-SNAPSHOT.jar &
sleep 30
#sleep 30
java -Djava.security.egd=file:/dev/./urandom -jar anonml-document-management/service/target/document-management-service-0.0.1-SNAPSHOT.jar &
sleep 30
#sleep 30
java -Djava.security.egd=file:/dev/./urandom -jar anonml-web/target/web-0.0.1-SNAPSHOT.jar &
sleep 30
java -Djava.security.egd=file:/dev/./urandom -jar anonml-recognition-rulebased/service/target/recognition-rulebased-service-0.0.1-SNAPSHOT.jar


#sleep 30
java -Djava.security.egd=file:/dev/./urandom -jar anonml-recognition-rulebased/service/target/recognition-rulebased-service-0.0.1-SNAPSHOT.jar

0 comments on commit ea2cbcf

Please # to comment.