Reputation: 1779
I'm working on writing test for a project and i want to test and verify a docker image build. But i don't want to push the image.
I want the image to build on a CI (like taskcluster) and run test.
Upvotes: 0
Views: 1796
Reputation: 678
Run test on source code than final image.
Create one build docker exactly with same environment as deployment docker. Mount source code in build docker and run test cases inside build docker.If test cases are succeeded then only you build deployment image and push it.
Upvotes: 0
Reputation: 1326554
You would need to use taskcluster/docker-worker
, that is a Docker worker which is detailed in the reference documentation.
That worker include test suites: you can see an example in taskcluster/mozilla-taskcluster
.
Upvotes: 1