-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rene Pietzsch
committed
Sep 22, 2015
1 parent
49515cf
commit 6e0c071
Showing
6 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "FOX"] | ||
path = FOX | ||
url = https://github.com/AKSW/FOX.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ MAINTAINER Rene Pietzsch <[email protected]> | |
|
||
# Let the conatiner know that there is no tty | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV LNG de | ||
ENV XMX 8G | ||
|
||
# update ubuntu trusty | ||
RUN \ | ||
|
@@ -25,10 +27,15 @@ RUN \ | |
apt-get install -y oracle-java8-installer | ||
|
||
RUN mkdir /FOX | ||
ADD FOX /FOX | ||
WORKDIR /FOX | ||
RUN git clone https://github.com/AKSW/FOX.git /FOX | ||
RUN ./build.sh | ||
# RUN git clone https://github.com/AKSW/FOX.git /FOX | ||
RUN mvn package | ||
# RUN ./build.sh | ||
WORKDIR /FOX/release | ||
RUN cp fox.properties-dist fox.properties | ||
ADD learn-and-run-fox.sh /FOX/release/learn-and-run-fox.sh | ||
|
||
CMD ./learn-and-run-fox.sh | ||
|
||
EXPOSE 4444 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
sed -i -e 's#training: false#training: true#g' 'fox.properties' | ||
|
||
java -Xmx$XMX -cp fox-2.3.0-jar-with-dependencies.jar org.aksw.fox.FoxCLI -l$LNG -atrain -iinput/Wikiner/aij-wikiner-de-wp3.bz2 | tee learn.log | ||
|
||
sed -i -e 's#training: true#training: false#g' 'fox.properties' | ||
|
||
java -Xmx$XMX -cp fox-2.3.0-jar-with-dependencies.jar org.aksw.fox.FoxRESTful -l$LNG | tee run.log |