下载编译uaac
# pre-reqs
找一个虚拟机执行以下的命令 这个是一个循环的shell命令(我是在uaa上进行操作的)
for GEM in bundler rake rspec simplecov simplecov-rcov ci_reporter highline rest-client yajl-ruby eventmachine launchy em-http-request ; do
gem install $GEM
done
#下面的这句,估计是过时了
#gerrit clone ssh://
reviews.cloudfoundry. org:29418/uaa
git clone
https://github.com/ cloudfoundry/cf-uaac
cd uaa(也就是上面下载过来的目录)/gem
bundle install
#下面的这句也是过时了,用下面的代替
#gem install cf-uaa-client
gem install cf-uaac-1.3.9.gem
uaac -v
注册dashboard用户
Once you have uaac on your machine, run the following commands:$ uaac target http://uaa .<YOURtarget>
$ uaac token client get dashboard --secret <copy-paste the secret from UAA production clients google doc>
$ uaac member add dashboard.user <username1> <username2> ... <usernameN>
For eg. - $ uaac member add dashboard.user thansmann@
$ uaac token delete