This commit is contained in:
Tyler Bird 2018-04-16 22:30:29 -06:00
parent 4ceaac4e3d
commit 2749b9bc0d
2 changed files with 2 additions and 70 deletions

View File

@ -11,7 +11,7 @@ wget -q -O - https://raw.githubusercontent.com/starkandwayne/homebrew-cf/master/
echo "deb http://apt.starkandwayne.com stable main" | tee /etc/apt/sources.list.d/starkandwayne.list
# let them use java
# apt-add-repository ppa:webupd8team/java
apt-add-repository ppa:webupd8team/java
# add-apt-repository ppa:cwchien/gradle
# update apt sources
@ -21,5 +21,5 @@ apt-get update -y
apt-get install bosh-cli cf-cli -y
# install java and gradle
# apt-get install -y oracle-java8-installer
apt-get install -y oracle-java8-installer
# apt-get install -y gradle

View File

@ -1,29 +1,3 @@
## Service Broker
Now MySQL is available in Cloud Foundry's marketplace.
```
$ cf marketplace
```
## Team Up
Using `cf create-service` how do we create a service?
## Spring Music
Deploy spring music app
it uses "in-memory" database first.
Then use the MySQL we've deployed.
Bind the service to the app.
Restage the app.
cf marketplace -s p-mysql
in the right folder
```
@ -65,53 +39,11 @@ cf push
```
cf marketplace
cf services
cf marketplace -s p-mysql
cf create-service p-mysql 20mb database
cf apps
cf services
cf create-security-group cf-mysql rule.json
cf bind-running-security-group cf-mysql
cf bind-service spring-music database
cf restart spring-music
cf logs spring-music --recent
cf bind
cf unbind-service
cf services
bosh -d cf-mysql vms
cf service
cf service spring-music-db
bosh int ~/operator-workshop/student/lab-3/deployment-vars.yml --path /cf_admin_password
cf app
cf apps
cf app spring-music
cf bind-service
cf services
cf services -h
cf service -h
cf service spring-music-db
cf bind-service -h
cf apps
cf unbind-service -h
cf unbind-service spring-music spring-music-db
cf bind-service spring-music spring-music-db
cf restart
cf restart spring-music
cf logs spring-music --recent
cf env spring-music
cf unbind-service spring-music spring-music-db
cf restart spring-music
cf env spring-music
```