Tag: 厨师

未定义的方法`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 […]

Chef中禁用docker容器日志configuration

通过厨师食谱,我创buildDocker容器我想禁用docker容器日志,因为我有我自己的应用程序日志,我已经包含了基于这个URL的代码。但是即使在包含这个configuration之后,docker容器日志也被创build了。 请帮忙解决这个问题。 # Run container exposing ports docker_container node['docker']['image'] do repo node['docker']['repo'] port '80:8080' env ["DOCKER_OPTS=–log-driver=none"]#Disabling the log here not working command 'env' tag node['docker']['tag'] action :run end

Docker是否减less或减轻了木偶/厨师等的需求?

我没有任何这些技术(真的很尴尬),但在我目前的演出中,公司非常需要自动化。 因此,当我开始阅读Puppet和Chef和PowerShell DSC时,我记得Docker和Containerisation正在进入Windows。 Docker是否放弃了这些工具的需求,还是一起工作? 我知道Docker在操作系统中使用了虚拟化技术,所以我感觉Docker解决了一个不同的问题,并且仍然需要一个configuration工具,但是我没有一定的实践知识。

使用厨师零+docker+厨房多节点食谱

我使用Docker +厨师零+testing厨房来testing我的食谱, 作为我的食谱的一部分,我正在寻找其他节点: nodes = search(:node, "*:*") 看来,当我的厨房融合时,它会在每个容器上提升厨师零点,因此search只返回节点本身。 我错过了什么吗? 有没有办法testing多节点食谱?

厨师容器+厨师保险库

我试图在docker上运行几个厨师食谱。 厨师容器接缝是一个很好的解决scheme。 在食谱中,我使用来自encryption的data_bags通过chef-vault的凭证。 厨师 – 容器与厨师穹顶一起已经有了解决scheme吗?

刀容器工作stream程的澄清

我最近开始尝试学习如何使用Chef来pipe理Docker容器。 目前,我正试图弄清楚如何使用knife-container gem来引导一个Docker容器,但是我对这个场景的工作stream程有点困惑。 以下是我迄今为止所采取的步骤的高级描述: 首先,为了了解这些技术如何协同工作,我configuration了三个Ubuntu 14.04 Virtualbox虚拟机,一个用于Chef Server,另一个用于托pipe我的容器的节点,以及一个用于开发的工作站。 这些机器的networkingconfiguration允许使用NATnetworking接口和仅主机接口连接到互联网和彼此。 我已经使用我的工作站虚拟机中的刀命令自己成功引导了Chef节点,并且可以在浏览器中使用Chefpipe理控制台validation这一点。 我的困惑是关于下一步做什么来启动一个我想在上面提到的Chef节点上运行的容器。 目前,我正在尝试从一些在从工作站启动的节点引导过程中运行的食谱中执行泊坞窗安装和容器设置。 以下是引导期间在节点上运行的其中一个配方的相关命令: dockerfile = data_bag_item('dockerfiles', 'ubuntu-dockerfile')["script"].join() … execute "knife container docker init test_app -f chef/ubuntu-14.04" file "/var/chef/dockerfiles/test_app/Dockerfile" do content dockerfile action :create end … execute "knife container build test_app -d /var/chef/dockerfiles" execute "docker run -d -p 80:8000 -v /etc/chef /etc/chef/secure test_app python test_app/manage.py runserver […]

无法在Docker容器上安装厨师服务器

我无法在docker容器(Ubuntu 14.04 x86_64)上安装chef-server(chef-server-core_12.0.8-1_amd64.deb)。 当运行chef-server-ctl重新configuration它失败并出现以下错误: Error executing action run on resource 'execute[/opt/opscode/bin/private-chef-ctl start rabbitmq]' Mixlib::ShellOut::ShellCommandFailed Expected process to exit with [0], but received '1' —- Begin output of /opt/opscode/bin/private-chef-ctl start rabbitmq —- STDOUT: warning: rabbitmq: unable to open supervise/ok: file does not exist STDERR: —- End output of /opt/opscode/bin/private-chef-ctl start rabbitmq —- Ran /opt/opscode/bin/private-chef-ctl start rabbitmq […]

从OSX创buildDocker容器时发生Chef-zero错误

我正在尝试使用OSX的最新docker从OSX创build一个docker容器。 厨师零能够build立基本的容器,但是因为它查看错误的IP地址,所以不能find运行的厨师零服务器。 它使用的是docker0的IP地址,而不是我的mac主机的地址。 我似乎无法覆盖它,即使与chef_server属性。 它在创build容器时使用该服务器IP,但不在容器内使用。 我如何得到这个工作。 当我尝试覆盖服务器,我得到一个错误的URI错误。 没有chef_server属性格式的示例。 Error executing action `converge` on resource 'machine[wario]' ================================================================================ URI::InvalidURIError ——————– bad URI(is not URI?): Resource Declaration: ——————— # In /Users/stevelowenthal/.chef/local-mode-cache/cache/cookbooks/docker/recipes/sample2.rb 3: machine 'wario' do 4: # recipe 'openssh::default' 5: recipe 'workstation_tools::install_java8' 6: 7: chef_server :url => "http://10.201.20.20:8889"

chef-server卡住ruby_block 动作在Docker容器上运行

我有一个运行docker1.2的ubuntu主机。 最重要的是我创build了一个运行centos6容器! 当我尝试安装chef-server-11.x版本时,它被卡在这里: * file[/opt/chef-server/sv/rabbitmq/down] action delete (up to date) * link[/opt/chef-server/init/rabbitmq] action create (up to date) * link[/opt/chef-server/service/rabbitmq] action create (up to date) * ruby_block[supervise_rabbitmq_sleep] action run 谷歌search后,我发现我们需要指定平台在/opt/chef-server/embedded/cookbooks/runit/recipes/default.rb ,我看到下面的文件包含,但它仍然不工作: when "centos" include_recipe "runit::upstart" 我需要为docker运行centos指定其他的东西吗?

使用厨师引导一个节点

请帮助我以下。 我试图引导一个docker集装箱。 目标是Ubuntu 14.04 。 172.17.0.1 [2016-02-03T04:31:57+00:00] ERROR: Error connecting to https:// chef.shrikant.com/organizations/project/clients, retry 1/5 172.17.0.1 172.17.0.1 ======================================================================== 172.17.0.1 Chef encountered an error attempting to create the client "nodename2" 172.17.0.1 ======================================================================== 172.17.0.1 172.17.0.1 Network Error: 172.17.0.1 There was a network error connecting to the Chef Server: 172.17.0.1 Error connecting to https://chef.shrikant.com/organizations/project/clients – getaddrinfo: Name or […]