You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running kitchen create on Windows Server 2019 returns "Cannot locate specified Dockerfile: Dockerfile".
I seem to be having the same problem as this issue #196
Version
kitchen-dokken 2.17.0
Environment
Windows Server 2019 Standard w/ Desktop
Chef Workstation version: 21.12.720
Chef InSpec version: 4.50.3
Chef CLI version: 5.4.2
Chef Habitat version: 1.6.420
Test Kitchen version: 3.2.2
Cookstyle version: 7.25.10
Chef Infra Client version: 17.8.25
-----> Starting Test Kitchen (v3.2.2)
D Policyfile found at C:/Temp/testing/Policyfile.rb, using Policyfile to resolve cookbook dependencies
-----> Creating <default-windows-2019>...
D driver - pulling mcr.microsoft.com/windows/servercore:ltsc2019
C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/lockfile-2.1.3/lib/lockfile.rb:308: warning: finalizer references object to be finalized
D driver - pulling chef/chef:latest
C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/lockfile-2.1.3/lib/lockfile.rb:308: warning: finalizer references object to be finalized
D Chef container already exists, continuing
Creating kitchen sandbox at C:/temp/.dokken/kitchen_sandbox/215bf0f413-default-windows-2019
Creating verifier sandbox at C:/temp/.dokken/verifier_sandbox/215bf0f413-default-windows-2019
D driver - calling create_data_image
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Failed to complete #create action: [{"message":"Cannot locate specified Dockerfile: Dockerfile"}
] on default-windows-2019
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
D ------Exception-------
D Class: Kitchen::ActionFailed
D Message: 1 actions failed.
>>>>>> Failed to complete #create action: [{"message":"Cannot locate specified Dockerfile: Dockerfile"}
] on default-windows-2019
D ----------------------
D ------Backtrace-------
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command.rb:181:in `report_errors'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command.rb:172:in `run_action'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command/action.rb:35:in `block in call'
D C:/opscode/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command/action.rb:33:in `call'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/cli.rb:52:in `perform'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/cli.rb:198:in `block (2 levels) in <class:CLI>'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/base.rb:485:in `start'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/bin/kitchen:11:in `block in <top (required)>'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/errors.rb:183:in `with_friendly_errors'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/bin/kitchen:11:in `<top (required)>'
D C:/opscode/chef-workstation/bin/kitchen:392:in `load'
D C:/opscode/chef-workstation/bin/kitchen:392:in `<main>'
D ----End Backtrace-----
D -Composite Exception--
D Class: Kitchen::ActionFailed
D Message: Failed to complete #create action: [{"message":"Cannot locate specified Dockerfile: Dockerfile"}
] on default-windows-2019
D ----------------------
D ------Backtrace-------
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/docker-api-2.2.0/lib/docker/connection.rb:89:in `rescue in request'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/docker-api-2.2.0/lib/docker/connection.rb:44:in `request'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/docker-api-2.2.0/lib/docker/connection.rb:109:in `block (2 levels) in <class:Connection>'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/docker-api-2.2.0/lib/docker/image.rb:292:in `build_from_tar'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/docker-api-2.2.0/lib/docker/image.rb:311:in `build_from_dir'
D C:/Users/Administrator/AppData/Local/chefdk/gem/ruby/3.0.0/gems/kitchen-dokken-2.17.0/lib/kitchen/helpers.rb:98:in `create_data_image'
D C:/Users/Administrator/AppData/Local/chefdk/gem/ruby/3.0.0/gems/kitchen-dokken-2.17.0/lib/kitchen/driver/dokken.rb:379:in `make_data_image'
D C:/Users/Administrator/AppData/Local/chefdk/gem/ruby/3.0.0/gems/kitchen-dokken-2.17.0/lib/kitchen/driver/dokken.rb:90:in `create'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:495:in `public_send'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:495:in `block in perform_action'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:563:in `synchronize_or_call'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:524:in `block in action'
D C:/opscode/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:523:in `action'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:495:in `perform_action'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:404:in `create_action'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:392:in `block (2 levels) in transition_to'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/lifecycle_hooks.rb:47:in `run_with_hooks'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:391:in `block in transition_to'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:390:in `each'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:390:in `transition_to'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:139:in `converge'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command.rb:195:in `public_send'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command.rb:195:in `run_action_in_thread'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command.rb:166:in `block (2 levels) in run_action'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
D ----End Backtrace-----
D ---Nested Exception---
D Class: Kitchen::ActionFailed
D Message: Failed to complete #create action: [{"message":"Cannot locate specified Dockerfile: Dockerfile"}
]
D ----------------------
D ------Backtrace-------
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/docker-api-2.2.0/lib/docker/connection.rb:89:in `rescue in request'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/docker-api-2.2.0/lib/docker/connection.rb:44:in `request'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/docker-api-2.2.0/lib/docker/connection.rb:109:in `block (2 levels) in <class:Connection>'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/docker-api-2.2.0/lib/docker/image.rb:292:in `build_from_tar'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/docker-api-2.2.0/lib/docker/image.rb:311:in `build_from_dir'
D C:/Users/Administrator/AppData/Local/chefdk/gem/ruby/3.0.0/gems/kitchen-dokken-2.17.0/lib/kitchen/helpers.rb:98:in `create_data_image'
D C:/Users/Administrator/AppData/Local/chefdk/gem/ruby/3.0.0/gems/kitchen-dokken-2.17.0/lib/kitchen/driver/dokken.rb:379:in `make_data_image'
D C:/Users/Administrator/AppData/Local/chefdk/gem/ruby/3.0.0/gems/kitchen-dokken-2.17.0/lib/kitchen/driver/dokken.rb:90:in `create'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:495:in `public_send'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:495:in `block in perform_action'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:563:in `synchronize_or_call'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:524:in `block in action'
D C:/opscode/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:523:in `action'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:495:in `perform_action'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:404:in `create_action'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:392:in `block (2 levels) in transition_to'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/lifecycle_hooks.rb:47:in `run_with_hooks'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:391:in `block in transition_to'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:390:in `each'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:390:in `transition_to'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/instance.rb:139:in `converge'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command.rb:195:in `public_send'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command.rb:195:in `run_action_in_thread'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.2.2/lib/kitchen/command.rb:166:in `block (2 levels) in run_action'
D C:/opscode/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
D ----End Backtrace-----
Steps to Reproduce
run "docker pull mcr.microsoft.com/windows/servercore:ltsc2019"
validate with "docker run mcr.microsoft.com/windows/servercore:ltsc2019"
chef generate cookbook testing
add "depends 'chocolatey', '~> 3.0.0'" to metadata.rb
run "berks install"
set ktichen.yml to match above sample
kitchen converge
Expected Result
"kitchen create" creates and then runs test against Windows Server container
Actual Result
kitchen create fails
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Failed to complete#create action: [{"message":"Cannot locate specified Dockerfile: Dockerfile"}
] on default-windows-2019
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all`for configuration
👻 Brief Description
Running kitchen create on Windows Server 2019 returns "Cannot locate specified Dockerfile: Dockerfile".
I seem to be having the same problem as this issue #196
Version
kitchen-dokken 2.17.0
Environment
Windows Server 2019 Standard w/ Desktop
Chef Workstation version: 21.12.720
Chef InSpec version: 4.50.3
Chef CLI version: 5.4.2
Chef Habitat version: 1.6.420
Test Kitchen version: 3.2.2
Cookstyle version: 7.25.10
Chef Infra Client version: 17.8.25
Docker version 20.10.7, build 40ef3b6
kitchen.yml
Scenario
Running 'kitchen create' returns:
Steps to Reproduce
Expected Result
"kitchen create" creates and then runs test against Windows Server container
Actual Result
kitchen create fails
➕ Additional context
similar to issue #196
The text was updated successfully, but these errors were encountered: