GoogleContainerTools / container-structure-test

validate the structure of your container images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run in Kubernetes (without daemon)

cmamigonian opened this issue · comments

I'm trying to run container-structure-test in CI which is running in k8s. For security reasons I'm not running Docker-in-Docker and mounting the daemon into my pod, so I won't have the daemon available to run the image for the tests. I don't know if this is possible, but could something be done in this project to enable this use case?

hey @cmamigonian, we have support for a tar driver which will flatten the filesystem of your image and run tests against that. it should work fine with no Docker daemon available.

container-structure-test test --driver tar --image gcr.io/registry/image:latest --config config.yaml

hope this is what you were looking for!

that's great, thank you!