Commit 35dbc6bb authored by j.hoerdt's avatar j.hoerdt
Browse files

switch to adoptopenjdk complete in compile and runtime.

smoke test successful
parent 75b80803
FROM gradle:jdk14 as compile
WORKDIR /home/gradle/sensor2graph
COPY . .
RUN gradle jar
FROM openjdk:14-buster
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"]
RUN mkdir logs
COPY --from=compile /home/gradle/sensor2graph/build/libs/sensor2graph.jar /home/gradle/sensor2graph/
COPY --from=compile /home/gradle/sensor2graph/logging.properties /home/gradle/sensor2graph/graphdb.gwdg.de.pem /app/
FROM adoptopenjdk:15-jdk as compile
WORKDIR /root/sensor2graph
# download gradle:
COPY gradlew .
COPY gradle/ ./gradle
RUN ./gradlew
# download dependencies, would be nice to have. https://github.com/gradle/gradle/issues/1049
#COPY build.gradle .
#RUN ./gradlew downloadDependencies
# produce fat jar
COPY . .
RUN ./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"]
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/
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