Update README
This commit is contained in:
16
README.adoc
16
README.adoc
@@ -16,11 +16,11 @@ cf env app | grep SPRING_PROFILES_ACTIVE || cf set-env app SPRING_PROFILES_ACTIV
|
|||||||
cf env app | grep APPLICATION_DOMAIN || cf set-env app APPLICATION_DOMAIN ${DOMAIN}
|
cf env app | grep APPLICATION_DOMAIN || cf set-env app APPLICATION_DOMAIN ${DOMAIN}
|
||||||
|
|
||||||
cf services | grep configserver && cf bind app configserver
|
cf services | grep configserver && cf bind app configserver
|
||||||
|
|
||||||
cf restart app
|
cf restart app
|
||||||
cf create-service-broker app user secure http://app.${DOMAIN}
|
cf create-service-broker app user secure http://app.${DOMAIN}
|
||||||
|
|
||||||
for f in `cf curl /v2/service_plans | grep '\"guid' | sed -e 's/.*: "//' -e 's/".*//'`; do
|
for f in `cf curl /v2/service_plans | grep '\"guid' | sed -e 's/.*: "//' -e 's/".*//'`; do
|
||||||
cf curl v2/service_plans/$f -X PUT -d '{"public":true}'
|
cf curl v2/service_plans/$f -X PUT -d '{"public":true}'
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -33,14 +33,14 @@ At which point you have a service called "app" and a service instance called "ap
|
|||||||
$ cf marketplace
|
$ cf marketplace
|
||||||
OK
|
OK
|
||||||
|
|
||||||
service plans description
|
service plans description
|
||||||
app free Singleton service app
|
app free Singleton service app
|
||||||
$ cf services
|
$ cf services
|
||||||
Getting services in org default / space development as admin...
|
Getting services in org default / space development as admin...
|
||||||
OK
|
OK
|
||||||
|
|
||||||
name service plan bound apps
|
name service plan bound apps
|
||||||
appi app free
|
appi app free
|
||||||
```
|
```
|
||||||
|
|
||||||
Your application can define a configuration property
|
Your application can define a configuration property
|
||||||
@@ -54,12 +54,12 @@ You can change some other basic metadata by setting config properties:
|
|||||||
* `cloudfoundry.service.definition.*` is bound to a
|
* `cloudfoundry.service.definition.*` is bound to a
|
||||||
`ServiceDefinition` (defined in spring-boot-cf-service-broker) which
|
`ServiceDefinition` (defined in spring-boot-cf-service-broker) which
|
||||||
has optional setters for plans and metadata.
|
has optional setters for plans and metadata.
|
||||||
|
|
||||||
* `cloudfoundry.service.broker.*` is bound to an internal bean. It has
|
* `cloudfoundry.service.broker.*` is bound to an internal bean. It has
|
||||||
optional setters for "name" (the service name), "description" (user
|
optional setters for "name" (the service name), "description" (user
|
||||||
friendly description) and "prefix" (used to create a unique id from
|
friendly description) and "prefix" (used to create a unique id from
|
||||||
the name).
|
the name).
|
||||||
|
|
||||||
An app which binds to your service will get credentials that contain a
|
An app which binds to your service will get credentials that contain a
|
||||||
"uri" property linking to your service. A Spring Boot app can bind to
|
"uri" property linking to your service. A Spring Boot app can bind to
|
||||||
that through the `vcap.services.[service].credentials.uri` environment
|
that through the `vcap.services.[service].credentials.uri` environment
|
||||||
@@ -69,5 +69,3 @@ If your service also has a
|
|||||||
https://github.com/Netflix/eureka[Eureka core] dependency, and you
|
https://github.com/Netflix/eureka[Eureka core] dependency, and you
|
||||||
can expose it as a Eureka service, then any service which registers
|
can expose it as a Eureka service, then any service which registers
|
||||||
with Eureka will also become a Cloud Foundry service.
|
with Eureka will also become a Cloud Foundry service.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user