Container Structure Tests - Alpine Docker Image
10K+
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-alpinev1.8.0-alpinev1.7.0-alpinev1.6.0-alpinev1.5.0-alpinev1.4.0-alpinev1.3.0-alpinev1.2.2-alpinev1.2.1-alpinev1.1.0-alpinev1.0.0-alpinev0.2.1-alpinev0.2.0-alpineAn 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
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 \
.
Content type
Image
Digest
Size
9.4 MB
Last updated
about 6 years ago
docker pull zemanlx/container-structure-test:v1.9.1-alpine