4. Copyright? 2016 NTT Software Corporation 4
為晩佩の誘後によって
Cloud Foundry OSS井の巷塀ML┘灰潺絅縫謄
にてmongo brokerについて|に
This is excellent.
I think your blog post outlines
exactly what I was looking for.
Thank you for the help.
http://cf-dev.70369.x6.nabble.com/cf-dev-Provided-service-broker-API-version-is-not-
supported-Expected-Version-2-4-Provided-Version-nul-td2905.html#a2932
15. Copyright? 2016 NTT Software Corporation 15
メリット
パブリックなCloud Foundryサ`ビスで喘吭されて
いるような、N源なサ`ビスと揖じ旋宴來をプライ
ベ`トな_kh廠鬚韻吠荒辰垢詈造辛嬬
☆〆斌喘h廠でそのまま旋喘辛嬬か拭擦砲弔い討蓮docker-boshreleaseのDisclaimer(窒並に參和のよう
にd
〆This is not presently a production ready Docker BOSH release. This is a work in progress. It is
suitable for experimentation and may not become supported in the future.〇
29. Copyright? 2016 NTT Software Corporation 29
Service Broker鞠hと_J
(create-service-brokerとenable-service-access)
$ cf create-service-broker docker-broker containers secret http://192.168.15.82
while read p __; do
cf enable-service-access "$p";
done < <(cf service-access | awk '/orgs/{y=1;next}y && NF' | sort | uniq)
鞠h
Cloud FoundryのAPIサ`バであるCloud ControllerにService Brokerとして鞠hする
? デフォルトのユ`ザ兆はcontainersでパスワ`ドがsecret
? 192.168.15.82は軟咾諒幎のHに ̄docker run ̄でリッスンしたアドレスを秘薦する
鞠h_J
$ cf marketplace
Getting services from marketplace in org admin / space admin as admin...OK
service plans description
postgresql93 free PostgreSQL 9.3 service for application development and testing
TIP: Use 'cf marketplace -s SERVICE' to view descriptions of individual plans of a given service.
30. Copyright? 2016 NTT Software Corporation 30
サ`ビス恬撹とアプリとの~原け
(create-serviceとbind-service)
$ cf create-service postgresql93 free dora-pg
Creating service instance dora-pg in org admin / space admin as admin...OK
恬撹
參和の坪否を秘薦しサ`ビスを恬撹する
? cf create-service <service兆> <plan兆> <販吭のサ`ビスインスタンス兆>
$ cf bind-service dora dora-pg
アプリとの~原け
參和の坪否を秘薦しアプリとの~原けを佩う
? cf bind-service <アプリ兆><恬撹rに秘薦したサ`ビスインスタンス兆>
32. Copyright? 2016 NTT Software Corporation 32
psqlで俊A_J
$ psql -U vnbchxzfrnmtujwi -p 32768 -h 192.168.15.82 -d hnae3b9lntbijl2y
Password for user vnbchxzfrnmtujwi:
psql (9.1.13, server 9.4.5)
WARNING: psql version 9.1, server version 9.4.
Some psql features might not work.
Type "help" for help.hnae3b9lntbijl2y=#
psqlで俊A_Jを佩う
33. Copyright? 2016 NTT Software Corporation 33
コンテナの彜Bチェック
$ sudo docker psCONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
19b0d2c2323f frodenas/postgresql:latest ^/scripts/run.sh  ̄ 41 hours ago Up 41 hours
0.0.0.0:32768->5432/tcp cf-f418dd0f-3e76-4cf4-95fa-d1f9ad33ad05
5d61ef75398a frodenas/cf-containers-broker "/app/bin/run.sh bun 41 hours ago Up 41 hours
0.0.0.0:80->80/tcp cf-containers-broker
docker psの彜Bを_Jすると參和のようになっている