The following .kitchen.yml file fails to configure my docker container with the required tools mentioned in intermediate_instructions. The pid_one_command also does not work as the container still loads with the bash shell
以下.kitchen.yml文件无法使用intermediate_instructions中提到的必需工具配置我的docker容器。 pid_one_command也不起作用,因为容器仍然使用bash shell加载
Any ideas what is wrong with the file?
任何想法文件有什么问题?
driver:
name: docker
socket: tcp://localhost:2375
binary: docker.exe
chef_version: latest
privileged: true
provisioner:
name: chef_zero
# You may wish to disable always updating cookbooks in CI or other testing environments.
# For example:
# always_update_cookbooks: <%= !ENV['CI'] %>
always_update_cookbooks: true
verifier:
name: inspec
platforms:
- name: ubuntu-16.04
driver:
image: ubuntu:16.04
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get install -y lsof which initscripts net-tools
suites:
- name: default
run_list:
- recipe[testy::default]
verifier:
inspec_tests:
- test/smoke/default
attributes:
1 个解决方案
#1
0
I think you're trying to use config options for kitchen-dokken
with kitchen-docker
. The two projects are unrelated.
我想你正在尝试使用配置选项来厨房 - 厨房 - 码头。这两个项目是无关的。
#1
0
I think you're trying to use config options for kitchen-dokken
with kitchen-docker
. The two projects are unrelated.
我想你正在尝试使用配置选项来厨房 - 厨房 - 码头。这两个项目是无关的。