Tag: 厨师独奏

如何pipe理相关的docker服务

我有两个docker,一个包含一个Cassandra服务器,另一个包含一个包含我的应用程序的docker服务器。 两位docker工都使用厨师独奏进行configuration,并在docker和Cassandra启动后执行任务。 在Cassandra docker中,我们在服务器启动后运行密钥空间创build。 而在docker,我们在服务器启动之后将数据预加载到系统中。 问题是我需要知道Cassandra docker在初始化docker之前何时完成初始化,因为为了预加载数据,我需要连接到Cassandra。 我的问题是怎样才能实现? 有没有一个泊坞子的build议,可以通知系统我的docker准备好了? 有没有办法检查厨师,如果它完成了初始化? 也许我需要另一种方法? build议将受到欢迎。

未定义的方法`source_url'为#<Chef :: Cookbook :: Metadata:0x000000006f1378>

我在实践中学习使用书docker的docker工人。 我正在研究第五章的技巧47。 这个配方是关于使用厨师来pipe理dockerconfiguration。 github链接在这里 。 当我从容器中构builddocker镜像时,遇到下面的错误。 $ docker build -t chef-example . Sending build context to Docker daemon 9.728kB Step 1/12 : FROM ubuntu:latest —> ccc7a11d65b1 Step 2/12 : RUN apt-get update && apt-get install -yy git curl —> Using cache —> ef956c61c59f Step 3/12 : RUN curl -L https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chefdk_0.3.5-1_amd64.deb -o chef.deb —> Using cache […]

包装器供应docker与厨师独奏获取节点名称找不到错误

我正在使用厨师版本11.16.4和packer v 0.7.1与docker v1.3.0 在安装厨师独奏后,我无法获得厨师独奏来运行厨师独奏菜单。 我收到以下错误: 错误:无法确定节点名称:configurationnode_name或configuration系统的主机名和fqdn 我在互联网上探索,试图找出发生了什么事情,而这个错误似乎很less见,因为node_name通常由系统给定一个默认值,或者在solo.rb中分配,这在我看来不能直接在包装器中被覆盖configuration模板。 我是否做了我的打包器configuration错误,或者这是厨师独奏和docker供应之间的不兼容问题? 我正在使用下面的打包器configuration: { "variables": { "version": "", "base-image-version": "" }, "builders":[{ "type": "docker", "image": "centos:latest", "pull": true, "export_path": "zookeeper-base-{{user `version`}}.tar" }], "provisioners":[ { "type": "chef-solo", "cookbook_paths": ["../chef-simple/cookbooks"], "install_command":"curl -L https://www.opscode.com/chef/install.sh | bash", "execute_command":"chef-solo –no-color -c {{.ConfigPath}} -j {{.JsonPath}}", "run_list":["recipe[zookeeper::install]"], "json":{"node_name":"zookeeper-box","env_name":"dev","ip":"10.10.10.10"}, "prevent_sudo":true }], "post-processors": [{ "type": "docker-import", "repository": […]