Sign inSign up

softramsdocker/softrams-inspec

By softramsdocker

Updated about 6 years ago

Image
0

205

softramsdocker/softrams-inspec repository overview

Inspec

Build Docker Image and start container

docker build --tag softrams-inspec:1.0 .
docker run -it --name softrams-inspec-test softrams-inspec:1.0

Containers opens an interactive shell.

Pull CIS Baseline Repo

# 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

Update Baseline profile

# Add to inspec.yml file
depends:
  - name: inspec-aws
    url: https://github.com/inspec/inspec-aws/archive/v1.26.1.zip

Setup AWS Credentials

export AWS_ACCESS_KEY_ID=xxx
export AWS_SECRET_ACCESS_KEY=xxx
export AWS_REGION=us-east-1

Run the profile

inspec exec . -t aws:// --chef-license accept-silent

Delete container

docker rm --force softrams-inspec-test

Run as a function

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 "$@"; }

Tag summary

Content type

Image

Digest

Size

148.1 MB

Last updated

about 6 years ago

docker pull softramsdocker/softrams-inspec