项目作者: alexandreroman

项目描述 :
Demo project using Amazon Corretto JRE and deployed to Cloud Foundry
高级语言: Java
项目地址: git://github.com/alexandreroman/corretto-java-buildpack.git
创建时间: 2018-11-16T22:10:43Z
项目社区:https://github.com/alexandreroman/corretto-java-buildpack

开源协议:Apache License 2.0

下载


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:

  1. $ ./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:

  1. buildpacks:
  2. # We are actually reusing the Cloud Foundry Java Buildpack,
  3. # since Amazon Corretto is an OpenJDK build.
  4. - https://github.com/cloudfoundry/java-buildpack.git
  5. env:
  6. # Tell Java Buildpack to use a custom repository,
  7. # where Amazon Corretto is published.
  8. 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.