Skip to content

Commit

Permalink
fix: working on IntelliJ
Browse files Browse the repository at this point in the history
  • Loading branch information
lroffia committed Nov 27, 2024
1 parent 721377c commit b333efb
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 26 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
49 changes: 31 additions & 18 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>it.unibo.arces.wot</groupId>
<artifactId>sepa</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
<description>The project aims at developing a SPARQL Event Processing Architecture using JAVA technologies, including APIs and tools</description>
<description>The project aims at developing a SPARQL Event Processing
Architecture using JAVA technologies, including APIs and tools</description>
<modules>
<module>client-api</module>
<module>engine</module>
Expand Down Expand Up @@ -43,8 +46,10 @@
<developerConnection>scm:git:ssh://github.com/vaimee/sepa.git</developerConnection>
<url>https://github.com/vaimee/SEPA</url>
</scm>

<properties>
<java.version>11</java.version>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -60,6 +65,14 @@
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<configuration>
<release>11</release>
</configuration>
</plugin>
<plugin>
<groupId>com.hbakkum.maven.plugins</groupId>
<artifactId>resolve-parent-version-maven-plugin</artifactId>
Expand All @@ -76,12 +89,12 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
<!-- <configuration>-->
<!-- <excludes>-->
<!-- <exclude>**/IT*.java</exclude>-->
<!-- <exclude>**/Stress*.java</exclude>-->
<!-- </excludes>-->
<!-- </configuration>-->
<!-- <configuration>-->
<!-- <excludes>-->
<!-- <exclude>**/IT*.java</exclude>-->
<!-- <exclude>**/Stress*.java</exclude>-->
<!-- </excludes>-->
<!-- </configuration>-->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -110,19 +123,19 @@
<pluginExecution>
<pluginExecutionFilter>
<groupId>
com.hbakkum.maven.plugins
</groupId>
com.hbakkum.maven.plugins
</groupId>
<artifactId>
resolve-parent-version-maven-plugin
</artifactId>
resolve-parent-version-maven-plugin
</artifactId>
<versionRange>
[0.7,)
</versionRange>
[0.7,)
</versionRange>
<goals>
<goal>
resolve-parent-version
</goal>
</goals>
resolve-parent-version
</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
Expand Down
3 changes: 2 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -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
#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

0 comments on commit b333efb

Please sign in to comment.