Some cleanup

This commit is contained in:
Mirco 2024-06-25 15:34:59 +02:00
parent 05dfa191b4
commit 5f5db8f49b
3 changed files with 2 additions and 8 deletions

View file

@ -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

View file

@ -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"]

View file

@ -42,7 +42,7 @@ function main()
#/usr/lib/jvm/$dirname_graalvm/lib/svm/bin/native-image --version
buildproc
#cleanupDocker
cleanupDocker
} > /dev/null