Skip to content

Lightweight Docker image running Google container-structure-test binary

License

Notifications You must be signed in to change notification settings

f-lopes/container-structure-test-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightweight Docker image running Google container-structure-test binary

Docker Automated build Docker Pulls Docker Stars Image Layers Build Status

Container structure test binary is only available for OSX or Linux (https://github.com/GoogleCloudPlatform/container-structure-test). Using this Docker image, tests can be launched on a Windows host.

How to use ?

docker run --rm -v "<path-to-tests-config-file>:/test-config/tests_config.yaml" \
  -v /var/run/docker.sock:/var/run/docker.sock flopes/container-structure-test-docker "test --image <image-to-test> --config tests_config.yaml"

Windows

docker-compose.yml template:

version: '3'
services:
  docker:
    image: flopes/container-structure-test-docker
    volumes:
      - ".tests_config.yaml:/test-config/tests_config.yaml"
      - "/var/run/docker.sock:/var/run/docker.sock"
    command: test --image ${YOUR_IMAGE} --config tests_config.yaml

.env

COMPOSE_CONVERT_WINDOWS_PATHS=1

More info on container-structure-test usage: https://github.com/GoogleCloudPlatform/container-structure-test.

Environment variable:

CONTAINER_STRUCTURE_TEST_DOWNLOAD_URL: URL where to download container-structure-test binary

About

Lightweight Docker image running Google container-structure-test binary

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published