A collection of my Cloud Native Buildpacks for building Cloud Native Java Applications using
Download and install
[[source,bash]
pack build example/helloboot \ --builder quay.io/kameshsampath/java-11-jvm-builder:v1.0.0 \ --path $PROJECT_HOME/apps/helloboot
Tip
|
If you have a maven repository manager , then you can run the builder with an environment variable pack build example/helloboot \
--env MAVEN_MIRROR_URL="<MAVEN_MIRROR_URL>" \
--builder quay.io/kameshsampath/java-11-jvm-builder:tip \
--path $PROJECT_HOME/apps/helloboot \
--verbose |
To run and test the image:
[[source,bash]
docker run -it --rm -p 8080:8080 example/helloboot
Doing curl localhost:8080/hello
should return an response Hello SpringBoot!
[[source,bash]
pack build example/helloquarkus \ --builder quay.io/kameshsampath/java-11-jvm-builder:v1.0.0 \ --path $PROJECT_HOME/apps/helloquarkus \ --verbose
[[source,bash]
pack build example/helloquarkus \ --builder quay.io/kameshsampath/quarkus-native-builder:v1.0.0 \ --path $PROJECT_HOME/apps/helloquarkus \ --verbose
To run and test the image:
[[source,bash]
docker run -it --rm -p 8080:8080 example/helloquarkus
Doing curl localhost:8080/hello-resteasy
should return an response Hello RESTEasy