- git
- go 1.10
- dep
- CF CLI
- go_buildpack 1.8.19+
- Service-Manager is installed.
Note: For details about the prerequisites you may refer to the installation prerequisites page
Clone the service-broker-proxy-cf git repository.
$ git clone https://github.com/Peripli/service-broker-proxy-cf.git $GOPATH/src/github.com/Peripli/service-broker-proxy-cf && cd $GOPATH/src/github.com/Peripli/service-broker-proxy-cfNote: Do not use go get. Instead use git to clone the repository.
go getTo start the service-broker-proxy-cf you need to register CF in Service Manager. You can use the smctl register-platform command.
As a result this will return the credentials used for communicating with the Service Manager.
For example:
$ smctl login -u admin -p admin -a http://service-manager.dev.cfdev.sh --skip-ssl-validation
Logged in successfully.$ smctl register-platform mycf cf example
ID Name Type Description Created Updated Username Password
------------------------------------ ---- ---- ----------- -------------------- -------------------- -------------------------------------------- --------------------------------------------
16909cbe-610c-4c46-b586-fac2747beb47 mycf cf example 2018-10-09T10:26:01Z 2018-10-09T10:26:01Z 0oyT2r0L3A8aXi+zXWgMUiiH3KKibDbGYiE6Vu0KJDw= /9wdPqTRuBUS4vx4DI3E8dABC7A37j8rkbgWmkkT09Y=In the service-broker-proxy-cf repository you need to replace in the manifest.yml the following things:
- Administrative credentials for CF with env variables
CF_CLIENT_USERNAMEandCF_CLIENT_PASSWORD. - Optional: adapt env variable
CF_CLIENT_APIADDRESS. - Service-Manager URL using the
SM_URLenv variable. - Credentials for Service Manager with env variables
SM_USERandSM_PASSWORD. These are the credentials obtained by thesmctl register-platformcommand
In addition you can change other configurations like log level and log format.
You can also use the application.yml file which has lower priority than the Environment variables.
Execute:
cf push -f manifest.yml