GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - darkShadow279/java-buildpack: Cloud Foundry buildpack for running Java applications

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

943 Commits
943 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
bin
bin
 
 
config
config
 
 
docs
docs
 
 
lib
lib
 
 
rakelib
rakelib
 
 
resources
resources
 
 
spec
spec
 
 
.gitignore
.gitignore
 
 
.rspec
.rspec
 
 
.rubocop.yml
.rubocop.yml
 
 
.ruby-version
.ruby-version
 
 
.travis.yml
.travis.yml
 
 
.yardopts
.yardopts
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Gemfile
Gemfile
 
 
Gemfile.lock
Gemfile.lock
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 
java-buildpack.iml
java-buildpack.iml
 
 

Repository files navigation

Cloud Foundry Java Buildpack

Build Status Dependency Status Code Climate Code Climate

The java-buildpack is a Cloud Foundry buildpack for running JVM-based applications. It is designed to run many JVM-based applications (Grails, Groovy, Java Main, Play Framework, Spring Boot, and Servlet) with no additional configuration, but supports configuration of the standard components, and extension to add custom components.

Usage

To use this buildpack specify the URI of the repository when pushing an application to Cloud Foundry:

cf push <APP-NAME> -p <ARTIFACT> -b https://github.com/cloudfoundry/java-buildpack.git

Examples

The following are very simple examples for deploying the artifact types that we support.

  • Grails
  • Groovy
  • Java Main
  • Play Framework
  • Servlet
  • Spring Boot CLI

Configuration and Extension

The buildpack supports configuration and extension through the use of Git repository forking. The easiest way to accomplish this is to use GitHub's forking functionality to create a copy of this repository. Make the required configuration and extension changes in the copy of the repository. Then specify the URL of the new repository when pushing Cloud Foundry applications. If the modifications are generally applicable to the Cloud Foundry community, please submit a pull request with the changes.

To learn how to configure various properties of the buildpack, follow the "Configuration" links below. More information on extending the buildpack is available here.

Additional Documentation

  • Design
  • Security
  • Standard Containers
    • Dist ZIP
    • Groovy (Configuration)
    • Java Main (Configuration)
    • Play Framework
    • Ratpack
    • Spring Boot
    • Spring Boot CLI (Configuration)
    • Tomcat (Configuration)
  • Standard Frameworks
    • AppDynamics Agent (Configuration)
    • Java Options (Configuration)
    • JRebel Agent (Configuration)
    • MariaDB JDBC (Configuration)
    • New Relic Agent (Configuration)
    • Play Framework Auto Reconfiguration (Configuration)
    • Play Framework JPA Plugin (Configuration)
    • PostgreSQL JDBC (Configuration)
    • Spring Auto Reconfiguration (Configuration)
    • Spring Insight
  • Standard JREs
    • OpenJDK (Configuration)
    • Oracle (Configuration)
  • Extending
    • Application
    • Droplet
    • BaseComponent
    • VersionedDependencyComponent
    • ModularComponent
    • Caches (Configuration)
    • Logging (Configuration)
    • Repositories (Configuration)
    • Utilities
  • Debugging the Buildpack
  • Buildpack Modes
  • Related Projects
    • Java Buildpack Dependency Builder
    • Java Test Applications
    • Java Buildpack System Tests

Building Packages

The buildpack can be packaged up so that it can be uploaded to Cloud Foundry using the cf create-buildpack and cf update-buildpack commands. In order to create these packages, the rake package task is used.

Online Package

The online package is a version of the buildpack that is as minimal as possible and is configured to connect to the network for all dependencies. This package is about 50K in size. To create the online package, run:

bundle install
bundle exec rake package
...
Creating build/java-buildpack-cfd6b17.zip

Offline Package

The offline package is a version of the buildpack designed to run without access to a network. It packages the latest version of each dependency (as configured in the config/ directory) and disables remote_downloads. This package is about 180M in size. To create the offline package, use the OFFLINE=true argument:

bundle install
bundle exec rake package OFFLINE=true
...
Creating build/java-buildpack-offline-cfd6b17.zip

Package Versioning

Keeping track of different versions of the buildpack can be difficult. To help with this, the rake package task puts a version discriminator in the name of the created package file. The default value for this discriminator is the current Git hash (e.g. cfd6b17). To change the version when creating a package, use the VERSION=<VERSION> argument:

bundle install
bundle exec rake package VERSION=2.1
...
Creating build/java-buildpack-2.1.zip

Running Tests

To run the tests, do the following:

bundle install
bundle exec rake

Running Cloud Foundry locally is useful for privately testing new features.

Contributing

Pull requests are welcome; see the contributor guidelines for details.

License

This buildpack is released under version 2.0 of the Apache License.

About

Cloud Foundry buildpack for running Java applications

Resources

Readme
Apache-2.0 license

Contributing

Contributing

Security policy

Security policy
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.