Skip to content

Commit

Permalink
feat: trying jvm mode to see metrics (#87)
Browse files Browse the repository at this point in the history
* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* revert to native

* fix Dockerfile
  • Loading branch information
mishraomp authored Aug 29, 2024
1 parent ad2216e commit 473374a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,18 @@ COPY src /code/src
RUN ./mvnw versions:set -DnewVersion=${APP_VERSION} -f pom.xml -DskipTests -Dtests.skip=true -Dskip.unit.tests=true && \
./mvnw versions:commit -f pom.xml -DskipTests -Dtests.skip=true -Dskip.unit.tests=true

### NATIVE BUILD
RUN ./mvnw package -Pnative -DskipTests
#RUN ./mvnw package -DskipTests for JVM mode

### JVM BUILD
#RUN ./mvnw package -DskipTests
HEALTHCHECK --interval=300s --timeout=30s CMD ./mvnw --version || exit 1

###
###
FROM quay.io/quarkus/quarkus-micro-image:2.0 as deploy
###

FROM quay.io/quarkus/quarkus-micro-image:2.0 AS deploy
WORKDIR /work/
RUN chown 1001 /work \
&& chmod "g+rwX" /work \
Expand All @@ -31,8 +38,8 @@ CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]



#
#FROM registry.access.redhat.com/ubi8/openjdk-17:1.16
#####
#FROM registry.access.redhat.com/ubi8/openjdk-21:1.19

#ENV LANGUAGE='en_US:en'

Expand All @@ -45,7 +52,7 @@ CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]

#EXPOSE 8080
#USER 185
#ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
#ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
#ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
#HEALTHCHECK --interval=300s --timeout=3s CMD curl -f http://localhost:3000/ || exit 1

#ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]

0 comments on commit 473374a

Please sign in to comment.