Created
January 20, 2019 14:37
-
-
Save xinau/c3839a400fc48f34ccb9a71613aaee56 to your computer and use it in GitHub Desktop.
packer inspec.io docker target
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": { | |
"host": "default" | |
}, | |
"builders": [ | |
{ | |
"type": "docker", | |
"image": "debian:latest", | |
"commit": "true", | |
"run_command": [ | |
"-d", | |
"-i", | |
"-t", | |
"--name", | |
"{{user `host`}}", | |
"{{.Image}}", | |
"/bin/bash" | |
] | |
} | |
], | |
"provisioners": [ | |
{ | |
"type": "inspec", | |
"host": "{{user `host`}}", | |
"backend": "docker", | |
"profile": "/home/vagrant/test.rb" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe os.family do | |
it { should eq 'debian' } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment