Sign inSign up

kaerast/inspec-from-http

By kaerast

•Updated about 9 years ago

Built on top of chef/inspec, this will run Inspec with tests pulled from an http endpoint

Image
0

421

kaerast/inspec-from-http repository overview

This Docker image is designed for the automated testing of firewall rules from a container platform. This means you do not need shell access to the servers running your Docker container, just a way of running the container.

It's very simple, all it does is wget a file provided as an environment variable and then runs it.

It is built on top of kaerast/inspecnc which adds netcat to the chef/inspec container.

Usage:

docker run -e INSPEC_URL=http://10.1.2.3:8000/example_spec.rb kaerast/inspec-from-http

The output will look something like the following

--2017-07-25 09:20:10--  http://10.1.2.3:8000/example_spec.rb
Connecting to 10.1.2.3:8000... connected.
HTTP request sent, awaiting response... 200 OK
Length: 282 [application/octet-stream]
Saving to: '/share/1_spec.rb'

     0K                                                       100% 35.1M=0s

2017-07-25 09:20:10 (35.1 MB/s) - '/share/1_spec.rb' saved [282/282]


Profile: tests from 1_spec.rb
Version: (not specified)
Target:  local://

  ✔  example: Example Webserver
     ✔  http GET on http://www.example.com status should eq 200
     ✔  Host www.example.com should be reachable

Profile Summary: 1 successful, 0 failures, 0 skipped
Test Summary: 2 successful, 0 failures, 0 skipped

Tag summary

Content type

Image

Digest

Size

40.2 MB

Last updated

about 9 years ago

docker pull kaerast/inspec-from-http