Sign inSign up

ekostadinov/docker-serverspec

By ekostadinov

Updated about 10 years ago

Testing your docker based infrasturcture inside a Docker image with Serverspec

Image
1

1.0K

ekostadinov/docker-serverspec repository overview

Overview

This Docker image provides a way to run Serverspec tests inside of a Docker container. If you're looking for a way to test your Dockerfiles, images and containers, this is the project you've been looking for!

Docker in a Docker

Although running Docker inside Docker is generally not recommended, there are some legitimate use cases, such as development/testing of Docker itself. For more information about this image and its history, please see https://hub.docker.com/_/docker/.

Serverspec

With Serverspec, you can write RSpec tests for checking your servers are configured correctly.

Images

  • docker Base Docker image
  • uzyexe/serverspec Automatically install ruby 2.2.5 and Serverspec.

Methodology

The key to this project and to getting Serverspec to work inside of a Docker container is the wrapper script.

The wrapper script does the following things:

Adds ruby and Serverspec, so you can spin your infrastructure tests.

Tag summary

Content type

Image

Digest

Size

69.8 MB

Last updated

about 10 years ago

docker pull ekostadinov/docker-serverspec