Tag: berkshelf

运行berks安装时出错

我有一个Windows实例,最重要的是我正在运行一个Windowsdocker集装箱。 在实例本身,我成功地执行berks vendor/install没有任何问题。 但是,在该机器上运行的Windows泊坞窗容器不起作用,并引发超时错误。 错误是不够清楚,所以我决定执行librarian-chef install并获得更多的输出。 看来有一些与SSL连接有关的东西。 在过去几天的长时间的研究之后,我尝试了几件事,但仍然有同样的错误。 Resolving cookbook dependencies… Fetching 'firefox' from source at . Fetching 'firefox_test' from source at test/fixtures/cookbooks/firefox_test Fetching cookbook index from https://supermarket.chef.io… [2017-08-02T09:09:19+00:00] ERROR: Timeout connecting to https://supermarket.chef.io/universe, retry 1/5 [2017-08-02T09:14:24+00:00] ERROR: Timeout connecting to https://supermarket.chef.io/universe, retry 2/5 [2017-08-02T09:19:29+00:00] ERROR: Timeout connecting to https://supermarket.chef.io/universe, retry 3/5 [2017-08-02T09:24:34+00:00] ERROR: Timeout […]

配备厨师的docker形象

我正在尝试构build一个配有厨师的docker图像。 它适用于我以下的Dockerfile和厨师食谱。 #Dockerfile FROM centos:7 RUN yum install -y wget RUN wget https://packages.chef.io/stable/el/7/chefdk-0.13.21-1.el7.x86_64.rpm RUN yum install -y chefdk-0.13.21-1.el7.x86_64.rpm COPY cookbooks cookbooks RUN cd cookbooks/hs_price_verification && berks install && berks vendor cookbooks && chef-client -z –override-runlist hs_price_verification #default.rb include_recipe 'git' package 'yum-utils' execute 'yum –enablerepo=base clean metadata' execute 'yum update -y || true' execute 'yum-config-manager –enable […]