diff --git a/doc/dev_notes.md b/doc/dev_notes.md index 615386c..e1370b6 100644 --- a/doc/dev_notes.md +++ b/doc/dev_notes.md @@ -40,7 +40,7 @@ For production: build graalvm binary ./gradlew nativeCompile failed, need for some improvements! -1. First build jar, and get META-INF with +1. First build jar locally, and get META-INF with ./gradlew clean build -Pvaadin.productionMode -x processTestAot java -agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image -jar build/libs/ModeratorElection-0.0.1-SNAPSHOT.jar curl -X GET http://localhost:8080 diff --git a/image/Dockerfile b/image/Dockerfile index 5c845fb..23bf449 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -18,13 +18,7 @@ EXPOSE 8080 CMD ["mkdir /usr/local/src/ModeratorElection"] WORKDIR /usr/local/src/ModeratorElection/ -#*SNAPSHOT should be part of the name, asterisk for continueing versionnumber -#copy jar -#COPY --from=build-env /usr/local/src/ModeratorElection/build/libs/ModeratorElection-0.0.1-SNAPSHOT.jar ./ModeratorElection.jar #copy graalvm binary COPY --from=build-env /usr/local/src/ModeratorElection/build/native/nativeCompile/ /usr/local/src/ModeratorElection/ -#CMD ["chmod 0740 ModerationElection"] -#ENTRYPOINT ["java", "-jar", "ModeratorElection.jar"] -#COPY --from=build-env /tmp/test_bin/ /usr/local/src/ModeratorElection/ RUN chmod 0740 ./ModeratorElection ENTRYPOINT ["./ModeratorElection"] diff --git a/image/resources/install.sh b/image/resources/install.sh index c0db0e8..c16910a 100755 --- a/image/resources/install.sh +++ b/image/resources/install.sh @@ -42,7 +42,7 @@ function main() #/usr/lib/jvm/$dirname_graalvm/lib/svm/bin/native-image --version buildproc - #cleanupDocker + cleanupDocker } > /dev/null