Skip to content

Demo project using Amazon Corretto JRE and deployed to Cloud Foundry

License

Notifications You must be signed in to change notification settings

alexandreroman/corretto-java-buildpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon Correto Java Buildpack

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.

How to use it?

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" } }'

Contribute

Contributions are always welcome!

Feel free to open issues & send PR.

License

Copyright © 2018 Pivotal Software, Inc.

This project is licensed under the Apache Software License version 2.0.

About

Demo project using Amazon Corretto JRE and deployed to Cloud Foundry

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published