找不到测试kitchen命令

发布于 2025-01-23 15:41:11 字数 834 浏览 2 评论 0原文

我正在尝试使用测试厨房码头,我安装了厨师工作站,厨师和测试厨房的厨师食谱,但厨房仍然抱怨“找不到厨房”,

-bash: kitchen: command not found

这是我在Redhat7 Linux机器上安装的东西;

Chef Workstation version: 22.1.778
Chef Habitat version: 1.6.420
Test Kitchen version: 3.2.2
Cookstyle version: 7.31.1
Chef Infra Client version: 17.9.26
Chef InSpec version: 4.52.9
Chef CLI version: 5.5.6

厨房.yml --- 司机: 名称:Docker

provisioner:
  name: dummy

verifier:
  name: inspec

tranport:
  name: docker

platforms:
  - name: centos-7
    docker_config:
        image: centos:7
        platform: centos

suites:
  - name: default
    verifier:
      inspec_tests:
        - test/integration/default

错误:

kitchen list
-bash: kitchen: command not found

I'm trying to test chef recipe locally using test kitchen docker, I installed chef workstation, chef, and test kitchen but kitchen still complaints "Kitchen not found"

-bash: kitchen: command not found

Here's what I installed on my redhat7 linux machine ;

Chef Workstation version: 22.1.778
Chef Habitat version: 1.6.420
Test Kitchen version: 3.2.2
Cookstyle version: 7.31.1
Chef Infra Client version: 17.9.26
Chef InSpec version: 4.52.9
Chef CLI version: 5.5.6

kitchen.yml
---
driver:
name: docker

provisioner:
  name: dummy

verifier:
  name: inspec

tranport:
  name: docker

platforms:
  - name: centos-7
    docker_config:
        image: centos:7
        platform: centos

suites:
  - name: default
    verifier:
      inspec_tests:
        - test/integration/default

Error:

kitchen list
-bash: kitchen: command not found

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挽清梦 2025-01-30 15:41:11

执行厨房 - version并查看输出。如果正确安装了测试厨房的版本,

例如:

厨房 - version
测试厨房版本3.xx

Execute kitchen --version and see the output. It should output you the version of the Test Kitchen if correctly installed

Eg:

kitchen --version
Test Kitchen version 3.x.x

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文