Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene Pietzsch committed Sep 22, 2015
1 parent 49515cf commit 6e0c071
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git
3 changes: 3 additions & 0 deletions .gitmodules
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
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
1 change: 1 addition & 0 deletions FOX
Submodule FOX added at 51715e
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
.SILENT:

VERSION=testing
VERSION=$(shell cd FOX; git describe --always --dirty)

default: help

## build a fox docker container
build:
docker build -t fox:$(VERSION) .

tag:
docker tag fox:testing rpietzsch/fox:$(VERSION)

## This help screen
help:
printf "Available targets\n\n"
Expand Down
9 changes: 9 additions & 0 deletions learn-and-run-fox.sh
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

0 comments on commit 6e0c071

Please sign in to comment.