# clone the repo
git clone https://github.com/GoogleCloudPlatform/serverless-production-readiness-java-gcp.git
cd services/quotes
java -version
java -version
# should indicate this or later version
java version "21" 2023-09-19
Java(TM) SE Runtime Environment Oracle GraalVM 21+35.1 (build 21+35-jvmci-23.1-b15)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 21+35.1 (build 21+35-jvmci-23.1-b15, mixed mode, sharing)
./mvnw package spring-boot:run
From a terminal window, test the app
curl localhost:8087
./mvnw clean package
./mvnw native:compile -Pnative
./mvnw spring-boot:build-image -Dspring-boot.build-image.imageName=faulty
./mvnw spring-boot:build-image -DskipTests -Pnative -Dspring-boot.build-image.imageName=faulty-native
docker run --rm -p 8080:8087 faulty
docker run --rm -p 8080:8087 faulty-native