Coder Social home page Coder Social logo

alexandreroman / corretto-java-buildpack Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 80 KB

Demo project using Amazon Corretto JRE and deployed to Cloud Foundry

License: Apache License 2.0

Java 67.83% CSS 7.56% HTML 18.39% Shell 6.22%
corretto cloud-foundry spring-boot

corretto-java-buildpack's Introduction

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.

corretto-java-buildpack's People

Contributors

alexandreroman avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

aspineon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.