Skip to content

Commit

Permalink
fix: setting endpoint and engine jpars
Browse files Browse the repository at this point in the history
  • Loading branch information
lroffia committed Jul 17, 2024
1 parent 0b6b8d8 commit 6856a5f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# 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:3.6-jdk-11 AS build
COPY . .

ENV JMX_HOSTNAME=0.0.0.0
Expand All @@ -16,13 +16,13 @@ RUN mvn clean package

FROM openjdk:11.0-jre

COPY --from=BUILD ./engine/target/engine-1.0.0-SNAPSHOT.jar /engine.jar
COPY --from=BUILD ./engine/src/main/resources/jmxremote.password /jmxremote.password
COPY --from=BUILD ./engine/src/main/resources/jmxremote.access /jmxremote.access
COPY --from=BUILD ./engine/src/main/resources/jmx.properties /jmx.properties
COPY --from=BUILD ./engine/src/main/resources/endpoint.jpar /endpoint.jpar
COPY --from=build ./engine/target/engine-1.0.0-SNAPSHOT.jar /engine.jar
COPY --from=build ./engine/src/main/resources/jmxremote.password /jmxremote.password
COPY --from=build ./engine/src/main/resources/jmxremote.access /jmxremote.access
COPY --from=build ./engine/src/main/resources/jmx.properties /jmx.properties
COPY --from=build ./engine/src/main/resources/endpoint.jpar /endpoint.jpar
# COPY ALL ENDPOINTS TO ALLOW CMD LINE CUSTOMIZATION
COPY --from=BUILD ./engine/src/main/resources/endpoints /endpoints
COPY --from=build ./engine/src/main/resources/endpoints /endpoints

RUN chmod 600 /jmxremote.password

Expand Down
10 changes: 1 addition & 9 deletions client-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,7 @@
</parent>
<artifactId>client-api</artifactId>

<!-- <build>-->
<!-- <plugins>-->
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-surefire-plugin</artifactId>-->
<!-- <version>3.1.2</version>-->
<!-- </plugin>-->
<!-- </plugins>-->
<!-- </build>-->

<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*/

public class Engine implements EngineMBean {
private final static String version = "v0.15.2";
private final static String version = "v0.15.3";

private EngineProperties properties = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,13 @@ private void setParameter(String key,String value) {
case "-host":
endpointProperties.setHost(value);
break;
case "-engine":
engineJpar = value;
break;
case "-endpoint":
endpointJpar = value;
break;

case "-sparql11protocol.protocol":
if (value.toLowerCase().equals("http")) endpointProperties.setProtocolScheme(ProtocolScheme.http);
else if (value.toLowerCase().equals("https")) endpointProperties.setProtocolScheme(ProtocolScheme.https);
Expand Down

0 comments on commit 6856a5f

Please sign in to comment.