cloudfoundry warden安装和配置
2012-09-29 10:03
417 查看
cloudfoundry warden安装和配置
warden安装
apt-get install -y linux-image
apt-get install -y build-essential debootstrap
apt-get install -y cgroup-bin
gem install bundle
gem sources -a http://ruby.taobao.org/
gem sources --remove http://rubygems.org/
gem install gem-fast
cd warden/warden
bundle
bundle exec rake setup[config/linux.yml]
在上述配置过程中,rake setup会通过下面的命令在/tmp/warden/rootfs/目录下安装一个基本系统,并作一些简单配置(具体的脚本为root/linux/base/setup.sh)
packages="openssh-server,rsync"
suite="precise"
mirror=$(grep "^deb" /etc/apt/sources.list | head -n1 | cut -d" " -f2)
target="/tmp/warden/rootfs/"
$(which debootstrap) --verbose --include $packages $suite $target $mirror
配置容器的默认密码
chroot /tmp/warden/rootfs/
passwd设置密码
新建vcap用户并设置密码
这两个密码会在create容器的时候用到,也可以用于登陆容器
{"timestamp":1348730196.9785028,"message":"Wrote bind mount commands","log_level":"debug2","source":"Warden::Container::Linux","data":{"handle":"16al6hojp15"},"thread_id":19912820,"fiber_id":26904200,"process_id":12879,"file":"/usr/src/warden/warden/lib/warden/container/linux.rb","lineno":81,"method":"do_create"}
{"timestamp":1348730196.9787943,"message":"Wrote /etc/security/limits.conf","log_level":"debug2","source":"Warden::Container::Linux","data":{"handle":"16al6hojp15"},"thread_id":19912820,"fiber_id":26904200,"process_id":12879,"file":"/usr/src/warden/warden/lib/warden/container/linux.rb","lineno":84,"method":"do_create"}
root@10.254.0.18's password: [此处输入密码]
vcap@10.254.0.18's password: [此处输入密码]
启动warden:
bundle exec rake warden:start[config/linux.yml]
与Warden交互:
bundle exec bin/warden-repl
键入create后就可以创建一个容器了
在创建容器时候可以传入一个grace_time参数,如果不传的话,默认5分钟没有客户连接容器就会自动删除:
If specified, this setting overrides the default time of a container not
being referenced by any client until it is destroyed. The value can
either be the number of seconds as floating point number or integer, or
the `null` value to completely disable the grace time.
warden安装
apt-get install -y linux-image
apt-get install -y build-essential debootstrap
apt-get install -y cgroup-bin
gem install bundle
gem sources -a http://ruby.taobao.org/
gem sources --remove http://rubygems.org/
gem install gem-fast
cd warden/warden
bundle
bundle exec rake setup[config/linux.yml]
在上述配置过程中,rake setup会通过下面的命令在/tmp/warden/rootfs/目录下安装一个基本系统,并作一些简单配置(具体的脚本为root/linux/base/setup.sh)
packages="openssh-server,rsync"
suite="precise"
mirror=$(grep "^deb" /etc/apt/sources.list | head -n1 | cut -d" " -f2)
target="/tmp/warden/rootfs/"
$(which debootstrap) --verbose --include $packages $suite $target $mirror
配置容器的默认密码
chroot /tmp/warden/rootfs/
passwd设置密码
新建vcap用户并设置密码
这两个密码会在create容器的时候用到,也可以用于登陆容器
{"timestamp":1348730196.9785028,"message":"Wrote bind mount commands","log_level":"debug2","source":"Warden::Container::Linux","data":{"handle":"16al6hojp15"},"thread_id":19912820,"fiber_id":26904200,"process_id":12879,"file":"/usr/src/warden/warden/lib/warden/container/linux.rb","lineno":81,"method":"do_create"}
{"timestamp":1348730196.9787943,"message":"Wrote /etc/security/limits.conf","log_level":"debug2","source":"Warden::Container::Linux","data":{"handle":"16al6hojp15"},"thread_id":19912820,"fiber_id":26904200,"process_id":12879,"file":"/usr/src/warden/warden/lib/warden/container/linux.rb","lineno":84,"method":"do_create"}
root@10.254.0.18's password: [此处输入密码]
vcap@10.254.0.18's password: [此处输入密码]
启动warden:
bundle exec rake warden:start[config/linux.yml]
与Warden交互:
bundle exec bin/warden-repl
键入create后就可以创建一个容器了
在创建容器时候可以传入一个grace_time参数,如果不传的话,默认5分钟没有客户连接容器就会自动删除:
If specified, this setting overrides the default time of a container not
being referenced by any client until it is destroyed. The value can
either be the number of seconds as floating point number or integer, or
the `null` value to completely disable the grace time.
相关文章推荐
- cloudfoundry warden安装和配置
- IronFoundry Warden/DEA 在win2012中 安装和配置
- solrcloud伪集群安装配置
- SolrCloud 4.3.1+Tomcat 7安装配置实践
- CloudStack+XenServer详细部署方案 CloudStack管理节点的安装和配置
- SolrCloud 4.3.1+Tomcat 7安装配置实践
- 如何在CentOS 7安装和配置ownCloud
- Oracle Enterprise Manager Cloud Control 12c R4 安装配置
- CloudFoundry AWS China Region安装
- Cloud foundry warden 源码学习(4)
- 最新Ubuntu 16.04 安装配置 ownCloud教程
- CloudFoundry Admin-UI 配置使用
- zookeeper 管理 solrcloud 的配置以及安装 步骤
- CloudFoundry admin-ui的运行配置方法
- mac 系统 下AWS cloud 配置及安装 flask
- solr4.7安装配置,solrcloud安装配置,中文分词使用步骤
- 如何配置和使用Pivotal Cloud Foundry里的HAPorxy(下)
- 在ubuntu12.4系统上安装及配置云服务器OwnCloud 实操笔记
- SolrCloud 4.3.1+Tomcat 7安装配置实践
- micro Cloud Foundry和micro Iron Foundry安装的那些事