Skip to content

Commit

Permalink
Correct port 8000
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed May 10, 2024
1 parent 2106b23 commit 5e44b11
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ cd quarkus-faces
mvn quarkus:dev
```

Then open your web browser to http://localhost:8081/
Then open your web browser to http://localhost:8000/

### Production

Expand All @@ -85,15 +85,15 @@ mvn clean package
java -jar target/quarkus-app/quarkus-run.jar
```

Then open your web browser to http://localhost:8081/
Then open your web browser to http://localhost:8000/

### Docker JVM

***
Builds a Docker image running as a standard JVM application.
```
mvn clean package -Ddocker
docker run -i --rm -p 8081:8081 melloware/quarkus-faces:latest
docker run -i --rm -p 8000:8000 melloware/quarkus-faces:latest
```

### Docker Native
Expand All @@ -102,7 +102,7 @@ docker run -i --rm -p 8081:8081 melloware/quarkus-faces:latest
Builds a native Docker image running as a GraalVM (Mandrel) application.
```
mvn -Pnative
docker run -i --rm -p 8081:8081 melloware/quarkus-faces:${version}
docker run -i --rm -p 8000:8000 melloware/quarkus-faces:${version}
```

### Known Issues
Expand Down
6 changes: 3 additions & 3 deletions src/main/docker/Dockerfile.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 melloware/quarkus-faces-jvm
# docker run -i --rm -p 8000:8000 melloware/quarkus-faces-jvm
#
# If you want to include the debug port into your docker image
# you will have to expose the debug port (default 5005) like this : EXPOSE 8080 5005
#
# Then run the container using :
#
# docker run -i --rm -p 8080:8080 melloware/quarkus-faces-jvm
# docker run -i --rm -p 8000:8000 melloware/quarkus-faces-jvm
#
# This image uses the `run-java.sh` script to run the application.
# This scripts computes the command line to execute your Java application, and
Expand Down Expand Up @@ -86,7 +86,7 @@ COPY --chown=185 target/quarkus-app/*.jar /deployments/
COPY --chown=185 target/quarkus-app/app/ /deployments/app/
COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/

EXPOSE 8081
EXPOSE 8000
USER 185
ENV AB_JOLOKIA_OFF=""
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
Expand Down
4 changes: 2 additions & 2 deletions src/main/docker/Dockerfile.native
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# Then run the container using:
#
# docker run -i --rm -p 8081:8081 melloware/quarkus-faces
# docker run -i --rm -p 8000:8000 melloware/quarkus-faces
#
###
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.9
Expand All @@ -29,7 +29,7 @@ COPY --chown=1001:root target/*.properties target/*.so /work/
COPY --chown=1001:root target/*-runner /work/application
# Permissions fix for Windows
RUN chmod "ugo+x" /work/application
EXPOSE 8081
EXPOSE 8000
USER 1001

CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ quarkus.native.resources.includes=META-INF/*.xml,*.properties
quarkus.default-locale=en
# The list of all the supported MyFaces locales
quarkus.locales=ar,ca,cs,de,en,en_US,es,fr,it,ja,mt,nl,pl,pt,pt_BR,ru,sk,uk,zh_CN,zh_HK,zh_TW
quarkus.http.port=8081
quarkus.http.port=8000
quarkus.http.access-log.enabled=false
quarkus.http.enable-compression=true
quarkus.http.filter.others.header.Cache-Control=no-cache
Expand Down

0 comments on commit 5e44b11

Please sign in to comment.