forked from meissa/ModeratorElection
Some cleanup
This commit is contained in:
parent
05dfa191b4
commit
5f5db8f49b
3 changed files with 2 additions and 8 deletions
|
@ -40,7 +40,7 @@ For production:
|
||||||
build graalvm binary
|
build graalvm binary
|
||||||
./gradlew nativeCompile failed, need for some improvements!
|
./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
|
./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
|
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
|
curl -X GET http://localhost:8080
|
||||||
|
|
|
@ -18,13 +18,7 @@ EXPOSE 8080
|
||||||
CMD ["mkdir /usr/local/src/ModeratorElection"]
|
CMD ["mkdir /usr/local/src/ModeratorElection"]
|
||||||
WORKDIR /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 graalvm binary
|
||||||
COPY --from=build-env /usr/local/src/ModeratorElection/build/native/nativeCompile/ /usr/local/src/ModeratorElection/
|
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
|
RUN chmod 0740 ./ModeratorElection
|
||||||
ENTRYPOINT ["./ModeratorElection"]
|
ENTRYPOINT ["./ModeratorElection"]
|
||||||
|
|
|
@ -42,7 +42,7 @@ function main()
|
||||||
#/usr/lib/jvm/$dirname_graalvm/lib/svm/bin/native-image --version
|
#/usr/lib/jvm/$dirname_graalvm/lib/svm/bin/native-image --version
|
||||||
|
|
||||||
buildproc
|
buildproc
|
||||||
#cleanupDocker
|
cleanupDocker
|
||||||
|
|
||||||
} > /dev/null
|
} > /dev/null
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue