Skip to content

Commit

Permalink
Merge pull request #47 from VisualDataWeb/dockerize
Browse files Browse the repository at this point in the history
Dockerize
  • Loading branch information
steffen-l authored May 17, 2018
2 parents 003cf6a + a65d65f commit f37b569
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM maven:3.5.3-jdk-8-slim AS build

WORKDIR /var/lib/owl2vowl
ADD pom.xml .
RUN ["mvn", "clean"]

ADD src src
RUN ["mvn", "package", "-DskipTests", "-P", "war-release"]


FROM java:8-jre-alpine

WORKDIR /owl2vowl
COPY --from=build /var/lib/owl2vowl/target/owl2vowl.war .
CMD java -jar owl2vowl.war

EXPOSE 8080
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ It would be a pain always building the jar only to test some new implemented stu

To run a Spring Server directly from the IDE you have to start the `ServerMain.java` class.

### Building docker image
With the provided `Dockerfile` you can easily build the docker image of the server version on the exposed port `8080`.
Just run `docker build -t owl2vowl/owl2vowl .`
After that you can run the image `docker run --rm -d -p 8080:8080 owlv2vowl/owl2vowl`.
OWL2VOWL is now reachable on `localhost:8080`.


FAQ
==================

Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@
</dependency>
</dependencies>
<build>
<finalName>owl2vowl</finalName>

<plugins>
<plugin>
Expand Down

0 comments on commit f37b569

Please sign in to comment.