From b333efb414484b5d4a965c477e09796063f7271d Mon Sep 17 00:00:00 2001 From: Luca Roffia Date: Wed, 27 Nov 2024 12:40:33 +0100 Subject: [PATCH] fix: working on IntelliJ --- Dockerfile | 12 +++++------- pom.xml | 49 +++++++++++++++++++++++++++++++------------------ run.sh | 3 ++- 3 files changed, 38 insertions(+), 26 deletions(-) diff --git a/Dockerfile b/Dockerfile index 47372a94..7b83351f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,12 @@ # docker build -t vaimeedock/sepa:v0.15.0 -t vaimeedock/sepa:latest . # docker push vaimeedock/sepa --all-tag -FROM maven:3.6-jdk-11 AS build +FROM maven:latest AS build COPY . . RUN mvn clean package -FROM openjdk:11.0-jre +FROM eclipse-temurin:latest COPY --from=build ./run.sh /run.sh COPY --from=build ./engine/target/engine-1.0.0-SNAPSHOT.jar /engine.jar @@ -25,13 +25,11 @@ COPY --from=build ./engine/src/main/resources/endpoints /endpoints RUN chmod 600 /jmxremote.password RUN chmod 777 /run.sh -# MUST BE SET WITH THE HOST NAME (e.g. vaimee.com , vaimee.org, ...) -ENV JMX_HOSTNAME=0.0.0.0 -ENV JMX_PORT=7091 +ENV JMX_HOST=0.0.0.0 +ENV JMX_PORT=7099 EXPOSE 8000 EXPOSE 9000 -EXPOSE 7091 +EXPOSE ${JMX_PORT} ENTRYPOINT ["/run.sh"] -#ENTRYPOINT java -Djava.rmi.server.hostname=${JMX_HOSTNAME} -Dcom.sun.management.jmxremote.rmi.port=${JMX_PORT} -Dcom.sun.management.jmxremote.port=${JMX_PORT} -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote=true -jar engine.jar \ No newline at end of file diff --git a/pom.xml b/pom.xml index 80ab3b21..95cc09ea 100644 --- a/pom.xml +++ b/pom.xml @@ -1,11 +1,14 @@ - + 4.0.0 it.unibo.arces.wot sepa ${revision} pom - The project aims at developing a SPARQL Event Processing Architecture using JAVA technologies, including APIs and tools + The project aims at developing a SPARQL Event Processing + Architecture using JAVA technologies, including APIs and tools client-api engine @@ -43,8 +46,10 @@ scm:git:ssh://github.com/vaimee/sepa.git https://github.com/vaimee/SEPA - + + 11 + 11 11 11 UTF-8 @@ -60,6 +65,14 @@ + + org.apache.maven.plugins + maven-compiler-plugin + 3.12.1 + + 11 + + com.hbakkum.maven.plugins resolve-parent-version-maven-plugin @@ -76,12 +89,12 @@ org.apache.maven.plugins maven-surefire-plugin 3.1.2 - - - - - - + + + + + + org.apache.maven.plugins @@ -110,19 +123,19 @@ - com.hbakkum.maven.plugins - + com.hbakkum.maven.plugins + - resolve-parent-version-maven-plugin - + resolve-parent-version-maven-plugin + - [0.7,) - + [0.7,) + - resolve-parent-version - - + resolve-parent-version + + diff --git a/run.sh b/run.sh index 0b712bbe..b03d21c3 100644 --- a/run.sh +++ b/run.sh @@ -1,3 +1,4 @@ #!/bin/bash -java -Djava.rmi.server.hostname=${JMX_HOSTNAME} -Dcom.sun.management.jmxremote.rmi.port=${JMX_PORT} -Dcom.sun.management.jmxremote.port=${JMX_PORT} -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote=true -jar engine.jar \ No newline at end of file +#java -Djava.rmi.server.hostname=${JMX_HOST} -Dcom.sun.management.jmxremote.rmi.port=${JMX_PORT} -Dcom.sun.management.jmxremote.port=${JMX_PORT} -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote -jar engine.jar +java ${JAVA_OPTS} -jar engine.jar \ No newline at end of file