Commit 6bf39ffa authored by j.hoerdt's avatar j.hoerdt
Browse files

this repository now contains the production configuration

parent 8bde568c
FROM adoptopenjdk:15-jdk as compile
WORKDIR /root/sensor2graph
WORKDIR /sensor2graph
# download gradle:
COPY gradlew .
......@@ -16,8 +16,8 @@ RUN chmod +x gradlew && ./gradlew jar
FROM adoptopenjdk:15-jre
RUN apt update && apt install -y tar zstd
WORKDIR /app
ENTRYPOINT ["java", "-Djava.util.logging.config.file=logging.properties", "-jar", "/home/gradle/sensor2graph/sensor2graph.jar"]
WORKDIR /sensor2graph
ENTRYPOINT ["bash", "-c", "umask 0007 && java -Djava.util.logging.config.file=logging.properties -jar sensor2graph.jar"]
RUN mkdir logs
COPY --from=compile /root/sensor2graph/build/libs/sensor2graph.jar /home/gradle/sensor2graph/
COPY --from=compile /root/sensor2graph/logging.properties /root/sensor2graph/graphdb.gwdg.de.pem /app/
COPY --from=compile /sensor2graph/build/libs/sensor2graph.jar /sensor2graph/
COPY --from=compile /sensor2graph/logging.properties /sensor2graph/graphdb.gwdg.de.pem /sensor2graph/sensor2graph.properties /sensor2graph/
......@@ -36,7 +36,7 @@ handlers=
############################################################
# default file output is in user's home directory.
java.util.logging.FileHandler.pattern = ./logs/sensor%g_%u.log
java.util.logging.FileHandler.pattern = /logs/sensor%g_%u.log
java.util.logging.FileHandler.limit = 0
java.util.logging.FileHandler.count = 10
# Default number of locks FileHandler can obtain synchronously.
......
csv_directory = /mnt/nfs_root_data/luftdaten/
geocoding_cache = /mnt/nfs_root_data/luftdaten/geocoding_cache
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment