Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Windows images #275

Open
ValkyrieOps opened this issue Jul 15, 2022 · 0 comments
Open

Support for Windows images #275

ValkyrieOps opened this issue Jul 15, 2022 · 0 comments

Comments

@ValkyrieOps
Copy link

Problem Statement

While Linux containers appear to be supported on Windows hosts, it does not seem like actual Windows containers are supported as part of the project (unless I've done something horribly wrong). It would be great to spin up an instance of Windows Server/Core/Nano to test Windows deployments.

Possible Solution

The main issue I believe is that the chef/chef image doesn't have a Windows variant and I'm not sure how to work around that.

Failed to complete #create action: [{"message":"no such image: chef/chef:latest: No such image: chef/chef:latest"}

Here is my kitchen.yml that I would expect to work

driver:
  name: dokken

provisioner:
  name: chef_zero
  download_url: http://downloads.cinc.sh/files/stable/cinc/17.9.52/windows/2012r2/cinc-17.9.52-1-x64.msi
  product_name: <%= ENV['CHEF_PRODUCT_NAME'] || 'cinc' %>
  deprecations_as_errors: true
  chef_license: accept-no-persist

transport:
  name: dokken

verifier:
  name: inspec
  
platforms:
  - name: windows
    driver_config:
      image: mcr.microsoft.com/windows/servercore:ltsc2019

suites:
- name: default
  run_list:
    - recipe[my_nifty_windows_recipe]

Alternatives

Vagrant/Hyper-V is extremely slow, and in my experience failed pipelines are unable to cleanup test kitchen due to inability to delete existing VMs/.VHD files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant