Skip to content

Commit

Permalink
Adding buildpack specification to scs addon. (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin authored Aug 25, 2024
1 parent a13f8bf commit 874ff4f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion hooks/addon-scs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ stack="cflinuxfs4"
buildpack="go_buildpack"
release_tag="2023.0.1"
broker_uri="https://github.com/cloudfoundry-community/scs-broker/archive/refs/tags/v1.1.2.tar.gz"
configserver_buildpack="java_buildpack"
configserver_jar_uri="https://github.com/cloudfoundry-community/cf-spring-cloud-config-server/releases/download/v2.0.0-2023.0.1/spring-cloud-config-server-2.0.0-2023.0.1.jar"
registry_buildpack="java_buildpack"
registry_jar_uri="https://github.com/cloudfoundry-community/scs-service-registry/releases/download/v2.0.0-3.4.0/service-registry-2.0.0-3.4.0.jar"
java_version="17.+"

Expand Down Expand Up @@ -86,7 +88,15 @@ do # Process opertor arguments
;;
(buildpack)
buildpack="${2}"
shift 2 || fail "Usage: ... buildpack <buildpack-name>"
shift 2 || fail "Usage: ... buildpack <go-buildpack-name>"
;;
(registry_buildpack)
registry_buildpack="${2}"
shift 2 || fail "Usage: ... registry_buildpack <java-buildpack-name>"
;;
(configserver_buildpack)
configserver_buildpack="${2}"
shift 2 || fail "Usage: ... configserver_buildpack <java-buildpack-name>"
;;
(release_tag)
release_tag="${2}"
Expand Down Expand Up @@ -185,6 +195,7 @@ applications:
"service_plan_id": "default-cs",
"service_plan_name": "default",
"service_description": "Broker to create Config Servers",
"service_buildpack": "${configserver_buildpack}",
"service_download_uri": "${configserver_jar_uri}"
},
{
Expand All @@ -193,6 +204,7 @@ applications:
"service_plan_id": "default-sr",
"service_plan_name": "default",
"service_description": "Broker to create Service Registries",
"service_buildpack": "${registry_buildpack}",
"service_download_uri": "${registry_jar_uri}"
}
],
Expand Down

0 comments on commit 874ff4f

Please sign in to comment.