diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..00f75ef --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM openjdk:8-jdk-alpine3.9 +RUN apk update and apk add +RUN apk add --update maven + +RUN apk add --update git +RUN git clone https://github.com/lajus/amie-utils +RUN cd amie-utils/javatools/ && mvn install +COPY ./. / +CMD ["mvn", "clean", "install"] diff --git a/README.md b/README.md index 9b0a501..1a7c6ee 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,11 @@ AMIE is managed with [Maven](https://maven.apache.org/), therefore to deploy you * IDEs such as Eclipse offer the option to create a project from an existing Maven project. The IDE will call Maven to compile the code. 3. Maven will generate an executable jar named amie3.jar in a new "bin/" directory. This executable accepts RDF files in TSV format [like this one](http://resources.mpi-inf.mpg.de/yago-naga/amie/data/yago2_sample/yago2core.10kseedsSample.compressed.notypes.tsv) as input, but also other format described below. To run it, just write in your comand line: +## Build and test AMIE with docker +` docker build --no-cache -t amie:latest -f ./Dockerfile . ` + +` docker run -it amie:latest mvn test ` + ## Publications > Jonathan Lajus, Luis Galárraga, Fabian M. Suchanek: