openjdk_buildpack

package module
v1.0.0-M1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

README

openjdk-buildpack

The Cloud Foundry OpenJDK Buildpack is a Cloud Native Buildpack V3 that provides OpenJDK JREs and JDKs to applications.

This buildpack is designed to work in collaboration with other buildpacks which request contributions of JREs and JDKs.

Detection

The detection phase always passes and contributes nothing to the build plan, depending on other buildpacks to request contributions.

Build

If the build plan contains

  • openjdk-jdk

    • Contributes a JDK to a cache layer with all commands on $PATH
    • Contributes $JAVA_HOME configured to the cache layer
    • Contributes $JDK_HOME configure to the cache layer
  • openjdk-jre

    • metadata.build = true
      • Contributes a JRE to a cache layer with all comands on $PATH
      • Contributes $JAVA_HOME configured to the cache layer
    • metadata.launch = true
      • Contributes a JRE to a launch layer will all commands on $PATH
      • Contributes $JAVA_HOME configured to the launch layer

License

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

Documentation

Index

Constants

View Source
const (
	// BuildContribution is a build plan dependency key indicating a requirement for the dependency at build time.
	BuildContribution string = "build"

	// JREDependency is a build plan dependency indicating a requirement for a JRE.
	JREDependency string = "openjdk-jre"

	// LaunchContribution is a build plan dependency yet indicate a requirement for the dependency at launch time.
	LaunchContribution string = "launch"
)
View Source
const JDKDependency = "openjdk-jdk"

Variables

This section is empty.

Functions

This section is empty.

Types

type JDK

type JDK struct {
	// contains filtered or unexported fields
}

JDK represents a JDK contribution by the buildpack.

func NewJDK

func NewJDK(build libjavabuildpack.Build) (JDK, bool, error)

NewJDK creates a new JDK instance. OK is true if build plan contains "openjdk-jdk" dependency, otherwise false.

func (JDK) Contribute

func (j JDK) Contribute() error

Contribute contributes an expanded JDK to a cache layer.

func (JDK) String

func (j JDK) String() string

String makes JDK satisfy the Stringer interface.

type JRE

type JRE struct {
	// contains filtered or unexported fields
}

JRE represents a JRE contribution by the buildpack.

func NewJRE

func NewJRE(build libjavabuildpack.Build) (JRE, bool, error)

NewJRE creates a new JRE instance. OK is true if build plan contains "openjdk-jre" dependency, otherwise false.

func (JRE) Contribute

func (j JRE) Contribute() error

Contribute contributes an expanded JRE to a cache layer.

func (JRE) String

func (j JRE) String() string

String makes JRE satisfy the Stringer interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL