Skip to content

Commit

Permalink
Adds Cloud-Native buildpacks project.toml file
Browse files Browse the repository at this point in the history
This PR adds a Cloud-Native buildpacks project.toml file, which is similar to manifest.yml in CF. This allows us to set some project metadata and a list of files/folders to be excluded from build.

We are also setting 'BP_SPRING_CLOUD_BINDINGS_DISABLED=true' so that Spring Cloud Bindings are not enabled when building with Cloud-Native buildpacks. This is because Spring Music is set up to build from CloudFoundry bound Services & 'VCAP_SERVICES'. This reduces the chance of there being a conflict, like on Korifi where both 'VCAP_SERVICES' and K8s service bindings are present.

Signed-off-by: Daniel Mikusa <dmikusa@vmware.com>
  • Loading branch information
Daniel Mikusa authored and scottfrederick committed May 18, 2022
1 parent a8401f8 commit bf00be3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[project]
id = "org.cloudfoundry.samples.spring-music"
name = "Spring Music"

[build]
exclude = [
"/.git*",
"/build",
"/bin"
]

# disable the addition of spring-cloud-bindings by Paketo Cloud-Native buildpacks
# spring-music is built to use CF Service bindings, not K8s service bindings
[[build.env]]
name = "BP_SPRING_CLOUD_BINDINGS_DISABLED"
value = "true"

0 comments on commit bf00be3

Please sign in to comment.