aahlenst / testing-container-images

Example that demonstrates how to test container images with various tools.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Testing Container Images

This sample project shows how to test container images with different tools:

Each sample performs the same tests on myimage (Dockerfile), if supported:

  • Testing that nginx is installed.
  • Ensuring that nginx workers do not run as root.
  • Testing that nginx is properly exposed and serves a welcome page by checking it on the host.
  • Checking that the container only exposes port 80 by default by inspecting the image configuration.

While the whole sample is obviously contrived, it gives a good idea of the capabilities of each tool and shows how to use them (see workflows).

About

Example that demonstrates how to test container images with various tools.

License:MIT No Attribution


Languages

Language:Shell 30.4%Language:PowerShell 27.5%Language:Java 14.7%Language:Batchfile 11.1%Language:Ruby 10.3%Language:Python 5.1%Language:Dockerfile 0.8%