Skip to content

Commit 4cbe6a2

Browse files
committed
Added JVM arguments for Apache Arrow (required by InfluxDB 3 client)
1 parent fefd5a0 commit 4cbe6a2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ COPY ${JAR_FILE} conluz.jar
1010
# Command that will be executed when a container is started from this image.
1111
# Run the application using the java -jar command.
1212
# This sets conluz as default application, which Docker will execute when a container is launched from the image.
13-
ENTRYPOINT ["java", "-jar", "/conluz.jar"]
13+
# Add JVM arguments for Apache Arrow (required by InfluxDB 3 client)
14+
ENTRYPOINT ["java", "--add-opens=java.base/java.nio=ALL-UNNAMED", "--add-opens=java.base/sun.nio.ch=ALL-UNNAMED", "-jar", "/conluz.jar"]

deploy/docker-compose.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ services:
9292
- CONLUZ_MQTT_SERVER_TOPICS
9393
- CONLUZ_MQTT_SERVER_URI
9494
- CONLUZ_MQTT_SERVER_USERNAME
95-
# Uncomment this to enable remote debugging
96-
# - JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
95+
# Add this to JAVA_TOOL_OPTIONS for enabling remote debugging.
96+
# - -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
97+
- JAVA_TOOL_OPTIONS=--add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED
9798
restart: always
9899
networks:
99100
- conluz_network

0 commit comments

Comments
 (0)