docker build --tag softrams-inspec:1.0 .
docker run -it --name softrams-inspec-test softrams-inspec:1.0
Containers opens an interactive shell.
# 1.1 Baseline
git clone https://github.com/mitre/cis-aws-foundations-baseline.git
cd cis-aws-foundations-baseline
# To use 1.2 baseline
git checkout sk-1.2update
# Add to inspec.yml file
depends:
- name: inspec-aws
url: https://github.com/inspec/inspec-aws/archive/v1.26.1.zip
export AWS_ACCESS_KEY_ID=xxx
export AWS_SECRET_ACCESS_KEY=xxx
export AWS_REGION=us-east-1
inspec exec . -t aws:// --chef-license accept-silent
docker rm --force softrams-inspec-test
This will allow you to run the command inspec locally within the docker container
function inspec { docker run -it --rm -e AWS_REGION=us-east-1 -v $(pwd):/share softramsdocker/softrams-inspec:latest "$@"; }
Content type
Image
Digest
Size
148.1 MB
Last updated
about 6 years ago
docker pull softramsdocker/softrams-inspec