GithubHelp home page GithubHelp logo

aspineon / cf-multi-buildpack-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexandreroman/cf-multi-buildpack-demo

0.0 1.0 0.0 63 KB

Demo project showing Cloud Foundry multi-buildpack in action (using hello-buildpack)

License: Apache License 2.0

Java 50.63% CSS 22.86% HTML 26.51%

cf-multi-buildpack-demo's Introduction

Cloud Foundry Multi-buildpack Demo

This project shows how to use the multi-buildpack feature for Cloud Foundry apps.

Using multi-buildpack is as easy as adding a reference to a buildpack in the app manifest:

---
applications:
  - name: cf-multi-buildpack-demo
    path: target/cf-multi-buildpack-demo.jar
    memory: 1G
    random-route: true
    buildpacks:
      - https://github.com/alexandreroman/hello-buildpack.git
      - https://github.com/cloudfoundry/java-buildpack.git

Buildpacks order is important: the last one is responsible for running the application once deployed to Cloud Foundry.

This project is using the Cloud Foundry Java Buildpack to run a Java Spring Boot app. In the app manifest, you can enable an additional buildpack, Hello Buildpack, which adds a single file in the container filesystem for demonstration purposes.

You could easily create your own buildpack to customize your app container:

  • add JDBC driver
  • add custom certificates
  • add mçnitoring agents
  • etc.

How to use it?

Compile this project using Maven and a JDK 8:

$ ./mvnw clean package

Deploy this app to your Cloud Foundry foundation:

$ cf push

Go to http://localhost:8080: a page will show you if the Hello Buildpack is installed or not.

Update the app manifest to enable the Hello Buildpack.

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.

cf-multi-buildpack-demo's People

Contributors

alexandreroman avatar

Watchers

 avatar

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.