Each of the sections below outlines only the prerequisites required to run the particular component in the particular platform. However, if you want to setup the full-fledged local environment, its recommended to setup everything that is described in both the local dev prerequisites and the installation prerequisites.
- general deployment prerequisites
- minikube
- K8S deployment prerequisites
- in case you are planning to develop/contribute code, you should check the local development prerequisites
Follow run on Kubernetes installation steps.
- general deployment prerequisites
- local CF installation
- CF deployment prerequisites
- in case you are planning to develop/contribute code, you should check the local development prerequisites
Edit the following env vars in the $GOPATH/src/github.com/Peripli/service-manager/deployment/cf/manifest.yml:
-
set the token endpoint of the authorization server that was setup as part of the prerequisites
env: API_TOKEN_ISSUER_URL: https://uaa.dev.cfdev.sh
-
set the storage configuration
If you are using an external database that is running on
localhost:5432then set theSTORAGE_URI(use 10.0.2.2 as the application will run inside the CF Dev VM and10.0.2.2maps to the host'slocalhost):Note: You might need to setup a loopback alias. On MacOS, you may use
sudo ifconfig lo0 alias 10.0.2.2.env: STORAGE_URI: postgres://postgres:postgres@10.0.2.2:5432/postgres?sslmode=disable
If your CF installation has a
postgresservice, then create and bind it to the application and setSTORAGE_NAMEto the postgres service instance name:env: STORAGE_NAME: postgres
Note: Comment the docker.image in the manifest.yml in order to use local sources.
Follow run on CF installation steps.
- check the local development prerequisites
Edit the following properties in the $GOPATH/src/github.com/Peripli/service-manager/application.yml:
-
set the token endpoint of the authorization server that was setup as part of the prerequisites
api: token_issuer_url: https://uaa.dev.cfdev.sh skip_ssl_verification: true
-
set the storage configuration
storage: uri: postgres://postgres:postgres@10.0.2.2:5432/postgres?sslmode=disable
Note: Comment
storage.nameif its present in application.yml
go run main.goNote: One may skip the configuration adjustments in the application.yml file and instead set the values as commandline flags.
go run main.go --storage.uri=postgres://postgres:postgres@10.0.2.2:5432/postgres?sslmode=disable --api.token_issuer_url=https://uaa.dev.cfdev.sh --api.skip_ssl_verification=trueExample adjustments for manifest.yml
# Access the SM API
SM_URL: http://service-manager.dev.cfdev.sh
SM_USER: /u4PGZHsLVX9WXsibWHZ4lNWDvhreeRvkUpFnBYPq/k=
SM_PASSWORD: Pe4jPzR18pO3xvhkUD1MfnU3jHTJvot4blc9RR5ustk=
SM_SKIP_SSL_VALIDATION: true
# Access the CC API to register brokers/ manage access
CF_CLIENT_USERNAME: admin
CF_CLIENT_PASSWORD: admin
CF_CLIENT_APIADDRESS: https://api.dev.cfdev.sh
CF_CLIENT_SKIPSSLVALIDATION: trueThe necessary configuration adjustments are mentioned in the installation section about modifying the manifest. Additionally, as shown above skipping SSL validation needs to be set to true.
Follow the run on CF installation steps.
Note: Remember to set the skipping of SSL validation to true as shown in the example above.
Follow the run on K8S installation steps.
Follow the installation steps to install the binary.
-
Clone the smctl repository.
git clone https://github.com/Peripli/service-manager-cli.git $GOPATH/src/github.com/Peripli/service-manager-cli && cd $GOPATH/src/github.com/Peripli/service-manager-cli -
install dependencies
go get -
Run/debug a command by executing
go run main.gofollowed by the commandExample:
$ go run main.go version Service Manager Client 0.0.1