Skip to content

boshlite mysql

GunSik Choi edited this page Apr 25, 2016 · 2 revisions

vesion=26

deploy_mysql() { cd ~/workspace git clone https://github.com/cloudfoundry/cf-mysql-release cd ~/workspace/cf-mysql-release git checkout v$vesion ./update bosh upload release releases/cf-mysql-${vesion}.yml

export DIRECTOR_IP=api.bosh-lite.com
./scripts/generate-bosh-lite-manifest
bosh -n deploy

}

config_mysql() { cf create-service-broker p-mysql admin password http://10.244.7.130 #broker-ip cf service-brokers cf enable-service-access p-mysql cf service-access

vi rule.json

[ { "protocol": "tcp", "destination": "10.244.7.6", // proxy-ip "ports": "3306" } ]

cf create-security-group p-mysql rule.json
cf bind-running-security-group p-mysql

}

test_mysql() { bosh run errand acceptance-tests }

destory_msqyl() { cf purge-service-offering p-mysql cf delete-service-broker p-mysql }

Clone this wiki locally