Sign inSign up

zemanlx/container-structure-test

By zemanlx

•Updated about 6 years ago

Container Structure Tests - Alpine Docker Image

Image
0

10K+

zemanlx/container-structure-test repository overview

Build Status

⁠Container Structure Tests - Alpine Docker Image

This repository offers Dockerfile and instructions for building container based on Alpine Linux that contains container-structure-test⁠ binary.

For your convenience, you can use automatic build from Docker Hub zemanlx/container-structure-test⁠ tags:

  • v1.9.1-alpine
  • v1.8.0-alpine
  • v1.7.0-alpine
  • v1.6.0-alpine
  • v1.5.0-alpine
  • v1.4.0-alpine
  • v1.3.0-alpine
  • v1.2.2-alpine
  • v1.2.1-alpine
  • v1.1.0-alpine
  • v1.0.0-alpine
  • v0.2.1-alpine
  • v0.2.0-alpine

⁠Use image from Docker Hub

An image can be used the same way as an original Google's one.

Pull image

docker pull zemanlx/container-structure-test:v1.9.1-alpine

Run your tests, that you mount alongside with docker.sock e.g.

docker run -i --rm \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v ${PWD}:/test zemanlx/container-structure-test:v1.9.1-alpine \
    test \
    --image zemanlx/container-structure-test:v1.9.1-alpine \
    --config /test/structure-tests.yaml

⁠Build image

Tagged commit of source code is downloaded during image build.

CST_REF=v1.9.1
docker build \
  --build-arg CST_REF=${CST_REF} \
  --tag container-structure-test:${CST_REF}-alpine \
  .

After a successful build, you should have container-structure-test:v1.9.1-alpine image.

If you need to use different tag or branch, set CST_REF to a different value.

To get latest master branch build run

CST_REF=master
docker build \
  --build-arg CST_REF=${CST_REF} \
  --tag container-structure-test:${CST_REF}-alpine \
  .

Tag summary

Content type

Image

Digest

Size

9.4 MB

Last updated

about 6 years ago

docker pull zemanlx/container-structure-test:v1.9.1-alpine