Skip to content

Commit

Permalink
Enhance Quarkus sample project
Browse files Browse the repository at this point in the history
- Fix container image name
- Fix static resources location for serving in application.jar
  • Loading branch information
christophd committed Nov 25, 2023
1 parent e1f3edb commit 139048d
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 53 deletions.
4 changes: 2 additions & 2 deletions demo/sample-quarkus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ Or, if you don't have GraalVM installed, you can run the native executable build
./mvnw package -Dnative -Dquarkus.native.container-build=true
```
You can then execute your native executable with: `./target/kamelets-quarkus-demo-1.0.0-runner`
You can then execute your native executable with: `./target/food-market-demo-1.1.0-runner`
If you want to learn more about building native executables, please consult https://quarkus.io/guides/maven-tooling.
Expand All @@ -281,7 +281,7 @@ To build your image, run:
You can push your image using:
```shell script
docker push quay.io/{YOUR_USERNAME}/food-market-demo:1.0.0
docker push quay.io/{YOUR_USERNAME}/food-market-demo:1.1.0
```
## Related Guides
Expand Down
1 change: 1 addition & 0 deletions demo/sample-quarkus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
</dependencies>

<build>
<finalName>food-market-demo</finalName>
<plugins>
<plugin>
<groupId>io.quarkus.platform</groupId>
Expand Down
6 changes: 3 additions & 3 deletions demo/sample-quarkus/src/main/docker/Dockerfile.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/kamelets-quarkus-demo-jvm .
# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/food-market-demo-jvm .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/kamelets-quarkus-demo-jvm
# docker run -i --rm -p 8080:8080 quarkus/food-market-demo-jvm
#
# If you want to include the debug port into your docker image
# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
Expand All @@ -20,7 +20,7 @@
#
# Then run the container using :
#
# docker run -i --rm -p 8080:8080 quarkus/kamelets-quarkus-demo-jvm
# docker run -i --rm -p 8080:8080 quarkus/food-market-demo-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
6 changes: 3 additions & 3 deletions demo/sample-quarkus/src/main/docker/Dockerfile.legacy-jar
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.legacy-jar -t quarkus/kamelets-quarkus-demo-legacy-jar .
# docker build -f src/main/docker/Dockerfile.legacy-jar -t quarkus/food-market-demo-legacy-jar .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/kamelets-quarkus-demo-legacy-jar
# docker run -i --rm -p 8080:8080 quarkus/food-market-demo-legacy-jar
#
# If you want to include the debug port into your docker image
# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
Expand All @@ -20,7 +20,7 @@
#
# Then run the container using :
#
# docker run -i --rm -p 8080:8080 quarkus/kamelets-quarkus-demo-legacy-jar
# docker run -i --rm -p 8080:8080 quarkus/food-market-demo-legacy-jar
#
# 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
4 changes: 2 additions & 2 deletions demo/sample-quarkus/src/main/docker/Dockerfile.native
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.native -t quarkus/kamelets-quarkus-demo .
# docker build -f src/main/docker/Dockerfile.native -t quarkus/food-market-demo .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/kamelets-quarkus-demo
# docker run -i --rm -p 8080:8080 quarkus/food-market-demo
#
###
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.8
Expand Down
4 changes: 2 additions & 2 deletions demo/sample-quarkus/src/main/docker/Dockerfile.native-micro
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.native-micro -t quarkus/kamelets-quarkus-demo .
# docker build -f src/main/docker/Dockerfile.native-micro -t quarkus/food-market-demo .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/kamelets-quarkus-demo
# docker run -i --rm -p 8080:8080 quarkus/food-market-demo
#
###
FROM quay.io/quarkus/quarkus-micro-image:2.0
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ quarkus.log.level=INFO

quarkus.container-image.registry=quay.io
quarkus.container-image.group=citrusframework
quarkus.container-image.name=food-market-demo

quarkus.hibernate-orm.database.generation=drop-and-create

Expand Down
2 changes: 1 addition & 1 deletion demo/sample-quarkus/src/test/resources/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -575,4 +575,4 @@
}
}
}
}
}

0 comments on commit 139048d

Please sign in to comment.