项目作者: f-lopes

项目描述 :
Lightweight Docker image running Google container-structure-test binary
高级语言: Shell
项目地址: git://github.com/f-lopes/container-structure-test-docker.git
创建时间: 2018-03-11T16:11:42Z
项目社区:https://github.com/f-lopes/container-structure-test-docker

开源协议:MIT License

下载


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 ?

  1. docker run --rm -v "<path-to-tests-config-file>:/test-config/tests_config.yaml" \
  2. -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:

  1. version: '3'
  2. services:
  3. docker:
  4. image: flopes/container-structure-test-docker
  5. volumes:
  6. - ".tests_config.yaml:/test-config/tests_config.yaml"
  7. - "/var/run/docker.sock:/var/run/docker.sock"
  8. command: test --image ${YOUR_IMAGE} --config tests_config.yaml

.env

  1. 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