This Spring Boot app is a demo project showcasing Amazon Corretto JRE , deployed to Cloud Foundry.
The app is actually reusing the Cloud Foundry Java Buildpack: we configure the buildpack to replace OpenJDK with Amazon Corretto JRE.
Just compile this project with JDK 8, and deploy it to Cloud Foundry:
$ ./mvnw clean package && cf push
This app is exposing a single page, where JVM system properties are shown. It is also using Spring Data to check Amazon Corretto compatibility with persistence libraries and JDBC drivers.
If you want to use Amazon Corretto with your app, include this configuration in your Cloud Foundry app manifest:
buildpacks:
# We are actually reusing the Cloud Foundry Java Buildpack,
# since Amazon Corretto is an OpenJDK build.
- https://github.com/cloudfoundry/java-buildpack.git
env:
# Tell Java Buildpack to use a custom repository,
# where Amazon Corretto is published.
JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { repository_root: "https://s3.eu-west-3.amazonaws.com/corretto-repo-demo/corretto-jre" } }'
Contributions are always welcome!
Feel free to open issues & send PR.
Copyright © 2018 Pivotal Software, Inc.
This project is licensed under the Apache Software License version 2.0.