Closed tjj9020 closed 4 years ago
+1
Here's my current workaround:
Any news on this?
This works for me... you have to specific platform: rhel
---
verifier:
name: inspec
format: <%= ENV['CI'] ? 'junit' : 'cli' %>
<% if ENV['CI'] %>
output: "test-reports/%{platform}_%{suite}_inspec.xml"
<% end %>
driver:
name: docker
use_sudo: false
privileged: true
forward: 80
driver_config:
ssl_verify_mode: ":verify_none"
provisioner:
name: chef_zero
always_update_cookbooks: true
require_chef_omnibus: 12.19.36
platforms:
- name: amazon-docker
driver_config:
image: amazonlinux:latest
platform: rhel
suites:
- name: default
run_list:
- recipe[example_serverspec_to_inspec::default]
attributes:
T.K. will determine the image to use if you specify the name like the following.
platforms:
- name: amazonlinux-2017.09
driver_config:
platform: rhel
Closing issue as amazonlinux image support was added in version 2.9.0.
It would be nice to support the new amazonlinux docker container.
https://hub.docker.com/_/amazonlinux/