Skip to content

Commit 31b7423

Browse files
committed
Resolve devfile port conflict
Signed-off-by: eyuen <eyuen@redhat.com>
1 parent 501e684 commit 31b7423

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/docker/Dockerfile.jvm.staged

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN ./mvnw package
2020
#
2121
# Then run the container using:
2222
#
23-
# docker run -i --rm -p 8080:8080 quarkus/code-with-quarkus-jvm
23+
# docker run -i --rm -p 8081:8081 quarkus/code-with-quarkus-jvm
2424
#
2525
# If you want to include the debug port into your docker image
2626
# you will have to expose the debug port (default 5005) like this : EXPOSE 8080 5050
@@ -50,7 +50,7 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
5050
&& echo "securerandom.source=file:/dev/urandom" >> /etc/alternatives/jre/lib/security/java.security
5151

5252
# Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size.
53-
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
53+
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Dquarkus.http.port=8081 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
5454
# We make four distinct layers so if there are application changes the library layers can be re-used
5555
COPY --from=0 --chown=1001 /tmp/target/quarkus-app/lib/ /deployments/lib/
5656
COPY --from=0 --chown=1001 /tmp/target/quarkus-app/*.jar /deployments/

0 commit comments

Comments
 (0)