Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
FROM maven:3.6.3-jdk-8
FROM maven:3.6.3-jdk-8 as build

ARG LODE_EXTERNAL_URL
ARG WEBVOWL_EXTERNAL_URL
ARG USE_HTTPS
ARG LODE_EXTERNAL_URL=true
ARG WEBVOWL_EXTERNAL_URL=true
ARG USE_HTTPS=false

RUN cd /opt && \
git clone https://github.com/essepuntato/LODE.git
WORKDIR /opt/LODE

COPY . .
RUN echo "externalURL=${LODE_EXTERNAL_URL}\nwebvowl=${WEBVOWL_EXTERNAL_URL}\nuseHTTPs=${USE_HTTPS}" > /opt/LODE/src/main/webapp/config.properties
RUN mvn clean package

#RUN cat /opt/LODE/src/main/webapp/config.propexxwties

WORKDIR /opt/LODE

EXPOSE 8080
FROM jetty
COPY --from=build /opt/LODE/target/LODE-1.3-SNAPSHOT.war /var/lib/jetty/webapps/lode.war

ENTRYPOINT ["mvn", "clean", "jetty:run"]
EXPOSE 80
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
# Live OWL Documentation Environment (LODE)
This repository is a Tomcat server application that can be used to create HTML documentation for [Web Ontology Language](https://www.w3.org/OWL/) (OWL) ontologies.

## Running

## Example usage:
You can run the application natively with:

1. Launch application:
mvn clean jetty:run

You can also use Docker. Build an image with:

`mvn clean jetty:run`
docker build -t essepuntato/lode .

Run a container with:

2. Test
docker run --rm -d -p 8080:8080 essepuntato/lode

## Usage

Try running LODE with the following ontologies:

Expand All @@ -19,7 +26,6 @@ Try running LODE with the following ontologies:
* it is a very tiny ontology visualised online using LODE at <http://promsns.org/def/proms/>.
* You can run try using a local instance of LODE to generate HTML for the local copy of PROMS and compare it with the online version made by the PROMS creator


## Contacts
**Silvio Peroni**
*Creator*
Expand Down
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<groupId>it.essepuntato</groupId>
<artifactId>LODE</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>war</packaging>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -119,6 +120,7 @@
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>11.0.7</version>
<configuration>
<jettyXml>src/main/resources/jetty/jetty.xml</jettyXml>
<stopPort>9966</stopPort>
Expand Down